Installation
Configuration & Launch
Option 1: Environment Variables (Recommended — persists across sessions)
Mac / Linux (zsh)
Mac / Linux (zsh)
Mac / Linux (bash)
Mac / Linux (bash)
Windows (PowerShell)
Windows (PowerShell)
Option 2: CLI Arguments (One-off use)
Using Anthropic Models
Using a .aider.conf.yml Config File
Create .aider.conf.yml in your project root to avoid passing flags every time:
Common Commands
Inside the Aider interactive session:| Command | Description |
|---|---|
/add <file> | Add a file to the current editing context |
/drop <file> | Remove a file from the context |
/diff | Show all code changes made in this session |
/undo | Undo the last AI-generated Git commit |
/commit | Commit current changes |
/model <name> | Switch to a different model |
/exit | Exit Aider |
Recommended Models
| Use Case | Recommended Model |
|---|---|
| General coding | gpt-4o |
| Complex refactoring | claude-opus-4-5-20251101 |
| Fast iteration | gpt-4o-mini |
Aider automatically commits all changes to Git by default. Start from a clean Git state so you can easily roll back with
/undo.