gh).
GitHub integration is built on Secrets. The
catty secrets add github command provides a guided setup specifically for GitHub tokens.Setup
Run the guided setup:- Open GitHub’s token creation page in your browser
- Prompt you to paste the generated token
- Validate the token works
- Save both
GITHUB_TOKENandGH_TOKEN(for compatibility)
Required Token Scopes
When creating the token on GitHub, select:repo- Full control of private repositories
What Claude Can Do
With a GitHub token, Claude can:| Action | Example Command |
|---|---|
| Clone private repos | git clone https://github.com/yourorg/private-repo |
| Push commits | git push origin main |
| Create branches | git checkout -b feature-branch |
| Create pull requests | gh pr create --title "Add feature" |
| Manage issues | gh issue create --title "Bug report" |
| Review PRs | gh pr view 123 |
Example Session
Verifying Setup
Test your token:Token Storage
The token is stored encrypted at~/.catty/secrets.json using AES-256-GCM. It’s only decrypted when starting a session and sent over HTTPS. See Secrets for encryption details.
Session Environment
Inside the session:Updating Your Token
Revoking Access
If you need to revoke access:- Go to GitHub → Settings → Developer settings → Personal access tokens
- Revoke the token
- Remove from Catty:
catty secrets remove GITHUB_TOKEN
See Also
- Secrets - How secrets work
- catty secrets - CLI command reference
