Comprehensive guide to configuring Aider AI pair programming assistant. Covers model selection, API settings, git integration, caching, repo mapping, and workflow customization.
This skill has safety concerns that you should review before use. Some patterns were detected that may pose a risk.Safety score: 60/100.
KillerSkills scans all public content for safety. Use caution before installing or executing flagged content.
A comprehensive reference for configuring Aider, the AI pair programming assistant. This guide covers all configuration options available through `.aider.conf.yml` files.
Aider can be configured using YAML configuration files placed in:
Choose which AI model powers your coding sessions:
```yaml
model: claude-3-5-sonnet-20241022
weak-model: claude-3-5-haiku-20241022
editor-model: gpt-4o-mini
edit-format: diff
architect: false
```
**Key considerations:**
Configure authentication for AI providers:
```yaml
openai-api-key: sk-...
anthropic-api-key: sk-ant-...
openai-api-base: https://api.custom-provider.com/v1
set-env:
- PROVIDER_API_KEY=xxx
- OPENAI_API_TYPE=azure
api-key:
- deepseek=sk-...
- groq=gsk-...
```
**Security note:** Store sensitive keys in `.env` files, not YAML config.
Fine-tune model behavior:
```yaml
model-settings-file: .aider.model.settings.yml
model-metadata-file: .aider.model.metadata.json
alias:
- gpt4=gpt-4-0613
- sonnet=claude-3-5-sonnet-20241022
reasoning-effort: high
thinking-tokens: 10000
verify-ssl: true
timeout: 120
show-model-warnings: true
max-chat-history-tokens: 8000
```
Enable prompt caching to reduce costs and latency:
```yaml
cache-prompts: true
cache-keepalive-pings: 12
```
**Cost optimization:** Caching can reduce costs by 50-90% for repetitive prompts.
Control how Aider understands your codebase:
```yaml
map-tokens: 2048
map-refresh: auto
map-multiplier-no-files: 2
```
**Performance tip:** Lower `map-tokens` for faster responses, higher for better context.
Manage conversation history and logs:
```yaml
input-history-file: .aider.input.history
chat-history-file: .aider.chat.history.md
llm-history-file: .aider.llm.history
restore-chat-history: false
```
Personalize the terminal experience:
```yaml
dark-mode: true
pretty: true
stream: true
user-input-color: "#00cc00"
assistant-output-color: "#0088ff"
tool-error-color: "#FF2222"
tool-warning-color: "#FFA500"
code-theme: monokai
completion-menu-color: "#ffffff"
completion-menu-bg-color: "#1e1e1e"
show-diffs: true
```
Configure version control behavior:
```yaml
git: true
gitignore: true
add-gitignore-files: false
aiderignore: .aiderignore
auto-commits: true
dirty-commits: true
git-commit-verify: false
attribute-author: true
attribute-committer: true
attribute-commit-message-author: false
attribute-co-authored-by: true
commit-prompt: "Write a concise commit message"
commit-language: en
subtree-only: false
```
**Best practice:** Enable `auto-commits` to track all AI changes.
Integrate linting and testing:
```yaml
auto-lint: true
lint-cmd:
- "python: ruff check --fix"
- "javascript: eslint --fix"
- "typescript: eslint --fix"
auto-test: false
test-cmd: pytest tests/
lint: false
test: false
```
**Workflow tip:** Enable `auto-test` for critical codebases.
Specify files for editing:
```yaml
file:
- src/main.py
- src/utils.py
read:
- docs/api.md
- requirements.txt
aiderignore: .aiderignore
```
Configure voice input (requires `aider[voice]`):
```yaml
voice-format: wav
voice-language: en
voice-input-device: "Default Microphone"
```
Additional configuration options:
```yaml
vim: false
fancy-input: true
multiline: false
editor: vim
notifications: false
notifications-command: "osascript -e 'display notification \"Ready\"'"
detect-urls: true
analytics: false
analytics-disable: true
check-update: true
show-release-notes: true
encoding: utf-8
line-endings: platform
suggest-shell-commands: true
env-file: .env
```
```yaml
model: gpt-3.5-turbo
weak-model: gpt-3.5-turbo
map-tokens: 1024
cache-prompts: false
auto-commits: true
dark-mode: true
```
```yaml
model: claude-3-5-sonnet-20241022
weak-model: claude-3-5-haiku-20241022
editor-model: gpt-4o-mini
cache-prompts: true
cache-keepalive-pings: 12
map-tokens: 4096
auto-lint: true
auto-test: false
show-diffs: true
attribute-co-authored-by: true
```
```yaml
model: gpt-4o
map-tokens: 2048
edit-format: diff
auto-lint: true
lint-cmd:
- "python: ruff check --fix"
- "javascript: eslint --fix"
git-commit-verify: true
attribute-commit-message-author: true
commit-language: en
```
When using this guide to configure Aider:
1. **Create configuration file** in repository root or home directory
2. **Start with model selection** based on budget and quality needs
3. **Configure API authentication** using secure methods
4. **Enable caching** to reduce costs
5. **Set up git integration** for automatic version control
6. **Add linting/testing** for code quality
7. **Customize output** for your terminal theme
8. **Test configuration** with a simple coding task
Common issues:
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-configuration-guide/raw