Environment Variables
All environment variables supported by the Broski bridge.
Bridge Variables
| Variable | Type | Default | Description |
|---|---|---|---|
| BROSKI_PORT | number | 18274 | Bridge loopback port |
| BROSKI_TLS | 0 or 1 | 1 | TLS on the loopback listener used by agent hooks |
API Keys
| Variable | Backend | Description |
|---|---|---|
| ANTHROPIC_API_KEY | Both | Anthropic Claude API key |
| OPENAI_API_KEY | Pi | OpenAI API key |
| GEMINI_API_KEY | Pi | Google Gemini API key |
| OPENROUTER_API_KEY | Pi | OpenRouter API key |
Setting Environment Variables
Temporary (Current Session)
bash
# Set for this command only
BROSKI_PORT=8080 broski
# Or export for current session
export ANTHROPIC_API_KEY=sk-ant-...
broskiPermanent (Shell Profile)
bash
# Add to ~/.bashrc, ~/.zshrc, or ~/.profile
export ANTHROPIC_API_KEY=sk-ant-...
export BROSKI_PORT=18274
# Reload
source ~/.zshrcPrecedence Order
When the same setting is configured in multiple places:
- CLI flags - Highest priority
- Environment variables
- Config files
- Default values - Lowest priority