Getting Started¶
This guide covers installation and authentication setup for Agent Code Review.
Installation¶
CLI¶
Install the acr command-line tool:
Verify installation:
Go SDK¶
Add the SDK to your Go project:
Authentication¶
Agent Code Review supports two authentication methods. Choose the one that fits your use case.
Option 1: GitHub App (Recommended)¶
Using a GitHub App provides several benefits:
- Reviews appear as
PlexusOne Code Review[bot](or your app name) - Clear distinction between AI and human reviews
- Fine-grained permissions per repository
- No personal account rate limits
Creating a GitHub App¶
-
Go to Settings → Developer settings → GitHub Apps → New GitHub App
-
Configure the app:
Field Value Name PlexusOne Code Review(or your preferred name)Homepage URL https://github.com/plexusone/agent-code-reviewWebhook Disable (uncheck "Active") -
Set permissions:
Permission Access Pull requests Read & Write Contents Read Metadata Read -
Click Create GitHub App
-
Generate a private key and download it
-
Install the app on your repositories
-
Note your App ID (shown on the app settings page) and Installation ID (from the URL after installing)
Configuring Authentication¶
Option 2: Personal Access Token¶
For quick setup or personal use, you can use a personal access token:
Warning
Reviews will appear as coming from your personal account, not a bot.
Creating a Token¶
- Go to Settings → Developer settings → Personal access tokens → Tokens (classic)
- Click Generate new token (classic)
- Select scopes:
repo(Full control of private repositories)
- Generate and copy the token
Environment Variables Reference¶
| Variable | Description |
|---|---|
GITHUB_TOKEN |
Personal access token (fallback auth) |
GITHUB_APP_ID |
GitHub App ID |
GITHUB_INSTALLATION_ID |
GitHub App installation ID |
GITHUB_PRIVATE_KEY_PATH |
Path to GitHub App private key |
GITHUB_OWNER |
Default repository owner |
GITHUB_REPO |
Default repository name |
Verifying Setup¶
Test your authentication by listing PRs:
If configured correctly, you'll see a list of open pull requests (or a message indicating no open PRs).
Next Steps¶
- CLI Reference — Learn the available commands
- Go SDK — Integrate into your Go applications
- MCP Integration — Use with Claude Code