GitHub access
Set up the Amaru Light bot account, choose its token for direct or fork pushes, connect Git credentials and set the author of the bot's commits.
Amaru Light works on GitHub as a bot account of its own, so its comments, branches and pull
requests stay apart from yours. It uses two tools that read the bot's token: gh for issues,
labels, comments and pull requests, and git for cloning, fetching and pushing over HTTPS.
Before you begin
Create a GitHub account for the bot, and decide whether it pushes directly or through a fork.
Direct pushes or a fork
- Direct. Leave
forkout. The bot pushes branches torepoand opens pull requests from them. It needs write access torepo. - Fork. Set
fork: my-bot/name. The bot pushes to the fork and opens pull requests onrepofrommy-bot:branch. It needs no write access torepo.
The daemon, never the agent, sets this up before every agent turn and push: it creates the fork when
it is missing, and keeps origin as the push target and upstream as repo in the clone and
every worktree. A bot that pushes to a fork usually cannot label the upstream issues; the daemon then
works without labels, and you unblock tickets with amaru unblock <ticket>.
The token
Pass a personal access token as GH_TOKEN; in a container, pass it with -e GH_TOKEN rather than
storing it on a volume.
| Pushes | Token |
|---|---|
| Direct | A fine-grained token with read and write access to Contents, Issues and Pull requests on the repository. |
| Fork, upstream owned by someone else | A classic token with public_repo (repo for a private repository). A fine-grained token cannot open the pull request upstream. |
amaru doctor runs gh auth status only; the first ticket shows whether the permissions are enough.
Git credentials
Run gh auth setup-git once as the daemon user, so Git gets its credentials from gh.
Commit author
If Git has no identity when the daemon first syncs a repository, it sets
Amaru Light <amaru-light@users.noreply.github.com> on its clone. To commit as the bot instead, set
a global user.name and user.email before the first ticket.
Based on docs/github-access.md.
Next steps
- Quickstart: use the token to start the daemon.
- Troubleshooting: fixes for GitHub errors.
Operate
Run Amaru Light reliably, covering GitHub access and tokens, containers, the web interface and its token, the prompt guard and troubleshooting.
Run in a container
Run Amaru Light from its base container image with settings and state on volumes, and derive a per-project image with your agent CLI and toolchain.