Authentication
Bop uses local API keys for LLM providers and GitHub. No platform account is required.
API Keys (Primary Method)
Set your LLM provider API key and optional GitHub token as environment variables:
| |
You can also configure API keys in your bop.yaml or .bop.yaml config file:
| |
GitHub Token Requirements
For PR reviews and GitHub integration, the GitHub token needs these scopes:
| Scope | Required For |
|---|---|
repo | Reading PR diffs, posting comments |
read:org | Team reviewer assignments (optional) |
Creating a Personal Access Token
- Go to GitHub Settings > Developer settings > Personal access tokens
- Click Generate new token (classic)
- Select the
reposcope - Generate and copy the token
Using GitHub CLI
Alternatively, use the GitHub CLI to create a token:
| |
This returns a token with appropriate scopes.
Credential Storage
API keys are read from environment variables or config files. Bop does not store API keys — you manage them through your standard secret management practices.
Platform credentials (for future Pro features) are stored at:
| |
This file is created only if you authenticate with the Bop platform.
API Key Best Practices
- Never commit API keys - Use environment variables or secrets
- Use separate keys for CI - Create dedicated keys for automation
- Rotate regularly - Change keys periodically
- Limit scopes - Only grant necessary permissions
- Monitor usage - Watch for unexpected API usage
Platform Authentication (Coming Soon)
Bop Pro will include platform authentication for team features, centralized configuration, and usage analytics.
Login
| |
Opens a browser for GitHub OAuth authentication. Credentials are stored locally at ~/.config/bop/auth.json.
Check Status
| |
Logout
| |
GitHub Actions OIDC
Bop Pro will support OpenID Connect (OIDC) for keyless authentication in GitHub Actions, eliminating the need for long-lived platform tokens.
Troubleshooting
“Invalid token” for GitHub operations
- Verify your
GITHUB_TOKENis set correctly - Check the token hasn’t expired
- Ensure the token has
reposcope
“Permission denied” in GitHub Actions
Ensure your workflow has the required permissions:
| |
Provider API key errors
- Verify the environment variable is set:
echo $ANTHROPIC_API_KEY - Check the key is valid with your provider’s dashboard
- Ensure the key has not been revoked or expired