Aider Configuration
Professional Aider configuration file for AI-assisted coding workflows. This configuration is optimized for seamless development with Claude Sonnet 4 as the main model.
What This Does
This skill provides a complete `.aider.conf.yml` configuration file that:
Sets Claude Sonnet 4 as the primary model via OpenAI-compatible routingDisables automatic git commits for manual controlEnables yes-always mode to skip confirmation promptsMaintains default settings for repo mapping, caching, and output formattingConfiguration Details
Key Settings
**Model**: `openai/claude-sonnet-4` - Uses Claude Sonnet 4 through OpenAI-compatible API**Auto-commits**: Disabled - Gives you control over when changes are committed**Yes-always**: Enabled - Automatically accepts confirmations for streamlined workflowDefault Behaviors
Auto-lint enabled after changesPretty colorized output enabledStreaming responses enabledGit integration enabled with `.aider*` files added to `.gitignore`Repo map with auto-refresh for context awarenessInstructions
1. **Create the configuration file** at the root of your git repository or in your home directory:
```yaml
.aider.conf.yml
model: openai/claude-sonnet-4
auto-commits: false
yes-always: true
```
2. **Verify the configuration** by running:
```bash
aider --help
```
3. **Start coding** with Aider using your configuration:
```bash
aider file1.py file2.js
```
Customization Options
You can extend this base configuration with additional settings:
Model Settings
`--weak-model`: Specify model for commit messages and summaries`--editor-model`: Specify model for editor tasks`--reasoning-effort`: Set reasoning effort for supported modelsGit Settings
`--dirty-commits`: Allow commits when repo is dirty (default: true)`--attribute-author`: Attribute changes to aider in git author (default: true)`--show-diffs`: Show diffs when committing changesOutput Settings
`--dark-mode` or `--light-mode`: Adjust colors for your terminal`--code-theme`: Set markdown syntax highlighting theme`--verbose`: Enable detailed outputTesting and Linting
`--test-cmd`: Specify command to run tests`--auto-test`: Enable automatic testing after changes`--lint-cmd`: Add custom lint commands per languageUsage Examples
**Basic usage with configured settings:**
```bash
aider src/app.py
```
**Add multiple files:**
```bash
aider --file src/app.py --file tests/test_app.py
```
**Add read-only context files:**
```bash
aider --read README.md --file src/app.py
```
**Send a single message without entering chat mode:**
```bash
aider --message "Add error handling to the login function" src/auth.py
```
**Run with custom test command:**
```bash
aider --test-cmd "pytest tests/" src/app.py
```
Important Notes
Place `.aider.conf.yml` in your git repository root or home directoryAPI keys should be stored in `.env` file, not in the YAML configThe `openai/claude-sonnet-4` model requires appropriate API credentials configuredWith `auto-commits: false`, you'll need to manually commit changesWith `yes-always: true`, all confirmations are automatically acceptedConfiguration is automatically loaded when you run `aider` from the directoryFile Location
The configuration file should be named `.aider.conf.yml` and placed in one of these locations (in order of precedence):
1. Git repository root
2. Current working directory
3. Home directory (`~/`)
Additional Resources
Full configuration options: https://aider.chat/docs/config.htmlEnvironment variables: https://aider.chat/docs/config/dotenv.htmlModel settings: https://aider.chat/docs/config/adv-model-settings.html