Troubleshooting
This page covers common issues and their solutions when using Bop.
Installation Issues
“command not found: bop”
The bop binary isn’t in your PATH.
Solution:
For Homebrew installs, verify installation:
| |
For manual installs, ensure the binary is in a directory in your PATH:
| |
Permission denied on Linux
Solution:
| |
API Key Issues
“No LLM provider configured”
No API keys are set for any provider.
Solution:
Set at least one API key:
| |
“Invalid API key” or “Authentication failed”
The API key is malformed or expired.
Solution:
Verify the key format:
- Anthropic keys start with
sk-ant- - OpenAI keys start with
sk-
- Anthropic keys start with
Check for trailing whitespace:
1echo "[$ANTHROPIC_API_KEY]" # Should show key without extra spacesRegenerate the key from the provider’s dashboard
“Rate limit exceeded”
You’ve hit the provider’s rate limit.
Solution:
- Wait and retry (limits reset periodically)
- Use multiple providers to distribute load:
1 2 3export ANTHROPIC_API_KEY="..." export OPENAI_API_KEY="..." export GEMINI_API_KEY="..." - Configure rate limiting in your provider account
“Insufficient quota” or “Billing required”
Your API account doesn’t have credits or billing isn’t set up.
Solution:
- Add billing/credits to your provider account
- Check usage dashboards for current consumption
GitHub Integration Issues
“Resource not accessible by integration”
The GitHub token lacks required permissions.
Solution:
For personal access tokens, ensure repo scope is enabled.
For GitHub Actions, add permissions to your workflow:
| |
“Not found” when reviewing PR
The PR doesn’t exist or token can’t access it.
Solution:
- Verify the PR exists and number is correct
- For private repos, ensure your token has access
- Check the owner/repo are correct:
1 2 3 4# These should all work bop review pr 123 bop review pr owner/repo#123 bop review pr https://github.com/owner/repo/pull/123
“Could not resolve to a Repository”
The repository reference is invalid.
Solution:
- Check spelling of owner and repo names
- Verify the repository exists
- Ensure your token has access to the repository
“Validation failed” when posting comments
The comment couldn’t be posted, often due to line number issues.
Solution:
This can happen when:
- The file was deleted in the PR
- The line number is outside the diff
- The commit SHA changed
Bop handles most of these automatically, but if it persists, check that the PR hasn’t been force-pushed since the review started.
Review Issues
Timeout during review
Large PRs can timeout during LLM processing.
Solution:
Increase timeout in configuration:
1 2 3providers: anthropic: timeout: 300s # 5 minutesUse faster models:
1 2 3 4reviewers: quick: provider: gemini model: gemini-3-flash-previewSplit large PRs into smaller ones
For GitHub Actions, increase job timeout:
1 2 3jobs: review: timeout-minutes: 30
No findings generated
The review completed but found nothing.
Possible causes:
- Only non-code files changed: Bop focuses on code changes
- Redaction filtered everything: Check redaction settings
- Review instructions too restrictive: Review custom instructions
- Small changes: Minor changes may not trigger findings
Debug:
| |
Too many false positives
The review is generating low-quality findings.
Solution:
Enable verification:
1 2 3 4 5 6verification: enabled: true depth: thorough confidence: critical: 90 high: 80Adjust reviewer personas to be more specific
Use the
--instructionsflag to guide reviews:1bop review branch --instructions "Focus only on security issues. Ignore style."
Duplicate findings
The same issue appears multiple times.
Solution:
Enable semantic deduplication:
| |
MCP Server Issues
Tools not appearing in Claude Code/Cursor
The MCP server isn’t loading correctly.
Solution:
Verify
bop-mcpis in your PATH:1which bop-mcpCheck your MCP configuration file syntax
Restart your editor/AI tool
Check for errors in MCP logs (varies by tool)
“Missing GITHUB_TOKEN” in MCP
The MCP server needs a GitHub token for PR operations.
Solution:
Add the token to your MCP configuration:
| |
MCP tool calls failing silently
The tool is being called but returning empty or error results.
Solution:
- Check environment variables are passed correctly
- Verify API keys in MCP configuration
- Test the CLI directly to isolate the issue:
1bop review pr owner/repo#123
Configuration Issues
Config file not loading
Your bop.yaml settings aren’t being applied.
Solution:
- Check file location (project root or
~/.config/bop/) - Verify YAML syntax:
1 2# Check for YAML errors cat bop.yaml | python3 -c "import yaml, sys; yaml.safe_load(sys.stdin)" - Check file permissions (must be readable)
- Enable debug logging to see config loading:
1BOP_LOG_LEVEL=debug bop review branch
Environment variable not working
The BOP_* environment variable isn’t being applied.
Solution:
Verify the variable name matches the config path exactly:
- Config:
review.blockThreshold - Env:
BOP_REVIEW_BLOCKTHRESHOLD
- Config:
Check the variable is exported:
1 2 3export BOP_REVIEW_BLOCKTHRESHOLD=medium # not just BOP_REVIEW_BLOCKTHRESHOLD=mediumRemember priority: CLI flags > env vars > config file
Git Issues
“Not a git repository”
Bop was run outside a Git repository.
Solution:
Navigate to a Git repository or specify one:
| |
“Could not find base ref”
The base branch doesn’t exist.
Solution:
Check the branch name:
1git branch -aSpecify the correct base:
1bop review branch --base developFetch from remote:
1git fetch origin main
“No changes between branches”
There’s nothing to review.
Solution:
Verify you’re on the correct branch:
1git branch --show-currentCheck for uncommitted changes (if using
--include-uncommitted)Verify there are actual differences:
1git diff main..HEAD
Getting Help
If you’re still stuck:
- Check logs: Run with
BOP_LOG_LEVEL=debug - Version info: Run
bop --version - Submit feedback:
bop feedback - GitHub issues: Report bugs at the project repository