Add from GitHub
Pull a GitHub repository or file into a chat as context.
What it is
Attach a GitHub repository or specific file to a chat so Claude can read the code alongside your prompt. Reachable from the + button on the chat composer.
How to use it
On desktop
- Click + → Add from GitHub.
- Pick a repo you’ve been working with, or paste a GitHub URL.
- Optionally narrow to a specific file or directory.
- Send. Claude reads the attached code as part of the turn.
On the web
Requires the GitHub connector to be authorised once from Customize → Connectors. After that, the + → Add from GitHub flow works the same way.
Good to know
- For longer-running code work, use Claude Code or a Project with the repo attached, rather than pulling the repo into every chat.
- Private repos need the connector or desktop integration to be authenticated with an account that has access.