Optimized Aider setup with multiple model aliases, auto-commits disabled, Chinese language chat, and nvim integration for efficient AI-assisted coding workflows.
Optimized Aider configuration featuring multiple AI model aliases via OpenRouter, Chinese language chat, disabled auto-commits for manual control, and nvim editor integration.
This Aider setup provides:
The configuration includes these OpenRouter model shortcuts:
1. **Install Aider**:
```bash
pip install aider-chat
```
2. **Create Configuration File**:
Save this as `.aider.conf.yml` in your project root or `~/.aider.conf.yml` for global settings:
```yaml
#################
# Model settings:
model: flash
#################
# Cache settings:
cache-prompts: true
#################
# Git settings:
auto-commits: false
watch-files: true
#################
# Output settings:
stream: true
#################
# Other settings:
chat-language: zh-CN
map-tokens: 2048
editor: nvim
alias:
- "v3:openrouter/deepseek/deepseek-chat-v3-0324"
- "v3f:openrouter/deepseek/deepseek-chat-v3-0324:free"
- "exp:openrouter/google/gemini-2.5-pro-exp-03-25:free"
- "qwen3:openrouter/qwen/qwen3-235b-a22b:free"
- "flash:openrouter/google/gemini-2.5-flash-preview-05-20"
```
3. **Set OpenRouter API Key**:
```bash
export OPENROUTER_API_KEY=your_key_here
```
4. **Start Aider**:
```bash
# Use default flash model
aider
# Or switch to a specific model
aider --model v3
```
**Switch Models Mid-Session**:
```
/model v3 # Switch to DeepSeek v3 (paid)
/model exp # Switch to Gemini 2.5 Pro Exp (free)
/model qwen3 # Switch to Qwen3 235B (free)
```
**Manual Git Workflow** (since auto-commits are disabled):
```bash
aider "Add user authentication"
git status
git diff
git add .
git commit -m "Add user authentication with JWT"
```
**File Watching**:
With `watch-files: true`, Aider automatically detects when you edit files externally in nvim and incorporates those changes into the conversation context.
**Editor Integration**:
```
/editor # Opens current files in nvim
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-configuration-for-chinese-development/raw