Connect Aider to byesu API
Aider is a terminal AI pair-programming tool that edits git repositories directly. You can route Aider through byesu using either Anthropic-native or OpenAI-compatible environment variables.
Quick configuration
- Anthropic models:
ANTHROPIC_BASE_URL=https://byesu.com,ANTHROPIC_API_KEY=sk-... - OpenAI / Gemini / DeepSeek models:
OPENAI_API_BASE=https://byesu.com/v1,OPENAI_API_KEY=sk-...
Option 1: Use Claude Models (Anthropic Native)
bash
export ANTHROPIC_BASE_URL="https://byesu.com"
export ANTHROPIC_API_KEY="sk-YOUR_BYESU_TOKEN"
aider --model anthropic/claude-sonnet-5-5
# Or flagship reasoning:
aider --model anthropic/claude-opus-5-5Option 2: Use OpenAI-Compatible Endpoint (GPT / Gemini / DeepSeek)
bash
export OPENAI_API_BASE="https://byesu.com/v1"
export OPENAI_API_KEY="sk-YOUR_BYESU_TOKEN"
aider --model openai/gpt-6.2-sol
# Or Gemini / DeepSeek:
aider --model openai/gemini-4-argon
aider --model openai/deepseek-v4-proPersist in .aider.conf.yml
To avoid exporting environment variables on every shell session, place a .aider.conf.yml in your home directory or repo root:
yaml
model: anthropic/claude-sonnet-5-5
cache-prompts: trueKeep your API keys in ~/.zshrc / ~/.bashrc or a git-ignored .env file.
Troubleshooting & Benchmarks
- 401 authentication error: run
env | grep -iE 'OPENAI|ANTHROPIC'to make sure no stale keys override your config (OpenAI 401, Claude 401). - 400 temperature / top_p error: see Claude 400 temperature/top_p not supported.
- Model speed comparison: see weekly production benchmarks and 31 code-level error guides.