Comprehensive Aider configuration file template covering all available settings including model selection, API keys, git integration, output preferences, and advanced features.
A comprehensive configuration template for Aider, the AI pair programming tool. This template covers all available configuration options that can be placed in `.aider.conf.yml` at your project root or home directory.
Provides a complete reference configuration file for Aider with all supported options documented. Use this as a starting point to customize Aider's behavior for:
1. **Create the configuration file** at your project root or home directory:
```bash
touch .aider.conf.yml
```
2. **Copy relevant sections** from the template below based on your needs. You don't need to include all options—only uncomment and set values you want to override from defaults.
3. **Set your API keys** (OpenAI/Anthropic only in YAML; other providers use `.env` file):
```yaml
openai-api-key: sk-...
anthropic-api-key: sk-ant-...
```
4. **Choose your primary model**:
```yaml
model: claude-3-7-sonnet-20250219
# or
model: gpt-4o
```
5. **Configure git behavior** (auto-commits, attribution, etc.):
```yaml
auto-commits: true
attribute-author: true
dirty-commits: true
```
6. **Set output preferences**:
```yaml
dark-mode: true
pretty: true
stream: true
code-theme: monokai
```
7. **Enable optional features**:
```yaml
auto-lint: true
lint-cmd:
- "python: ruff check --fix"
- "typescript: eslint --fix"
cache-prompts: true
map-tokens: 2048
```
8. **Test your configuration**:
```bash
aider --verbose
```
```yaml
##########################################################
##########################################################
#############
#model: xxx
########################
#openai-api-key: xxx
#anthropic-api-key: xxx
#openai-api-base: xxx
#set-env:
#api-key:
#################
#model-settings-file: .aider.model.settings.yml
#model-metadata-file: .aider.model.metadata.json
#alias:
#reasoning-effort: xxx
#thinking-tokens: xxx
#timeout: xxx
#edit-format: xxx
#architect: false
#auto-accept-architect: true
#weak-model: xxx
#editor-model: xxx
#show-model-warnings: true
#max-chat-history-tokens: xxx
#################
#cache-prompts: false
#cache-keepalive-pings: 0
###################
#map-tokens: xxx
#map-refresh: auto
#map-multiplier-no-files: 2
################
#input-history-file: .aider.input.history
#chat-history-file: .aider.chat.history.md
#restore-chat-history: false
#llm-history-file: xxx
##################
#dark-mode: false
#light-mode: false
#pretty: true
#stream: true
#user-input-color: "#00cc00"
#tool-output-color: "xxx"
#tool-error-color: "#FF2222"
#tool-warning-color: "#FFA500"
#assistant-output-color: "#0088ff"
#completion-menu-color: "xxx"
#completion-menu-bg-color: "xxx"
#code-theme: default
#show-diffs: false
###############
#git: true
#gitignore: true
#add-gitignore-files: false
#aiderignore: .aiderignore
#subtree-only: false
#auto-commits: true
#dirty-commits: true
#attribute-author: true
#attribute-committer: true
#attribute-commit-message-author: false
#attribute-co-authored-by: true
#git-commit-verify: false
#commit: false
#commit-prompt: xxx
#dry-run: false
#watch-files: false
########################
#lint: false
#lint-cmd:
#auto-lint: true
#test-cmd: xxx
#auto-test: false
#test: false
############
#analytics: false
#analytics-log: xxx
#analytics-disable: false
############
#check-update: true
#show-release-notes: true
########
#message: xxx
#message-file: xxx
#gui: false
#copy-paste: false
#################
#voice-format: wav
#voice-language: en
#voice-input-device: xxx
#################
#file:
#read:
#vim: false
#chat-language: xxx
#commit-language: xxx
#yes-always: false
#verbose: false
#load: xxx
#encoding: utf-8
#line-endings: platform
#config: xxx
#env-file: .env
#suggest-shell-commands: true
#fancy-input: true
#multiline: false
#notifications: false
#notifications-command: xxx
#detect-urls: true
#editor: xxx
```
```yaml
model: claude-3-7-sonnet-20250219
anthropic-api-key: sk-ant-...
dark-mode: true
auto-commits: true
```
```yaml
model: gpt-4o
openai-api-key: sk-...
auto-lint: true
lint-cmd:
- "python: ruff check --fix"
auto-test: false
test-cmd: pytest
map-tokens: 2048
```
```yaml
model: claude-3-7-sonnet-20250219
weak-model: claude-3-5-haiku-20241022
editor-model: gpt-4o-mini
cache-prompts: true
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-configuration-template-sgo9uv/raw