Aider configuration for AI-powered pair programming with model aliases, git integration, auto-linting, and testing. Optimized for OpenRouter with multiple model options including Gemini, DeepSeek, Claude, and Devstral.
Professional Aider configuration for AI-assisted development with OpenRouter model routing, automated git workflows, and integrated linting/testing.
Sets up Aider with:
Create `.aider.conf.yml` in your project root with the following settings:
```yaml
analytics-disable: true
check-update: false
vim: true
dark-mode: true
env-file: na # ignore .env files
read: [.aider.conventions]
alias:
- gemini:openrouter/google/gemini-2.5-pro-preview
- deepseek:openrouter/deepseek/deepseek-r1-0528:free
- claude:openrouter/anthropic/claude-sonnet-4
- devstral:openrouter/mistralai/devstral-small:free
editor-model: devstral
git: true
gitignore: false
auto-commits: true
attribute-commit-message-author: true
auto-lint: true
lint-cmd: make lint
auto-test: true
test-cmd: make test
```
1. **Makefile Targets**: Ensure your project has `make lint` and `make test` targets defined
2. **OpenRouter API Key**: Set `OPENROUTER_API_KEY` environment variable
3. **Conventions File** (optional): Create `.aider.conventions` for project-specific coding standards
```bash
/model gemini
/model deepseek
/model claude
/model devstral
```
Aider will automatically:
Before finalizing changes, Aider will:
1. Run `make lint` and fix issues
2. Run `make test` to verify functionality
3. Only commit if both pass
Add to the `alias` section in `.aider.conf.yml`:
```yaml
alias:
- mymodel:openrouter/provider/model-name
```
Update in `.aider.conf.yml`:
```yaml
lint-cmd: npm run lint
test-cmd: npm test
```
Create `.aider.conventions` to define coding standards:
```
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-ai-pair-programming/raw