Answer: You connect GitHub by visiting claude.ai/code, signing in with your claude.ai account, and following the prompt to sign in with GitHub and approve the authorization request. Alternatively, if you use the GitHub CLI, you can run /web-setup from the Claude Code CLI after authenticating with gh auth login and signing in with /login. Status: Confirmed Entry: tool/claude-code/integrations/connect-github-repository Revision: 2 Digest: sha256:ef696730481134f2 (changes whenever the content changes) Timeline: Created: 2026-11-13T02:31:22Z Last changed: 2026-11-13T12:15:18Z (Success message: — → Connected as ) Last verified: 2026-11-20T12:26:16Z Next check: 2026-11-21T12:26:16Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Browser method | Sign in with GitHub | [1] | 2026-11-20 Terminal method | /web-setup | [1] | 2026-11-20 GitHub CLI auth command | gh auth login | [1] | 2026-11-20 Claude sign-in command | /login | [1] | 2026-11-20 Private repo requirement | Claude GitHub App | [1] | 2026-11-20 Success message | Connected as | [1] | 2026-11-20 Sources: [1] Anthropic. "Get started with Claude Code in the cloud". https://code.claude.com/docs/en/web-quickstart.md Role: primary. Accessed: 2026-11-20T12:26:16Z Quote: "Sign in with GitHub** After you sign in, claude.ai/code prompts you to connect GitHub." (Supports: Browser method) Quote: "If you already use the GitHub CLI (`gh`), you can connect GitHub for cloud sessions from your terminal. This requires the [Claude Code CLI](https://code.claude.com/docs/en/quickstart.md). On Team and Enterprise plans, `/web-setup" (Supports: Terminal method) Quote: "In your shell, authenticate the GitHub CLI if you haven't already: ```bash theme={null} gh auth login" (Supports: GitHub CLI auth command) Quote: "In the Claude Code CLI, run `/login` to sign in with your claude.ai account." (Supports: Claude sign-in command) Quote: "can work in a private repository only when the Claude GitHub App is installed on it" (Supports: Private repo requirement) Quote: "On success, Claude Code prints `Connected as ` and opens" (Supports: Success message) Published: 2026-11-20T03:05:30Z Snapshot SHA-256: 6af1a45c08b310fb173394900a2150aa00dfa9b02fa86a0478d8e55148d5cd25 (captured 2026-11-20T12:26:16Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:26:16Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:26:16Z Last attempt: 2026-11-20T12:26:16Z Notes and limitations: Extracted automatically from a single official source (section "Connect GitHub"). Related: https://latestn.com/tool/claude-code/integrations/connect-tools What tools and integrations can I connect to Claude Code, like Chrome, Slack, or CI/CD? https://latestn.com/tool/claude-code/integrations/cwd-vs-repo-parameter What is the difference between the cwd and repo parameters in a Claude Code deep link? https://latestn.com/tool/claude-code/integrations/disable-mcp-server-without-removing How do I disable an MCP server in Claude Code without removing it? https://latestn.com/tool/claude-code/integrations/check-mcp-and-hooks How do I check whether my MCP servers and hooks are loaded in Claude Code? https://latestn.com/tool/claude-code/integrations/code-review-gitlab-merge-request How do I post Claude Code's /code-review findings to a GitLab merge request? https://latestn.com/tool/claude-code/integrations/connect-claude-code-to-gateway How do I connect Claude Code to an LLM gateway my organization already runs? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T12:15:18Z | changed | Success message: — → Connected as | [1] 2026-11-13T12:15:18Z | changed | Claude sign-in command: — → /login | [1] 2026-11-13T12:15:18Z | changed | GitHub CLI auth command: — → gh auth login | [1] 2026-11-13T12:15:18Z | changed | Claude login command: /login → — | [1] 2026-11-13T12:15:18Z | changed | CLI auth command: gh auth login → — | [1] 2026-11-13T12:15:18Z | changed | GitHub sign-in step: Sign in with GitHub → — | [1] 2026-11-13T12:15:18Z | changed | Browser method: Visit claude.ai/code → Sign in with GitHub | [1] 2026-11-13T02:31:22Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/integrations/connect-github-repository/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/integrations/connect-github-repository POST: https://latestn.com/dispute/tool/claude-code/integrations/connect-github-repository with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/integrations/connect-github-repository?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I connect a GitHub repository to Claude Code cloud sessions? Revision 2, last verified 2026-11-20T12:26:16Z. https://latestn.com/tool/claude-code/integrations/connect-github-repository (accessed 2026-11-21T09:52:50Z). @misc{LatestN_tool_claude_code_integrations_connect_github_repository_r2, title = {How do I connect a GitHub repository to Claude Code cloud sessions?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/integrations/connect-github-repository}}, note = {Revision 2; digest sha256:ef696730481134f2; last verified 2026-11-20T12:26:16Z; accessed 2026-11-21T09:52:50Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/integrations/connect-github-repository