The short answer
Aider is an open-source AI tool for pair programming in the terminal. You start Aider in your project folder, add the files that matter and say in plain language what should change. Aider edits the code and records every change straight away as a git commit.
Aider was one of the first AI tools for the terminal and works with almost any model: from Anthropic, OpenAI, Google and DeepSeek to open models on your own machine. It is released under the Apache 2.0 license and has more than 50,000 stars on GitHub. These days Aider writes most of its own new code.
What Aider does
Aider works differently from an agent that roams your project on its own. You decide which files are in the conversation, and Aider handles one request at a time. That makes it smaller and more predictable.
Every change a commit
After each edit Aider makes a git commit describing what changed. /diff shows you the change and /undo reverts it. If you still have uncommitted work of your own, Aider commits that separately first.
A map of your project
With every request Aider sends along a compact map of your repository: the files, classes and functions, and what depends on what. That way the model knows how your code fits together, beyond the files you added.
Ask, build or plan first
In code mode Aider edits files. In ask mode it discusses your code without changing anything. In architect mode one model makes a plan and a second model writes the change. You switch with /code, /ask and /architect.
Tests and linting after each step
Aider runs a linter over the code after every change. /test runs your tests and has Aider try to fix the failures itself, and with the right setting that happens after every change.
From your own editor
With the --watch-files option Aider watches the comments in your code. Write a comment ending in AI! and Aider carries it out. End it in AI? and Aider answers the question. So you keep working in whatever editor you like.
Aider can also run a shell command with /run, pull a web page into the conversation with /web and take spoken instructions with /voice. What Aider does not do: explore your whole project on its own, hand work to subagents or connect tools through MCP. If that is what you need, a coding agent such as OpenCode or Claude Code is the better fit. What makes a tool like Aider an AI harness is covered in what is an AI harness.
Which models work with Aider?
Almost any. Aider works with Anthropic, OpenAI, Google Gemini, DeepSeek, OpenRouter, Amazon Bedrock, Azure and GitHub Copilot, and with local models through Ollama and LM Studio. You pass the model and your API key when you start it, for example aider --model sonnet --api-key anthropic=<key>.
You start a local model with aider --model ollama_chat/<model>. Your code then never leaves your machine. Aider sets a suitable context window for Ollama itself, but expect less from a small local model than from a large model in the cloud. More on working with local models is in the best AI harness for coding.
What does Aider cost?
Aider itself is free. You install it with Python and pay only for the model, with your own API key at the provider. There is no Aider subscription.
What you spend depends on the model and on how much you ask. Every request sends the added files and the map of your project, so add only what you need. Architect mode costs more, because two models work on the same change. If you want to pay nothing, you can work with a local model or a free model through OpenRouter.
Aider, OpenCode and Claude Code side by side
All three let you change code with AI in the terminal. The difference is in how independently they work and how you get to review the changes.
| Aider | OpenCode | Claude Code | |
|---|---|---|---|
| Made by | An open-source project on GitHub. | Anomaly, as an open-source project. | Anthropic, the company behind Claude. |
| Models | Almost any model, local ones too. | From more than 200 providers, local ones too. | Anthropic's Claude models. |
| How it works | One request at a time, in the files you add. | An agent that searches your project itself, with subagents. | An agent that searches your project itself, with subagents. |
| Git | Every change is a commit, automatically. | You commit yourself, or ask the agent to. | You commit yourself, or ask the agent to. |
| Conventions in | A file you add with /read, such as CONVENTIONS.md | AGENTS.md, and it also reads CLAUDE.md | CLAUDE.md |
| Cost | Free, you pay for the model. | Free, you pay for the model. Works with ChatGPT or Copilot. | Included in paid Claude plans, or pay per use through the API. |
Pick Aider when you want to see and be able to undo every change, when you decide which files take part, or when you work with a local model. If you want an agent that takes on a bigger task by itself, OpenCode or Claude Code fit better. If you are torn between those two, OpenCode vs Claude Code lays out the differences.
How a senior team works with Aider
Aider does what you ask, in the files you give it. That is exactly its strength, as long as you set it up that way.
Only the files that matter
Add the files that need to change, and let the project map cover the rest. Too many files make every request more expensive and the answer less sharp.
Ask first, then code
Talk the approach through in ask mode and only then let Aider write the change in code mode. A mistake in the plan is cheaper than a mistake in the code.
Conventions in a fixed file
Put the project's conventions in CONVENTIONS.md and have Aider read that file every time through .aider.conf.yml. Any mistake that comes back twice becomes a rule.
Tests after every change
Set your test command so Aider tests after each step and sees a failure right away. You catch a broken change immediately rather than in review.
Review the commits
Because Aider commits everything, review gets easier: each step stands on its own in the history. Read them the way you read a colleague's work, and squash them before they reach the main branch.
Aider puts every step the AI takes into your git history. Whether that step is right is still your call.
Where Aider is a poor fit
Aider is made for developers who work in the terminal and can read code. If you want to build something without programming knowledge, a tool like Lovable is a better place to start.
If you would rather work in an editor with AI next to your code, Cursor fits better. And for a large task that spans many files, where the agent has to work out for itself what should change, a coding agent such as Claude Code or Codex is stronger.
Conclusion: AI with a git history
Aider is the AI tool for people who want to stay in control. It works one request at a time, with almost any model, and records every change as a commit, so you always see what happened and can roll it back. What produces good work is the same as with any AI tool: small tasks, clear conventions and a review by someone who knows where things go wrong.
Aider = control
An open-source tool that works one request at a time and records every step as a commit, with any model.
Senior developer = judgement
What you ask, which files take part and what gets through review. That is where quality lives.
What is Aider?
Is Aider free?
What is the difference between Aider and OpenCode?
Does Aider work with local models?
Can I undo a change Aider made?
How do I install Aider?
Build faster with AI without lowering the bar?
Our senior developers work with AI tools like Aider and coding agents every day. Bring them onto your project, or have your team learn to use them well in a workshop.