Comprehensive Aider configuration with model selection, git integration, editor settings, and best practices for AI-assisted coding workflows
A production-ready Aider configuration that sets up optimal defaults for AI-assisted coding with multiple model providers, git integration, and editor customization.
Configures Aider with:
1. **Create Configuration File**
Save this configuration to `~/.aider.conf.yml`:
```yaml
model: claude-3-5-sonnet-20241022
auto-commits: true
dirty-commits: true
attribute-author: true
attribute-commit-message-author: true
attribute-commit-message-committer: false
editor-model: claude-3-5-sonnet-20241022
editor-edit-format: diff
no-pretty: false
dark-mode: true
show-diffs: true
map-tokens: 2048
max-chat-history-tokens: 4096
```
2. **Set API Keys (Environment Variables - Recommended)**
```bash
export ANTHROPIC_API_KEY="your-anthropic-key"
export OPENAI_API_KEY="your-openai-key"
export GEMINI_API_KEY="your-gemini-key"
```
Add to `~/.bashrc`, `~/.zshrc`, or equivalent for persistence.
3. **Verify Configuration**
```bash
aider --help
aider --check-update
```
**Recommended (Default):**
```yaml
model: claude-3-5-sonnet-20241022 # Best for coding tasks
```
**Alternatives (uncomment to use):**
```yaml
```
```yaml
auto-commits: true # Automatically commit changes
dirty-commits: true # Allow commits with uncommitted changes
attribute-author: true # Add "Co-Authored-By: aider" to commits
attribute-commit-message-author: true
```
**Why This Matters**: Creates clean commit history with AI attribution, making it clear which changes were AI-assisted.
```yaml
editor-edit-format: diff # Show changes as diffs (recommended)
show-diffs: true # Display diffs before applying
```
**Alternatives**:
```yaml
map-tokens: 2048 # Context window for repository map
max-chat-history-tokens: 4096 # Chat history retention
```
Adjust these if working with large codebases or need more conversation history.
Create `~/.aider.conf.yml.local` to override defaults without modifying the main config:
```bash
cp ~/.aider.conf.yml ~/.aider.conf.yml.local
```
Aider prioritizes `.local` files when present.
```yaml
```
**DO:**
**DON'T:**
After configuration, start Aider in any git repository:
```bash
cd your-project
aider
aider src/main.py tests/test_main.py
aider --model gpt-4-turbo-preview
```
**Issue**: Aider not finding API key
**Issue**: Git commits not auto-attributing
**Issue**: Model not available
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-configuration-template-beo7k4/raw