Aider is an Apache 2.0 terminal agent that works with almost any model provider and bills you per token at API rates. Claude Code is a subscription product with Anthropic models, a deeper harness, and surfaces beyond the terminal. Aider wins on model choice, offline use, git hygiene, and spiky usage. Claude Code wins on cost for daily use, on harness depth, and on how fast it is still shipping.
- Aider is Apache 2.0 software; you pay only for model tokens.
- Claude Code is a subscription, and cheaper than API rates for daily use.
- Aider works with almost any provider, including local models, so it runs offline.
- Aider commits every change automatically, which is a genuinely better default.
- Check the release cadence before you commit: Aider ships far more slowly than it did.
- Claude Code has the deeper harness: hooks, MCP, subagents, skills, budget ceilings.
Side by side
Checked against both projects’ own documentation and repository in August 2026.
| Claude Code | Aider | |
|---|---|---|
| License | Proprietary | Apache 2.0 |
| Cost | $20 to $200/mo subscription | Free, plus token spend |
| Models | Anthropic models | Almost any provider, including local |
| Runs offline with a local model | No | Yes |
| Git integration | Good; commits when asked | Auto-commits every change |
| Extensibility | Hooks, MCP, subagents, skills | Scriptable, simpler, fewer moving parts |
| Headless | Yes, claude -p | Yes, aider --message |
| Spend ceiling per run | Yes, --max-budget-usd | No, you cap it yourself |
| Surfaces | Terminal, VS Code, JetBrains, desktop, web, mobile | Terminal |
| Language | Node.js install | Python 3.8 to 3.13 |
Check the release cadence first
This is the thing to look at before any feature table, because with open-source tooling you are choosing a maintenance commitment, not just a binary. The numbers below are from GitHub and PyPI, read on 7 August 2026.
| Signal | Aider | Claude Code |
|---|---|---|
| Repository | Aider-AI/aider, roughly 48,000 stars | Proprietary, no public repo |
| Latest tagged release | v0.86.0 | Ships continuously |
| Latest package on PyPI | aider-chat 0.86.2, uploaded February 2026 | n/a |
| Last commit on the default branch | 22 May 2026 | n/a |
| Archived | No | n/a |
Read that carefully rather than as a verdict. The project is not archived and the software still works: it is a mature tool that has slowed down, not an abandoned one. But a terminal agent lives or dies on keeping up with provider APIs, tool-use formats, and model names, and a tool shipping every week will track those changes faster than one shipping a few times a year.
Which is actually cheaper
Free software is not the same as cheap software, because Aider still pays list price for every token while a subscription does not. Here is the arithmetic instead of an adjective.
Claude API list rates per million tokens, from Anthropic’s pricing page in August 2026. Sonnet 5 is on introductory pricing through 31 August 2026, after which it moves to $3 and $15.
| Model | Input | Cache read | Output |
|---|---|---|---|
| Claude Sonnet 5 | $2 | $0.20 | $10 |
| Claude Opus 5 | $5 | $0.50 | $25 |
| Claude Haiku 4.5 | $1 | $0.10 | $5 |
An agent loop is input-heavy: it re-reads files, tool results, and its own history on every turn. Take one afternoon of work that sends 3 million input tokens, of which 80 percent are cache reads, and produces 150,000 output tokens.
uncached input 600,000 tokens x $2.00 / 1,000,000 = $1.20
cached input 2,400,000 tokens x $0.20 / 1,000,000 = $0.48
output 150,000 tokens x $10.00 / 1,000,000 = $1.50
-----
one afternoon $3.18
same afternoon on Opus 5 $7.95
same afternoon, 20 working days $63.60 (Sonnet)
- Light or spiky use favors Aider. A few tasks a week lands under a $20 subscription, and a quiet month costs nothing at all.
- Daily use favors the subscription, often by a wide margin, because subscription pricing is deliberately set below metered pricing for interactive work.
- Model choice moves the number more than the tool does. The same afternoon costs two and a half times more on Opus than on Sonnet.
- Caching is the biggest single lever. A cache read is a tenth of the input price, so a harness that reuses context well is cheaper on identical work.
Aider’s git model is the best part
Aider commits after every edit it makes, and commits your pre-existing dirty files first so your work and the agent’s work never land in the same commit. The commit message is generated by the weak model from the diff, following Conventional Commits by default, and the authorship is marked so you can tell later.
# turn the auto-commit behavior off entirely
aider --no-auto-commits
# keep auto-commits, but do not commit files that were already dirty
aider --no-dirty-commits
# do not touch git at all
aider --no-git
# attribute with a trailer instead of renaming the author
aider --attribute-co-authored-by
# write your own commit-message prompt
aider --commit-prompt "..."
# inside the session: undo the last change aider made
/undo
- Author and committer names get "(aider)" appended when aider wrote the change, so
git logstays honest about provenance. /undoreverses the last AI change immediately, which is a faster escape hatch than reading a diff and deciding what to revert.- The commit messages come from
--weak-model, which means they cost very little and can be pointed at a cheap model independently of the coding model.
What the harness buys you
Both tools send a prompt to a model and apply the edits it returns. Everything else is harness, and the harness is where the two products actually differ. Claude Code has spent two years accumulating extension points; Aider deliberately has fewer moving parts.
| Capability | Claude Code | Aider |
|---|---|---|
| Persistent project instructions | CLAUDE.md, read at the start of every session | A conventions file you pass in yourself |
| Deterministic side effects on every edit | Hooks, shell commands before or after actions | Wrap it in your own script |
| External tools and data | MCP servers | Your own scripting |
| Parallel work inside one task | Subagents and background agents | Run several processes yourself |
| Packaged repeatable workflows | Skills, invoked as slash commands | Shell aliases and --message |
| Scheduled and event-triggered runs | Routines, GitHub Actions, GitLab CI/CD | cron and CI, wired by you |
| Programmatic embedding | Agent SDK | Python scripting |
| Number of things that can break | More | Fewer |
Try both in ten minutes
Install Aider
On macOS or Linux, curl -LsSf https://aider.chat/install.sh | sh. With uv, uv tool install --force --python python3.12 --with pip aider-chat@latest. It needs Python 3.8 to 3.13.
Point it at a model you already pay for
Run aider --model MODEL --api-key PROVIDER=KEY in a repository. Any Anthropic, OpenAI, Gemini, DeepSeek, xAI, Bedrock, Vertex, Ollama, LM Studio, or OpenAI-compatible endpoint works.
Install Claude Code
On macOS, Linux, or WSL, curl -fsSL https://claude.ai/install.sh | bash. On Windows PowerShell, irm https://claude.ai/install.ps1 | iex. Then cd your-project and run claude.
Give both the same real ticket
Not a toy prompt. Something with a test, in a repository you know. Toy prompts flatter every agent equally and tell you nothing about which one fits your code.
Compare the diffs, not the transcripts
Aider leaves you a chain of commits; Claude Code leaves you a working tree and a session you can resume. Which of those two review surfaces you prefer is the actual decision.
When each one is the right answer
Aider wins when
- You want a specific model, or want to switch vendors, or want a local model for privacy or air-gapped work.
- Your usage is spiky. Paying nothing in a quiet month is a real advantage that a subscription cannot match.
- You need to audit or modify the harness. It is Apache 2.0 and readable, and you can patch it.
- Your organization cannot use a hosted product but can use an approved API endpoint or a self-hosted model.
- You want the commit-per-edit workflow as a default rather than a discipline you have to remember.
Claude Code wins when
- You use an agent daily. The subscription is cheaper than metered tokens well before you reach full-time use.
- You want the harness features: hooks that run on every edit, MCP servers, subagents, skills, and CLAUDE.md instructions that persist across sessions.
- You run unattended jobs and want
--max-budget-usdand--max-turnsto stop a runaway loop. - You want the work to follow you off the terminal into an IDE, a desktop app, the web, or a phone.
- You would rather not maintain your own setup, including when a provider changes an API next quarter.
Questions people ask
For model choice, offline use, git hygiene, and light or spiky usage, Aider is a strong choice and costs only tokens. For daily use it is more expensive, and Claude Code has the deeper harness with hooks, MCP, subagents, skills, and spend ceilings on unattended runs.
The software is free and Apache 2.0 licensed. You still pay for model tokens at API list rates, which for daily interactive use typically exceeds a $20 Claude Pro subscription.
It is not archived, and it works. As of 7 August 2026 the latest tagged release is v0.86.0, the latest aider-chat package on PyPI is 0.86.2 from February 2026, and the last commit on the default branch was 22 May 2026. Treat it as a mature project that has slowed rather than an abandoned one, and check those dates yourself before adopting it.
Yes. It works with almost any provider, including Anthropic, OpenAI, Gemini, DeepSeek, xAI, Bedrock, Vertex AI, and local runtimes such as Ollama and LM Studio. That breadth is its main structural advantage over Claude Code.
Aider, clearly. It commits every change automatically, commits your dirty files separately first, generates the message from the diff with the weak model, and marks authorship with "(aider)". /undo reverses the last AI change. Turn any of it off with --no-auto-commits, --no-dirty-commits, or --no-git.
Yes, with a local model through Ollama, LM Studio, or any OpenAI-compatible endpoint. Claude Code requires Anthropic models over the network, so a genuinely air-gapped setup rules it out.
It depends entirely on model and volume. At August 2026 Claude API rates, an afternoon that sends 3 million input tokens with 80 percent cache hits and 150,000 output tokens costs about $3.18 on Sonnet 5 and about $7.95 on Opus 5. Twenty afternoons like that is roughly $64 on Sonnet, against $20 for Claude Pro.
Claude Code if the team wants a supported product with policy controls, consistent behavior, and a vendor to escalate to. Aider if the binding constraint is model choice, self-hosting, procurement rules against hosted products, or a requirement to read the harness source.
Sources
Every figure above was read from these pages on August 2026. Vendors reprice without notice; if you find a stale number, tell us.