What You Need
A GitHub personal access token for each agent. Fine-grained tokens are recommended so you can scope permissions to specific repositories.GitHub integration is optional but strongly recommended for engineering and QA agents. Without it, Titus can’t open PRs and Scout can’t review them.
Step 1: Generate a Token
For each agent:- Go to github.com/settings/tokens?type=beta
- Click “Generate new token”
- Configure the token:
- Name: e.g.,
clawup-titus - Expiration: Set as appropriate (no expiration for long-running agents)
- Repository access: Select the specific repos your agents should work with
- Name: e.g.,
- Set permissions:
Recommended Permissions
- Click “Generate token”
- Copy the token — it starts with
ghp_orgithub_pat_
Step 2: Add Tokens to .env
Add each agent’s GitHub token to your .env file using the <ROLE>_GITHUB_TOKEN pattern:
clawup deploy, these are validated and stored encrypted in Pulumi config (e.g., pmGithubToken, engGithubToken).
What Gets Installed
On each agent’s server, the deploy process automatically:- Installs the GitHub CLI (
gh) from the official apt repository - Authenticates
ghwith the provided token (gh auth login --with-token) - Configures
gitto useghfor authentication (gh auth setup-git) - Sets
GITHUB_TOKENas an environment variable
How Agents Use GitHub
Agents use thegh CLI and git for all GitHub operations:
By Role
Manifest Configuration
Set your GitHub repo in the manifest so agents know where to work:{{GITHUB_REPO}} template variable in identity workspace files. During bootstrap, agents clone this repo and verify access.