# Connect GitHub

Automaintainer needs GitHub access to read your repositories and open pull
requests on your behalf.

## Connect

1. Sign in to the panel.
2. Go to **Account → Connect GitHub** and authorise the app.
3. AM stores a scoped token used only to clone repos and open PRs.

## What the token is used for

- Cloning the repo to a [worker](/docs/add-worker) for each run.
- Pushing the run's branch.
- Opening (and, on Max, merging) pull requests.

The token is masked in all run/verify output — it is never printed in logs.
See [Security & data](/docs/security).

## PRs that didn't open automatically

If a run pushed commits but the PR didn't open (e.g. a token scope issue), the
work isn't lost — AM stores the branch and the computed PR title/body so you can
[recover the PR](/docs/recovering-a-pr) with one click.

## Related

- [Add a repository](/docs/add-repository)
- [Recovering a PR](/docs/recovering-a-pr)
- [Security & data](/docs/security)
