-
Notifications
You must be signed in to change notification settings - Fork 5
Configuration
Herve Hildenbrand edited this page Jan 20, 2026
·
1 revision
BGP Explorer uses environment variables for configuration. Settings are loaded in priority order:
- CLI arguments (highest priority)
- Environment variables
-
.envfile - Default values (lowest priority)
| Variable | Required | Default | Description |
|---|---|---|---|
ANTHROPIC_API_KEY |
Yes | - | Your Anthropic Claude API key |
BGP_RADAR_PATH |
No | PATH lookup | Path to bgp-radar binary |
export ANTHROPIC_API_KEY=your_key_hereAdd this to your shell profile (~/.bashrc, ~/.zshrc, etc.) for persistence.
Copy the example and edit:
cp .env.example .envEdit .env:
# AI Backend
ANTHROPIC_API_KEY=your_anthropic_key_here
# Optional: bgp-radar path (defaults to PATH lookup)
BGP_RADAR_PATH=/path/to/bgp-radaruv run bgp-explorer --api-key your_key_here chatBGP Explorer supports two Claude model tiers:
| Model | Description | Use Case |
|---|---|---|
sonnet (default) |
Fast, cost-effective | General queries, most investigations |
opus |
Most capable | Complex multi-step investigations |
Both models support extended thinking for deeper analysis.
# Use default (sonnet)
uv run bgp-explorer chat
# Use opus for complex investigations
uv run bgp-explorer --model opus chatThe thinking budget controls how much "thinking" Claude can do before responding. Higher budgets allow for more thorough analysis but increase costs.
| Budget | Tokens | Use Case |
|---|---|---|
| Minimum | 1024 | Quick lookups |
| Default | 8000 | Balanced analysis |
| Maximum | 16000 | Deep investigations |
# Set at startup
uv run bgp-explorer --thinking-budget 12000 chat
# Change during chat session
/thinking 12000By default, BGP Explorer uses rrc00 for real-time monitoring. You can specify additional collectors:
uv run bgp-explorer --collectors rrc00,rrc01,rrc10 chatCommon collectors:
-
rrc00- Amsterdam (default) -
rrc01- London -
rrc10- Milan -
rrc14- Palo Alto
See RIPE RIS collectors for the full list.
| Format | Description |
|---|---|
text (default) |
Human-readable conversational output |
json |
Structured JSON for programmatic use |
both |
Both text and JSON output |
uv run bgp-explorer --output json chatSave conversation output to a file:
uv run bgp-explorer --save /path/to/output.txt chat- Usage Guide - Learn how to use the CLI
- Examples - See example queries