Production-ready Aider config with Claude Sonnet 4.5 via OpenRouter, auto-testing, linting, file watching, and Git attribution
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.
Production-ready configuration file for [Aider](https://aider.chat/), optimized for AI-assisted coding with Claude Sonnet 4.5 via OpenRouter. Includes auto-testing, linting, file watching, and Git attribution.
1. **Save this configuration as `.aider.conf.yml` in your project root**
2. **Set your OpenRouter API key**
Replace `put-your-key-here` on line 55 with your actual OpenRouter API key:
```yaml
api-key: openrouter=YOUR_OPENROUTER_API_KEY
```
Alternatively, store it in a `.env` file:
```bash
OPENROUTER_API_KEY=your_key_here
```
3. **Install Aider**
```bash
pip install aider-chat
```
4. **Launch Aider**
```bash
aider
```
Aider will automatically load `.aider.conf.yml` from your project root.
To customize lint commands for your language:
```yaml
lint-cmd:
- "python: pylint --select=E,W"
- "javascript: eslint --fix"
- "typescript: eslint --fix"
```
To change the test command:
```yaml
test-cmd: pytest tests/
```
To disable auto-testing:
```yaml
auto-test: false
```
This config attributes commits to Aider using the `Co-authored-by` trailer. To change attribution style:
```yaml
attribute-author: true # Attribute in author name
attribute-committer: true # Attribute in committer name
attribute-commit-message-author: true # Prefix with "aider:"
```
Change these if needed:
```yaml
chat-language: spanish
commit-language: french
```
To use a different provider (OpenAI, Anthropic direct, etc.):
```yaml
model: gpt-4o
openai-api-key: YOUR_OPENAI_KEY
```
Or with Anthropic:
```yaml
model: claude-sonnet-4.5
anthropic-api-key: YOUR_ANTHROPIC_KEY
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-configuration-ejmnw1/raw