Configure Aider AI pair programming assistant with model settings, git behavior, testing, caching, and output preferences for your project
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.
Configure Aider, an AI pair programming tool, by creating a `.aider.conf.yml` file at the root of your git repository or in your home directory.
This skill helps you set up Aider configuration files to customize model selection, git behavior, testing workflows, caching, output formatting, and other preferences. Aider works with OpenAI, Anthropic, and other LLM providers to help you code with AI assistance.
Identify which settings to configure based on the project:
Create `.aider.conf.yml` in the git repository root with essential settings:
```yaml
model: sonnet # or opus, gpt-4o, etc.
cache-prompts: true
auto-commits: false # Set to true to auto-commit changes
dirty-commits: true # Allow commits when repo is dirty
test-cmd: pytest tests # Command to run tests
read:
- README.md
- CONVENTIONS.md
- .env
```
For API keys, prefer using `.env` file over YAML:
**In `.env` file:**
```
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
```
**Or in YAML (less secure):**
```yaml
anthropic-api-key: sk-ant-...
openai-api-key: sk-...
```
```yaml
model: sonnet
weak-model: haiku
editor-model: sonnet
edit-format: diff
architect: false
auto-accept-architect: true
```
```yaml
git: true
gitignore: true
auto-commits: false
dirty-commits: true
attribute-author: true
attribute-committer: true
attribute-commit-message-author: false
commit-prompt: "Custom commit prompt here"
show-diffs: false
```
```yaml
test-cmd: pytest tests
auto-test: false
auto-lint: true
lint-cmd:
- "python: flake8 --select=E,W"
- "javascript: eslint"
post-change-cmd: npm run build
```
```yaml
map-tokens: 1024
map-refresh: auto # auto, always, files, manual
map-multiplier-no-files: 2
```
```yaml
dark-mode: true # or light-mode: true
pretty: true
stream: true
user-input-color: "#00cc00"
assistant-output-color: "#0088ff"
tool-error-color: "#FF2222"
code-theme: monokai # default, solarized-dark, etc.
```
```yaml
file:
- src/main.ts
- src/utils.ts
read:
- README.md
- CONVENTIONS.md
- docs/architecture.md
aiderignore: .aiderignore
```
```yaml
input-history-file: .aider.input.history
chat-history-file: .aider.chat.history.md
restore-chat-history: false
llm-history-file: .aider.llm.history
detect-urls: false
suggest-shell-commands: true
notifications: false
fancy-input: true
multiline: false
```
```yaml
model: sonnet
cache-prompts: true
auto-commits: false
test-cmd: npm test
```
```yaml
model: sonnet
weak-model: haiku
cache-prompts: true
cache-keepalive-pings: 2
git: true
auto-commits: false
dirty-commits: true
attribute-author: true
show-diffs: true
test-cmd: pytest tests
auto-test: false
auto-lint: true
map-tokens: 2048
map-refresh: auto
dark-mode: true
code-theme: monokai
stream: true
read:
- README.md
- CONVENTIONS.md
- .env
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-configuration-b5kx25/raw