Coop blog

How to connect Claude to GitHub: the four options

Published December 4, 2026, 3 min read

There are several ways to connect Claude to GitHub, and they don't do the same thing. Some only let it read your code so it understands it; others let it change the code, create branches and open pull requests. Which one is right depends on whether you want to ask questions, write code or automate. These are the four official options as of late November 2026.

1. The GitHub integration in claude.ai

The simplest one. In a chat, click the "+" at the bottom left and choose "Add from GitHub"; in a project, use the "+" in the project knowledge and pick GitHub. Then search for the repository or paste its URL and select the folders and files you want. For private repositories you install Claude's GitHub app and grant it access.

Know its limits: it only copies the files from one branch, with no history or pull requests, and it doesn't update on its own. When the code changes, click "Sync now". It's a way to give Claude context, not a way for it to work on the repository.

2. Claude Code on your computer or on the web

Claude Code works directly on a copy of the repository: it reads and edits files, runs commands and makes commits just as you would with git. It's installed in the terminal and needs a Pro, Max, Ultra, Team, Enterprise or Console account. There's also a browser version at claude.ai/code that connects to GitHub through Claude's app or by reusing your gh CLI login, pushes the changes to a branch and opens the pull request.

This is the option for real coding. Review is still yours: the changes arrive as any other pull request.

3. GitHub Actions with @claude

If you want Claude to respond inside GitHub, Claude Code has a GitHub Actions integration. You install it by running /install-github-app inside Claude Code, with admin rights on the repository, and from then on writing @claude in an issue or pull request comment is enough for it to analyse the code, make changes and push commits. It can also run on other events or on a schedule.

Keep in mind that it uses GitHub Actions minutes on top of your Claude usage, and it needs a secret in the repository: an API key or a token from your subscription.

4. GitHub's official MCP server

GitHub maintains an MCP server that gives any compatible AI access to repositories, issues, pull requests and Actions. There's a remote version and one that runs locally with Docker. In Claude Code you add it with:

claude mcp add --transport http github https://api.githubcopilot.com/mcp -H "Authorization: Bearer YOUR_TOKEN"

The token is a GitHub personal access token. If you only want the AI to look, the server has a read-only mode. It's handy when you mostly work in chat and want the AI to create issues or review pull requests without leaving the conversation.

Which one to choose

  • For Claude to understand your code and explain things: the claude.ai integration.
  • To write code and open pull requests: Claude Code.
  • For the team to request changes from inside GitHub: GitHub Actions with @claude.
  • To manage issues and pull requests from chat: GitHub's MCP server.

When several people are involved, GitHub settles where the code lives, but not who is doing what right now. That's the part Coop covers: each person connects their own AI to a shared project, and everyone can see what each one is touching before two changes collide. It works alongside GitHub, not instead of it.

Frequently asked questions

Can Claude make commits to my GitHub repository?

Not from claude.ai with the GitHub integration: that only reads files. Claude Code can create commits and branches, and with GitHub Actions it can push changes when someone writes @claude on a PR or issue.

Does the claude.ai GitHub integration update automatically?

No. It copies the files from one branch at that moment. When the code changes you click "Sync now" to pull in the new version.

Do I need an API key to use Claude with GitHub?

Not for the claude.ai integration or Claude Code: your subscription is enough. GitHub Actions needs a secret stored in the repository, which can be an API key or a token from your subscription.

Several of you working with AI? In Coop everyone uses their own AI and you all work on the same project. Your first project is free.

Start for free

Keep reading