We Love Claude

Add from GitHub

Pull a GitHub repository or file into a chat as context.

Available on
Desktop Web

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

  1. Click + → Add from GitHub.
  2. Pick a repo you’ve been working with, or paste a GitHub URL.
  3. Optionally narrow to a specific file or directory.
  4. 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.

Related