> ## Documentation Index
> Fetch the complete documentation index at: https://e069f63-spikonado.manicule.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://e069f63-spikonado.manicule.dev/docs/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://e069f63-spikonado.manicule.dev/docs/api/mcp.
> Every agent surface: https://e069f63-spikonado.manicule.dev/docs/.well-known/llms-manifest.json

# GitHub integration (/docs/use/github)

<!-- agent-signals: reading_time_min: 2 · est_tokens: 518 · updated: 2026-11-28 -->
Related: [Projects and threads](/docs/use/projects-and-threads.md), [AI models and providers](/docs/use/models-and-providers.md), [Agent tools and connectors](/docs/use/agent-tools.md), [AGENTS.md and skills](/docs/use/instructions-and-skills.md), [Hardware development](/docs/use/hardware.md), [Purchases and approvals](/docs/use/purchases.md)

> Connect GitHub or GitHub Enterprise to Sprocket. Track pull requests, CI checks, and reviews, and configure commits and automatic git pulls.

Sprocket installs and uses the [GitHub CLI](https://cli.github.com) for pull requests and other GitHub work.

## Sign in

In **Settings → Connectors**, click **Sign in** next to `github.com`. Sprocket shows a code and a link to GitHub. Open the link on any device, enter the code, and approve the sign-in. The GitHub card then shows **Signed in as** and your GitHub username. **Sign out** removes the login from the computer running Sprocket.

For GitHub Enterprise, click **Add a GitHub Enterprise host**, enter its hostname, and sign in the same way.

If `GH_TOKEN` or `GITHUB_TOKEN` is set where Sprocket runs, Sprocket uses that token instead. For an Enterprise host, set `GH_HOST` to its hostname and `GH_ENTERPRISE_TOKEN` or `GITHUB_ENTERPRISE_TOKEN` to its token.

## Pull requests in threads

The agent links the pull requests it works on to the thread. They appear in the thread's **Pull requests** list with their current status. The agent can wait on a pull request until its checks finish or a reviewer comments.

To settle a thread when its pull requests merge, turn on **Settle threads when their PRs merge** in [Settings → General](/docs/reference/configuration#general).

## Commits

Sprocket tells the agent to add Sprocket as a co-author on its commits. Turn this off in [Settings → Version Control](/docs/reference/configuration#version-control).

## Pull the latest code

Turn on **Pull the latest code automatically** in [Settings → Version Control](/docs/reference/configuration#version-control). Every 5 minutes, each computer running Sprocket attempts a fast-forward pull in its available project checkouts with an `origin` remote. Git pulls from the branch's upstream and refuses if the branches have diverged or the pull would overwrite local changes.

## Turn off GitHub

Turn off GitHub, or one of its hosts, in **Settings → Connectors**. The agent then can't link pull requests, and their status stops refreshing.
