Production-ready Aider configuration with model aliasing, custom API routing, and optimized repomap settings for professional development workflows
A comprehensive Aider configuration that demonstrates advanced features including model aliasing, custom API routing, repomap optimization, and git workflow automation.
This configuration file showcases professional Aider usage patterns:
Save this configuration as `.aider.conf.yaml` in your project root or `~/.config/aider/.aider.conf.yaml` for global settings.
**If using GitHub Copilot API (or similar proxy):**
```yaml
openai-api-key: not-needed
openai-api-base: http://localhost:4141/
```
**If using direct API keys:**
```yaml
openai-api-key: sk-your-key-here
```
Edit the `alias` section to match your preferred models:
```yaml
alias:
- "sonnet:openai/claude-3.7-sonnet"
- "flash:openai/gemini-2.0-flash-001"
- "o3:openai/o3-mini"
```
Then use aliases in Aider:
```bash
aider --model sonnet
aider --model flash
```
The configuration uses 2048 tokens for repomap (double the default):
```yaml
map-tokens: 2048
```
**For production/team projects** (recommended):
```yaml
auto-commits: false
dirty-commits: false
```
**For personal/experimental projects**:
```yaml
auto-commits: true
dirty-commits: true
```
Uncomment and customize the `read` section to reference coding standards:
```yaml
read:
- "~/.config/aider/conventions/general.md"
- "~/.config/aider/conventions/typescript.md"
- "~/.config/aider/conventions/python.md"
```
These files will be included in context but never modified by Aider.
The configuration enables `architect: true` for enhanced code understanding:
```yaml
architect: true
```
This provides better context awareness for complex refactoring tasks.
```bash
aider --model sonnet-t
aider --model flash
aider --model o3
```
```bash
aider
aider --config /path/to/.aider.conf.yaml
aider --model sonnet --auto-commits true
```
```bash
aider main.py
```
Use different configs per environment:
```bash
aider --config .aider.dev.yaml
aider --config .aider.prod.yaml
```
Share read-only convention files via git:
```
.aider/
conventions/
general.md
typescript.md
python.md
.aider.conf.yaml
```
Reference: https://aider.chat/docs/config/aider_conf.html
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-advanced-configuration-kktqw0/raw