Aider vs Claude Code: Models, Git and Instructions
Aider commits each of its edits to git and connects to many LLM providers; Claude Code is included in paid Claude plans and reads CLAUDE.md. We checked both official sites on 2026-11-08.
- Aider is an open-source (Apache 2.0) terminal pair-programming tool that connects to many LLM providers, so you pay the provider you choose. Claude Code is Anthropic's coding CLI, included in every paid Claude plan or billed through a Console account or a cloud provider.
- Aider commits every edit it makes and has /undo; Claude Code commits when you ask and undoes file edits with checkpoints that are separate from git.
- Aider loads conventions from a file you add with --read, /read or read: in .aider.conf.yml. Claude Code reads CLAUDE.md files, AGENTS.md and .claude/rules/ on its own.
Aider is an open-source AI pair-programming tool for the terminal that connects to many LLM providers. Claude Code is Anthropic’s coding CLI, included in every paid Claude plan. The documented differences that matter most are how you pay for models, how each uses git (Aider commits every edit; Claude Code commits when asked), and how instructions reach the model (Aider loads a conventions file you name; Claude Code reads CLAUDE.md on its own).
This comparison is for readers choosing a terminal coding agent who have narrowed it to these two. Every fact below comes from the official Aider and Claude pages on 2026-11-08. We did not install or run either tool for this article. The commands are quoted from the docs, and we show no command output.
Side by side
| Topic | Aider | Claude Code |
|---|---|---|
| What it is | “AI pair programming in your terminal”; open source under Apache 2.0, from Aider AI LLC | Anthropic’s coding CLI; also available as VS Code and JetBrains integrations |
| How you pay | No subscription price listed on aider.chat. You pay the LLM provider you connect | Included in every paid Claude plan (Pro, Max, Ultra, Team, Enterprise), or a Console account with pre-paid API credits, or a supported cloud provider |
| Models | Many providers: OpenAI, Anthropic, Gemini, GROQ, LM Studio, xAI, Azure, Cohere, DeepSeek, Ollama, OpenAI-compatible APIs, OpenRouter, GitHub Copilot, Vertex AI, Amazon Bedrock, others | Claude models through Anthropic, Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform (formerly Vertex AI) or Microsoft Foundry |
| Instruction files | A conventions file (e.g. CONVENTIONS.md) via --read, /read, or read: in .aider.conf.yml | CLAUDE.md files, AGENTS.md when no CLAUDE.md exists, and .claude/rules/ |
| Choosing files to edit | You add files to the chat on the command line or with /add; a repo map of the whole repository goes with each request | Claude searches for relevant files and reads them itself |
| Git | Commits each edit; commits dirty files first; /undo; skips pre-commit hooks by default | Commits when you ask; checkpoints undo file edits separately from git |
| Modes | code, ask, architect, help | Plan mode via /plan or Shift+Tab |
| Config | .aider.conf.yml (home, git root, current directory), AIDER_* env vars, .env | settings.json layers: user, shared project, project local, managed |
| Editors | --watch-files picks up AI! / AI? comments from any editor; experimental --browser UI | VS Code extension, JetBrains plugin |
| Analytics | Opt-in, anonymous; never collects code, chats or keys; --analytics-disable | Not covered here (we did not check Anthropic’s data-usage pages today) |
Source: https://aider.chat/docs/ (checked 2026-11-08) Source: https://aider.chat/docs/faq.html (checked 2026-11-08) Source: https://aider.chat/docs/llms.html (checked 2026-11-08) Source: https://claude.com/pricing (checked 2026-11-08) Source: https://code.claude.com/docs/en/quickstart (checked 2026-11-08) Source: https://code.claude.com/docs/en/third-party-integrations (checked 2026-11-08)
Models and how you pay
Aider’s FAQ describes Aider AI LLC as “the company behind the aider AI coding tool” and says Aider is open source on GitHub under the Apache 2.0 license. We found no subscription or plan price anywhere on aider.chat. What you pay depends on the provider you connect.
The Connecting to LLMs page says Aider “can connect to most LLMs” and lists setup pages for OpenAI, Anthropic, Gemini, GROQ, LM Studio, xAI, Azure, Cohere, DeepSeek, Ollama, OpenAI-compatible APIs, OpenRouter, GitHub Copilot, Vertex AI and Amazon Bedrock. It also mentions local models through Ollama or any OpenAI-compatible API, and free tiers on some providers such as OpenRouter. The page warns that Aider “may not work well with less capable models.” The install page passes a key per provider, for example aider --model sonnet --api-key anthropic=<key>.
Source: https://aider.chat/docs/faq.html (checked 2026-11-08) Source: https://aider.chat/docs/llms.html (checked 2026-11-08) Source: https://aider.chat/docs/install.html (checked 2026-11-08)
Claude Code is included in all paid Claude plans and “shares the same usage limits as the rest of your plan,” according to the pricing page. On 2026-11-08 that page listed:
- Pro: $20 billed monthly, or $17 a month with the annual discount ($200 billed up front). Claude Code is in the plan.
- Max: $100 a month, with 5x Pro usage every five hours and every week.
- Ultra: $200 a month, with no five-hour limit for verified accounts and 10x Pro usage every week.
- Free: $0, and the plan comparison marks Claude Code as not included.
The quickstart also lists a Claude Console account (API access with pre-paid credits) and supported cloud providers. The third-party integrations page names Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform (formerly Vertex AI) and Microsoft Foundry. We did not check cloud-provider prices for this article.
Source: https://claude.com/pricing (checked 2026-11-08) Source: https://code.claude.com/docs/en/quickstart (checked 2026-11-08) Source: https://code.claude.com/docs/en/third-party-integrations (checked 2026-11-08)
Instruction files: CONVENTIONS.md vs CLAUDE.md
Aider has no fixed instruction filename. Its conventions page suggests writing your rules in a small Markdown file such as CONVENTIONS.md and loading it with /read CONVENTIONS.md or aider --read CONVENTIONS.md. Loaded that way, the file is marked read-only and is cached if prompt caching is on. To load it every time, add it to .aider.conf.yml:
read: CONVENTIONS.md
# or several files
read: [CONVENTIONS.md, anotherfile.txt]
Source: https://aider.chat/docs/usage/conventions.html (checked 2026-11-08)
Claude Code finds its instruction files itself. Its memory page lists a user file at ~/.claude/CLAUDE.md, a project file at ./CLAUDE.md or ./.claude/CLAUDE.md, a private ./CLAUDE.local.md, and an organization-managed file. All the files found in the working directory and above it load at launch. Topic or path-scoped rules go in .claude/rules/. When there is no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in the working directory or above it, Claude Code reads AGENTS.md instead.
Source: https://code.claude.com/docs/en/claude-md (checked 2026-11-08)
The practical difference: with Aider you decide which files go into the prompt, every session or through config. With Claude Code the files are found by location, so a teammate’s committed CLAUDE.md applies to you as soon as you start in that repository.
How each picks the files it edits
Aider’s usage page says that to edit files you “add them to the chat,” either on the command line or with /add, and that you should add only the files the task needs. Adding too many “can get overwhelmed and confused,” and it costs more tokens. Aider also sends a repo map with every request. The map lists the files in the repository, with key classes and functions and their signatures, so the model can see code you did not add.
Source: https://aider.chat/docs/usage.html (checked 2026-11-08) Source: https://aider.chat/docs/repomap.html (checked 2026-11-08)
Claude Code’s “how it works” page describes a different flow. Asked to fix a bug, Claude searches for relevant files, reads several to understand the context, makes coordinated edits, runs tests, and commits the changes if you ask. You don’t add files first. We did not test how either approach behaves on a large repository.
Source: https://code.claude.com/docs/en/how-claude-code-works (checked 2026-11-08)
Git workflow
This is where the two differ most. Aider’s git page says:
- Aider asks to create a git repo if you launch it in a directory without one.
- “Whenever aider edits a file, it commits those changes with a descriptive commit message.”
- Before editing a file with uncommitted changes, Aider commits those changes first, so your edits stay separate from its own.
/undoundoes and discards the last change,/diffshows changes since your last message,/commitcommits dirty changes, and/gitruns raw git commands.- Commit messages come from the weak model, given the diffs and chat history, and follow Conventional Commits by default.
- Aider appends “(aider)” to the git author and committer names on commits it authored, and to the committer name on commits of your dirty changes.
--attribute-co-authored-byadds a Co-authored-by trailer instead.
The switches to turn this off are --no-auto-commits, --no-dirty-commits and --no-git. The docs say that by default Aider skips pre-commit hooks by passing --no-verify. --git-commit-verify runs them. If your repository relies on pre-commit hooks, that default is worth knowing before the first session.
Source: https://aider.chat/docs/git.html (checked 2026-11-08)
Claude Code’s docs describe commits as something it does when you ask. The quickstart’s examples include asking it to “commit my changes with a descriptive message.” Undo is a separate mechanism. Before editing a file, Claude Code snapshots it, and you press Esc twice to rewind, or ask Claude to undo. The docs say these checkpoints are separate from git, cover only file changes, and cannot undo actions on remote systems such as databases or deployments. Claude Code adds attribution lines to commits and pull requests by default; the attribution setting changes or removes them.
Source: https://code.claude.com/docs/en/how-claude-code-works (checked 2026-11-08) Source: https://code.claude.com/docs/en/quickstart (checked 2026-11-08)
Modes: code, ask and architect vs plan mode
Aider documents four chat modes:
code: makes changes to your code (the default)ask: discusses your code and answers questions, but never changes itarchitect: an architect model proposes changes and an editor model turns them into file editshelp: answers questions about Aider itself
/ask, /code, /architect and /help apply to one message. /chat-mode <mode> switches until you change it again, and --chat-mode <mode> (or --architect) sets the mode at launch. The docs recommend going back and forth between /ask and /code: agree on the approach in ask mode, then say something as short as “go ahead” in code mode.
Source: https://aider.chat/docs/usage/modes.html (checked 2026-11-08)
Claude Code’s equivalent is plan mode. /plan, optionally followed by a description, enters it from the prompt, and Shift+Tab cycles permission modes until the status bar shows ⏸ plan mode on. We are not covering plan mode’s internals here; our plan mode guide has more.
Source: https://code.claude.com/docs/en/commands (checked 2026-11-08) Source: https://code.claude.com/docs/en/common-workflows (checked 2026-11-08)
Config files
Aider reads most options from .aider.conf.yml in your home directory, the root of your git repo, and the current directory, loaded in that order, so the last one loaded wins. --config <filename> loads only that one file. The same options can be set as command-line switches, as AIDER_xxx environment variables, or in a .env file. The docs show --dark-mode, dark-mode: true and AIDER_DARK_MODE=true as equivalent.
Source: https://aider.chat/docs/config.html (checked 2026-11-08) Source: https://aider.chat/docs/config/aider_conf.html (checked 2026-11-08)
Claude Code uses JSON settings files: ~/.claude/settings.json (user), .claude/settings.json (shared project, meant to be committed), .claude/settings.local.json (yours, for one project) and managed settings from an organization. Precedence, highest first: managed, command line, project local, shared project, user.
Source: https://code.claude.com/docs/en/settings (checked 2026-11-08)
Editors and analytics
Aider stays in the terminal, but two features reach into other tools. With --watch-files, it watches the repository for one-line comments that start or end with AI. A comment ending in AI! asks it to make changes and one ending in AI? asks it to answer. You can write these from any editor. aider --browser opens what the docs call an “experimental browser UI.” Claude Code has an official VS Code extension and a JetBrains plugin.
Source: https://aider.chat/docs/usage/watch.html (checked 2026-11-08) Source: https://aider.chat/docs/usage/browser.html (checked 2026-11-08) Source: https://code.claude.com/docs/en/vs-code (checked 2026-11-08) Source: https://code.claude.com/docs/en/jetbrains (checked 2026-11-08)
Aider’s analytics page says analytics are opt-in and anonymous and never collect “your code, chat messages, keys or personal info.” By default Aider may ask a random subset of users to opt in. aider --analytics-disable opts out permanently. We did not check Anthropic’s data-usage pages for this article, so we make no claim about Claude Code here.
Source: https://aider.chat/docs/more/analytics.html (checked 2026-11-08)
When Aider fits, when Claude Code fits
These are facts to weigh, not a ranking.
- You want to choose or switch model providers, including local models through Ollama: Aider lists many providers. Claude Code runs Claude models, through Anthropic or one of the listed cloud providers.
- You already pay for Claude Pro or higher: Claude Code is in the plan and draws from the same usage pool. With Aider you pay a provider separately, by API key.
- You want every AI edit as its own git commit, with
/undoand “(aider)” attribution: that is Aider’s default. If you would rather commit by hand, Claude Code commits only when asked, or you can run Aider with--no-auto-commits. - Your repository depends on pre-commit hooks: Aider skips them by default unless you pass
--git-commit-verify. - You want instructions picked up automatically from the repository: Claude Code reads
CLAUDE.mdandAGENTS.mdby location. Aider loads the conventions files you name. - You want to control exactly which files are in context: Aider’s
/addmodel is explicit. Claude Code finds files itself.
Related reading
- AI Coding Tools Compared: Plans and Prices (2026): plans and prices across five tools, re-checked monthly.
- Choosing a Coding Agent: the questions to answer before picking a tool.
- Claude Code vs Cursor vs Codex: how those three differ day to day.
- Copilot Agent vs Claude Code: GitHub Copilot’s agent against Claude Code.
- Getting Started with Claude Code: install, sign-in and a first session.
- CLAUDE.md as a Runbook: what to put in CLAUDE.md and where.
- Gemini CLI Getting Started: another terminal agent with a free tier.
Summary
- Aider is open source (Apache 2.0) from Aider AI LLC, and aider.chat lists no subscription price; you pay the LLM provider you connect. Claude Code is in every paid Claude plan (Pro from $20 billed monthly on 2026-11-08), or on Console credits or a cloud provider.
- Aider connects to many providers, including Anthropic, OpenAI, Gemini, Bedrock, Vertex AI, OpenRouter and Ollama. Claude Code runs Claude models.
- Aider commits every edit, commits dirty files first, offers
/undo, and skips pre-commit hooks unless you pass--git-commit-verify. Claude Code commits when asked and rewinds file edits with checkpoints that are separate from git. - Aider loads a conventions file you name (
--read,/read,read:). Claude Code readsCLAUDE.md,AGENTS.mdand.claude/rules/by location. - Aider has
code,ask,architectandhelpmodes. Claude Code has plan mode via/planorShift+Tab. - Facts checked against official pages on 2026-11-08. We did not run either tool for this article.
FAQ
- Does Aider have a subscription price?
- We found no subscription price on aider.chat on 2026-11-08. Aider's FAQ says it is open source under the Apache 2.0 license, from Aider AI LLC. You connect it to an LLM provider, such as Anthropic, OpenAI or Gemini, and pay that provider.
- Does Aider commit automatically?
- Yes. Aider's git page says it commits each file edit with a descriptive message, and commits uncommitted changes in a file before editing it. --no-auto-commits turns the first behavior off and --no-dirty-commits the second.
- Does Claude Code commit my changes?
- Claude Code's docs say it commits the changes if you ask. File edits are snapshotted as checkpoints, which are separate from git; press Esc twice to rewind.
- What is the Aider equivalent of CLAUDE.md?
- Aider's docs suggest a conventions file such as CONVENTIONS.md, loaded with /read CONVENTIONS.md, aider --read CONVENTIONS.md, or read: CONVENTIONS.md in .aider.conf.yml so it always loads.
- Can Aider use Claude models?
- Yes. Anthropic is one of the providers listed on Aider's Connecting to LLMs page, along with OpenAI, Gemini, Amazon Bedrock, Vertex AI, OpenRouter, Ollama and others.