Skip to main content
Connect GitHub to Athena to browse repositories, read code, issues, and pull requests in chat, power the GitHub toolkit, and inject a short-lived token into computer environments — all without pasting a personal access token.
You connect GitHub live in the UI. Each repository you connect becomes a catalog you can open in Drive, reference in chat with @, and use with Athena’s tools and agents.

What connecting GitHub unlocks

  • Browse and read repository contents in Drive, and read files, issues, and pull requests directly in chat.
  • GitHub toolkit in any session — list directories, read files, and more, with no secret to paste.
  • Computer environments — inject a scoped GITHUB_TOKEN into a computer so the developer agent can use git, the gh CLI, and the GitHub API.

Choose how you connect

Athena supports four connection methods. We recommend GitHub App — OAuth for most teams — it gives each member their own GitHub identity through a quick in-browser sign-in, with fine-grained, org-approved repository access and automatic token rotation. Pick whichever your organization’s GitHub policies allow — you can set up more than one (for example, a GitHub App plus a fallback token). Setup is two steps: set up the connection once, then connect your repositories.

Step 1 — Set up the connection

This step is done by an Athena workspace admin or owner, and it applies to the entire workspace — the connection is defined once, centrally, and every member then connects their repositories against it. Individual members cannot do this themselves, and GitHub stays unavailable on the Integrations page until an Athena admin completes it. This is a separate role from your GitHub organization owner, who creates the App or OAuth App on the GitHub side.
In Athena, open Integration Definitions (Workspace Settings → Treasury → Integration Definitions), click New integration, and choose provider GitHub. Then follow the tab for the method you picked above. For every method that uses a GitHub App or OAuth App, the callback URL is:
GitHub Enterprise Server: add your host to the config’s connection block (e.g. "connection": { "host": "https://github.your-company.com" }) and point the OAuth URLs at that origin. The REST base is derived automatically as {host}/api/v3.

Step 2 — Connect your repositories

Go to Integrations and click GitHub → Connect.
  • OAuth methods open a GitHub authorization popup, then a repository picker.
  • Installation and Personal Access Token methods skip straight to the repository picker.
Select the repositories you want. Each one becomes a catalog you can open in Drive, reference in chat with @, and use with the GitHub toolkit and computer environments.
Your credentials are encrypted at rest, and OAuth connections use per-user tokens scoped to your own GitHub identity. You can disconnect a repository at any time from the Integrations page.