This page may contain affiliate links. We may earn a commission if you purchase through our links, at no extra cost to you. Learn more.

Aider

Open-source terminal AI pair programmer that works with your local git repo

4.4/5(0 reviews)

What is Aider?

Aider is an open-source AI pair programming tool that runs entirely in your terminal. You start Aider from the command line inside your git repository, add the files you want to work on to the context, and describe what you want done in natural language. Aider then generates the code changes, shows you a diff, and commits directly to git with an automatically generated commit message — making it feel less like using a chatbot and more like working with a fast, capable colleague who commits their own work.

The open-source nature of Aider is a significant advantage: there are no subscription fees, the code is auditable, and it supports any LLM you can access via API — OpenAI, Anthropic Claude, Google Gemini, local Ollama models, and many others. The tool is actively maintained with frequent releases and a strong community. Aider consistently ranks near the top of the SWE-bench coding benchmark when paired with frontier models, giving it credibility as a serious engineering tool rather than a demo project.

Aider's workflow centers on file context management. You explicitly add files to the context with /add commands, which keeps the LLM focused on the relevant code and reduces token waste. The voice input feature lets you dictate changes, which some developers find useful for describing complex refactors while keeping their hands free. Aider also supports a --watch mode that automatically picks up any AI-readable comments you add to files and implements them — an interesting workflow for developers who prefer to annotate code with intent and let the agent execute.

Key Features

  • Terminal-based AI pair programming with direct git commit integration
  • Support for OpenAI, Anthropic, Google Gemini, Ollama, and 50+ LLM providers
  • File context management with explicit add/drop workflow
  • Automatic git commits with AI-generated commit messages
  • Voice input for dictating code changes
  • Watch mode for implementing annotated code comments
  • Multi-file editing and refactoring
  • Web search integration for documentation lookup
  • Diff review before committing changes
  • Repo map for whole-codebase context awareness

Pros & Cons

Pros

  • Completely free and open-source — pay only for model API usage
  • Works with any LLM provider including local models for full privacy
  • Direct git integration makes workflow fast and version-controlled
  • Consistently high SWE-bench scores demonstrate real engineering capability

Cons

  • Terminal-only interface is a barrier for developers accustomed to GUI tools
  • Requires manual file context management to get best results
  • No built-in IDE — less suitable for quick inline completions
  • Setup requires API keys and some command-line familiarity

Pricing

Model: Free / Open Source

PlanPriceKey Limits
Open Source$0/moFree to use, pay only for model API usage
With Claude SonnetPer token~$3/M input, $15/M output — typical session costs $0.10-1.00
See Full Pricing

FAQ

Is Aider completely free?
Aider itself is free and open-source. You pay for the AI model API calls — for example, using Claude Sonnet or GPT-4o. Typical sessions cost between $0.10 and $1.00 depending on the complexity of the task and the size of your codebase.
Which AI model works best with Aider?
Aider works best with frontier models. Claude 3.5 Sonnet, Claude 3.7 Sonnet, and GPT-4o consistently produce the best results in Aider's benchmark testing. For local offline use, DeepSeek Coder and CodeQwen via Ollama are strong options.
Does Aider work on Windows?
Yes. Aider works on macOS, Linux, and Windows (via Windows Subsystem for Linux or native Python). The terminal experience is most polished on macOS and Linux.
Aider vs Claude Code — which terminal agent is better?
Both are terminal-based AI agents with strong coding capabilities. Aider has the advantage of being free and open-source with support for any LLM. Claude Code is a polished commercial product with tighter Anthropic integration, MCP server support, and a more structured permissions model. Developers who prioritize cost and model flexibility often prefer Aider; those who want a fully integrated Anthropic experience prefer Claude Code.
Does Aider have an affiliate program?
No. Aider is an open-source project and does not operate an affiliate or referral program.