Production-ready Aider configuration with multi-provider API key management, architect mode, and optimized model routing for main, editor, and weak tasks
A comprehensive Aider configuration that sets up multiple LLM providers with flexible model routing for different task types.
- Main model: `o3-mini` (reasoning-focused)
- Editor model: `claude-3-7-sonnet` (code editing)
- Weak model: `codestral-latest` (fast operations)
The configuration uses the `.aider.conf.yaml` format and should be placed in your project root or home directory.
The file includes commented alternatives for each tier:
**Main Model** (complex reasoning):
**Editor Model** (code editing):
**Weak Model** (fast operations):
Replace placeholder values with your actual API keys:
```yaml
api-key:
- openai=sk-...
- anthropic=sk-ant-...
- gemini=...
- deepseek=...
- codestral=...
- mistral=...
- github=ghp_...
- cohere=...
- xai=...
- groq=...
- together=...
- openrouter=...
```
Uncomment one of these to use alternative OpenAI-compatible endpoints:
```yaml
```
| Setting | Value | Purpose |
|---------|-------|---------|
| `architect` | `true` | Enable high-level design mode |
| `yes-always` | `true` | Auto-approve suggestions (use with caution) |
| `auto-commits` | `true` | Automatically commit changes |
| `show-diffs` | `false` | Hide diffs in output (cleaner logs) |
| `map-tokens` | `2048` | Context map size |
| `subtree-only` | `true` | Only track relevant files |
| `cache-prompts` | `true` | Enable prompt caching for speed |
| `cache-keepalive-pings` | `300` | Keep cache alive for 5 minutes |
| `timeout` | `301` | Request timeout (5 minutes) |
| `vim` | `true` | Enable Vim keybindings |
| `multiline` | `true` | Support multi-line input |
Uncomment to enable test-driven development workflow:
```yaml
test-cmd: go test ./... -v -race -cover -timeout 10s
auto-test: true
```
Uncomment to include system prompts or design docs:
```yaml
read:
- SYSTEM_PROMPT_PROGRAMMING.xml
- PRELIMINARY_DESIGN.md
```
1. **Install Aider**:
```bash
pip install aider-chat
```
2. **Create config file**:
```bash
# Project-specific
touch .aider.conf.yaml
# Or global
touch ~/.aider.conf.yaml
```
3. **Add your API keys** to the `api-key:` section
4. **Run Aider**:
```bash
aider
```
5. **Switch models on-the-fly** using commented alternatives:
- Edit `.aider.conf.yaml`
- Uncomment desired model
- Restart Aider
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-multi-provider-configuration/raw