Configuration
Coderrr stores your provider configuration locally in ~/.coderrr/config.json.
Configure Provider
coderrr configInteractive flow:
- Select Provider - Choose from 5 supported providers
- Enter API Key - Securely input your key (masked)
- Select Model - Choose from available models
View Current Config
coderrr config --showOutput:
🔧 Current Configuration
Provider: openrouter
Model: meta-llama/llama-3.3-70b-instruct:free
API Key: sk-or-v...k4Jx
Config file: ~/.coderrr/config.jsonClear Configuration
coderrr config --clearConfig File Format
{
"provider": "openrouter",
"apiKey": "sk-or-...",
"model": "meta-llama/llama-3.3-70b-instruct:free",
"endpoint": null,
"updatedAt": "2026-01-12T12:00:00.000Z"
}Environment Variables
You can also configure via environment variables:
| Variable | Description |
|---|---|
| CODERRR_BACKEND | Custom backend URL |
| OPENAI_API_KEY | OpenAI API key |
| ANTHROPIC_API_KEY | Anthropic API key |
| OPENROUTER_API_KEY | OpenRouter API key |
| GITHUB_TOKEN | GitHub token for Azure AI |