Skip to content

Aider

Aider is an open-source AI pair programming tool for the terminal.

TypeCLI
Open SourceYes (Apache 2.0)
Best ForBYOK, polyglot projects, benchmarking
  • Git-native — Auto-commits with descriptive messages
  • BYOK — Any OpenAI-compatible API
  • Multi-file Editing — Handles large refactors
  • Voice Input — Speak your prompts
  • Leaderboard — Public benchmarks for model comparison
Terminal window
# pip
pip install aider-chat
# pipx (recommended)
pipx install aider-chat
# homebrew
brew install aider

Aider is open source and BYOK. You connect it to the provider you want to use, which makes it a strong fit for developers who want explicit control over model choice and privacy boundaries.

SettingValue
Open SourceYes (auditable)
TrainingDepends on API provider
Data StorageLocal only
JurisdictionYour API provider

Works with any OpenAI-compatible API:

  • OpenAI (GPT-5.2, Codex 5)
  • Anthropic (Claude Opus/Sonnet 4.5)
  • DeepSeek, Mistral, Ollama
  • Any OpenAI-compatible endpoint
Terminal window
# Set API key
export OPENAI_API_KEY=sk-...
# Start in your project
cd your-project
aider
# Or specify files to edit
aider src/main.py src/utils.py
CommandAction
/add <file>Add file to context
/drop <file>Remove file from context
/undoUndo last change
/diffShow pending changes
/commitCommit current changes
/clearClear conversation
/helpShow all commands

Create .aider.conf.yml for project settings:

.aider.conf.yml
model: claude-sonnet-4-5-20250514
auto-commits: true
gitignore: true
# Files to always include
read:
- README.md
- docs/architecture.md

Aider maintains a public leaderboard comparing models on real coding tasks. Useful for model selection.

  • Use /add to bring relevant files into context
  • Enable auto-commits for automatic git history
  • Check the leaderboard before choosing a model
  • Use with Ollama for 100% local operation