XO Docs

GitHub

Connect GitHub so your agent can read repositories, issues, and pull requests.

Connect a GitHub account to your XO project so your agent can read repositories, issues, and pull requests. GitHub uses a device code flow — no callback URL needed.

What You'll Need

  • An XO project that has finished provisioning
  • A GitHub account with access to the repositories you want your agent to read

Connect GitHub

Open Setup → Data

From your project page, open the Setup tab and select Data.

Setup → Data

Click Connect GitHub

On the GitHub row, click Connect GitHub.

Click Connect GitHub

Select an Authentication Method

Pick how you want to authenticate:

  • Device code (used in this guide) — XO generates a one-time code that you paste into GitHub. No long-lived secret stored, simplest flow.
  • Personal Access Token (PAT) — paste a token you create from your GitHub developer settings. Use this if you want fine-grained scopes or if your org disallows OAuth device flows.

Select an authentication method

The remaining steps follow the Device code flow. If you picked PAT, paste the token, click Continue, and skip to the Connection Confirmed step.

Generate an Activation Code

Click Start to generate a one-time activation code.

Click Start

Copy the Code

Copy the activation code, then click the link to open the GitHub activation page in a new tab.

Copy the activation code

Continue on GitHub

On GitHub's activation page, confirm your account by clicking Continue.

Click Continue

Paste and Authorize

Paste the activation code into the field and click Continue.

Paste the activation code

Then click Authorize github to grant XO access.

Click Authorize github

Connection Confirmed

GitHub is now connected. You'll see a confirmation in the activation tab and the new remote in your project's Data list.

GitHub connected

GitHub remote in the Data list

Your GitHub account is now connected. Your agent can read from it on subsequent runs.

On this page