> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agent.golf/llms.txt
> Use this file to discover all available pages before exploring further.

# Link Your GitHub Account

> Link your personal GitHub account so that Agent Golf matches your pull requests to you.

Link your personal GitHub account to your Agent Golf user. Pull requests that this GitHub account authors then count as yours in Agent Golf.

## Before you begin

* An Agent Golf user in a workspace. Each user links their own account.
* The GitHub account that authors your pull requests.

## Link your account

1. In the dashboard, open **Account**.
2. Under **GitHub**, select **Connect GitHub Account**.
3. Authorize Agent Golf on GitHub. GitHub returns you to **Account**.

**Account** shows **Connected** with your GitHub login.

Agent Golf also links your GitHub account when you connect a GitHub organization, during signup, in the onboarding flow, or from **Settings > Integrations > GitHub**. See [Connect a GitHub Organization](https://docs.agent.golf/github/organization.md).

## What linking changes

Agent Golf shows you as the author of the pull requests that your linked GitHub account opens. This sets:

* The **Author** filter on the **Pull Requests** page. Select **You** to see your own pull requests. See [Pull Requests](https://docs.agent.golf/dashboard/pull-requests.md).
* **Your Pull Requests** in **Your Work** on the **Dashboard**. See [Dashboard](https://docs.agent.golf/dashboard/overview.md#your-work).
* Your pull-request numbers on the **Team** page and your user page, for example **Merged PRs**, **Cycle Time**, and **CI Cost**, and your rows in **Pull Request Flow**. Without a link, these columns show a dash and **Pull Request Flow** has no row for you. See [Team](https://docs.agent.golf/dashboard/team.md).

Linking does not change which sessions you see, and it does not add links between sessions and pull requests. Attribution uses it to check who authored a pull request. See [Attribution](https://docs.agent.golf/dashboard/attribution.md).

Linking does not change your organizations, your workspaces, or your roles, not even at a later sign-in. A linked GitHub account alone does not give access to an Agent Golf organization, even when you installed the App on a GitHub organization. Agent Golf keeps only the GitHub account details that it needs to show your pull requests.

## Reminders to link

* When your GitHub account is not linked, **Your Work** on the **Dashboard** shows **Link GitHub**. Select it to open **Account**.
* The **Finish Setup** checklist on the **Dashboard** can remind each user to link GitHub. See [Finish setup](https://docs.agent.golf/dashboard/overview.md#finish-setup).

## One GitHub account in each organization

Your GitHub account is the same in all your organizations. In each organization, one user holds it, and that account's pull requests count for that user.

* When you link, you hold the GitHub account in each of your organizations where no other user holds it, or where its holder no longer belongs to the organization.
* When you join an organization later, you hold your GitHub account there on the same conditions. A join never fails because of a GitHub account.
* When another user of an organization holds your GitHub account, the link does not change in that organization. Your link in your other organizations stays.

## Sign in with GitHub

On the sign-in page, select **Continue with GitHub**. When your GitHub account is linked in an organization, Agent Golf signs you in as the user that holds the account there:

1. Authorize Agent Golf on GitHub.
2. When the GitHub account is linked in more than one organization, choose the organization.
3. Confirm with a passkey of that user, or with a code from their authenticator app. See [Passkeys](https://docs.agent.golf/account/passkeys.md).

If your organization signs in through SSO, sign in through SSO instead. When your GitHub account is not linked in an organization, or the user has no passkey and no authenticator app, the sign-in continues as the standard GitHub sign-in. GitHub can then ask you to authorize Agent Golf a second time. See [Sign-In & Access](https://docs.agent.golf/account/identity.md).

## Disconnect

1. In **Account**, under **GitHub**, select **Disconnect**.
2. Confirm in **Disconnect GitHub Account**.

That GitHub account's pull requests no longer count as yours, in all your organizations. This applies to the pull requests that Agent Golf already has and to new ones. Your roles do not change. You can reconnect at any time.

## Common problems

| Message | Cause | Fix |
| - | - | - |
| "Your GitHub account @login is already linked to another Agent Golf user in this organization. Disconnect GitHub from that user, or connect a different GitHub account." | Another user of this organization holds your GitHub account. A new link changes nothing. | Disconnect GitHub from the other user, then select **Connect GitHub Account** again. Or use a different GitHub account. |
| Your pull requests do not show under **You** | The pull requests use a GitHub account that is not linked to you. | Link the GitHub account that authors the pull requests. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.