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).
MethodHow you sign inBest for
GitHub App — OAuth  ·  RecommendedAuthorize in a GitHub popupThe default “sign in with GitHub” experience, with per-user identity and permissions
GitHub App — InstallationNo sign-in; a shared, org-approved app tokenA workspace-wide service connection with fine-grained, org-approved repo access
OAuth AppAuthorize in a GitHub popupOrganizations that use classic OAuth Apps instead of GitHub Apps
Personal Access TokenNo sign-in; one shared tokenOrganizations that don’t allow GitHub Apps or OAuth Apps
Setup is two steps: set up the connection once, then connect your repositories.

Step 1 — Set up the connection

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:
https://api.athenaintel.com/api/github-direct/oauth/callback
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.