
by Paul Gauthier (Open Source) · AI Pair Programmer in Your Terminal
Aider is a free, open-source AI pair programmer that runs entirely in your terminal. Tell it what to change, and it edits your code across multiple files, creates commits, and explains every change — all without leaving the command line.
Terminal-native philosophy: Aider is not an IDE plugin — it is a command-line tool. You run it from your terminal, in your project directory, and it works with whatever editor you already use. Every code change is automatically committed to Git with a meaningful message, giving you full undo capability at all times.
Created by Paul Gauthier and released as open source, Aider quickly became a cult favorite among developers who prefer the terminal over GUI tools. It ranks consistently at or near the top of SWE-Bench Verified leaderboards among open-source coding tools — outperforming many expensive commercial alternatives.
The key insight behind Aider is that the biggest limitation for AI coding assistants is context. Aider builds a sophisticated map of your entire codebase (repository map) and feeds the most relevant parts to the LLM for each request — without sending your entire repo in every prompt, which would be expensive and slow.
2025–2026: Aider added support for Claude 3.7 Sonnet's extended thinking mode, which dramatically improved performance on complex, multi-file refactoring tasks. It also introduced "Architect Mode" — where one LLM plans the approach and a second LLM executes the edits, mimicking a senior/junior engineer pair.
Aider builds an intelligent map of your codebase using AST parsing. The LLM gets a concise overview of all files, classes, and functions — without sending the entire codebase in every prompt.
Every change Aider makes is automatically committed to Git with an AI-generated commit message. If you don't like the result, a simple `git reset` undoes everything cleanly.
Aider can edit across multiple files in a single request. Ask it to refactor a function that spans 5 files and it handles all the changes coherently in one go.
A senior LLM plans the solution architecture; a separate junior LLM executes the code edits. This separation of reasoning and execution improves quality on complex tasks.
Works with Claude (Anthropic), GPT-4o (OpenAI), Gemini (Google), DeepSeek, Ollama local models, and any OpenAI-compatible API. Just set your API key and go.
Rich slash commands: /add files, /drop files, /run terminal commands, /test run your test suite, /diff show changes, /undo last commit, /clear reset context.
Paste a URL and Aider fetches the content, adding it to context. Instantly pull in API documentation, GitHub issues, or Stack Overflow answers during your session.
Optional voice-to-text input — speak your coding requests instead of typing. Useful for quick refactoring requests without interrupting your thought flow.
| Component | Cost | Notes |
|---|---|---|
| Aider Tool ⭐ | $0 (free forever) | MIT license, open source. No usage limits on the tool itself. |
| Claude 3.7 Sonnet API | ~$3/MTok input + $15/MTok output | Best quality. A typical session costs $0.50–$3. |
| GPT-4o API | ~$2.50/MTok input + $10/MTok output | Solid alternative. Slightly faster than Claude. |
| DeepSeek API | ~$0.14/MTok input + $0.28/MTok output | Extremely cheap. Good quality for the price. |
| Ollama (Local) | $0 (compute cost only) | No API cost. Lower quality but fully private. |
Most developers spend $10–50/month on API costs using Aider with Claude or GPT-4o. Heavy users doing all-day refactoring sessions may spend $50–100/month. Using DeepSeek or Ollama reduces this to near-zero.
| Feature | Aider | Cursor | Continue.dev | GitHub Copilot |
|---|---|---|---|---|
| Free & open source | MIT | Apache 2.0 | ||
| Auto Git commits | Every change | |||
| Multi-file editing | Excellent | Good | Via agent | Limited |
| Repo map / context | AST-based map | Good | @codebase | |
| IDE integration | Terminal only | Full IDE | VS Code + JB | All IDEs |
| Inline autocomplete | Excellent | Best-in-class | ||
| SWE-Bench ranking | Top OSS | N/A | N/A | N/A |
Aider is one of the most impressive open-source AI tools in any category. For terminal-comfortable developers, it offers a coding experience that rivals expensive commercial tools at a fraction of the cost — you only pay for the LLM API you use.
The automatic Git commits are a killer feature that no other tool matches: every change is instantly recoverable, making Aider safe to use even on production codebases. The repository map ensures the AI always has the right context without bloating every prompt with irrelevant files.
Recommended for: Developers comfortable with the terminal, open-source enthusiasts, teams on tight budgets, backend engineers doing large refactoring tasks, anyone who values Git-native workflows, and developers who want to use any LLM (including free/local options).
Not recommended for: Developers who prefer a GUI experience, those who need inline autocomplete while typing (pair Aider with Continue.dev for that), or teams that need a polished onboarding experience for non-technical users.