Comprehensive Aider setup with multi-model aliases, OpenRouter integration, API customization, and optimized defaults for AI-assisted coding workflows
This skill provides a production-ready Aider configuration file (`.aider.conf.yml`) with advanced features including multi-model aliases, OpenRouter integration, customized API settings, and workflow optimizations.
1. **Create the configuration file** in your project's git root or home directory:
```bash
# In project root (recommended for project-specific settings)
touch .aider.conf.yml
# OR in home directory (for global defaults)
touch ~/.aider.conf.yml
```
2. **Copy the configuration** below into `.aider.conf.yml`:
```yaml
alias:
- "glm:openai/GLM-4.5"
- "qc:openai/qwen3-coder"
- "k2:openai/kimi-k2"
- "r1:openai/DeepSeek-R1-0528"
- "v3:openai/DeepSeek-V3-0324"
- "gp:openai/gemini-2.5-pro"
- "gf:openai/gemini-2.5-flash"
- "gfl:openai/gemini-2.5-flash-lite"
- "or:openai/openrouter"
model: gp
weak-model: gfl
chat-mode: ask
openai-api-base: https://liftai.icu/v1
model-settings-file: .aider.model.settings.yml
model-metadata-file: .aider.model.metadata.json
map-tokens: "8192"
dark-mode: true
auto-commits: false
dirty-commits: false
attribute-author: true
attribute-committer: false
read:
- README.md
vim: true
```
3. **Set up your API key** in a `.env` file:
```bash
# Create .env in git root
echo "OPENAI_API_KEY=your_api_key_here" > .env
```
4. **Customize the configuration** for your needs:
- **Change the default model**: Set `model:` to any alias (e.g., `model: r1` for DeepSeek-R1)
- **Adjust repo map tokens**: Increase `map-tokens` for larger codebases (e.g., `"16384"`)
- **Enable auto-commits**: Set `auto-commits: true` if you want Aider to commit changes automatically
- **Add more read-only files**: Add documentation or spec files under `read:`
5. **Create optional model metadata files** (if using custom models):
```bash
# Create placeholder files
touch .aider.model.settings.yml
touch .aider.model.metadata.json
```
6. **Test the configuration**:
```bash
# Launch Aider with the config
aider
# Or switch models using aliases
aider --model r1 # Use DeepSeek-R1
aider --model gf # Use Gemini Flash
```
Quick shortcuts for switching between models without typing full names:
Files listed under `read:` are included in every chat as context but won't be edited:
**Switch models on the fly:**
```bash
aider --model r1 # Use DeepSeek-R1
aider --model gp --opus # Use Gemini Pro with opus quality
```
**Override map tokens for large repos:**
```bash
aider --map-tokens 16384
```
**Enable auto-commits for prototyping:**
```bash
aider --auto-commits
```
**Add files to chat:**
```bash
aider src/main.py tests/test_main.py
```
**"Model not found" errors:**
**Aider not finding config:**
**Repo map too slow:**
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/advanced-aider-configuration/raw