Aider

New

Open source AI pair programmer for the terminal that edits files in your Git repo, commits each change, maps the codebase for context, and works with cloud or local LLMs through your own API keys.

aider.chat

Aider

Explore features, practical uses and pricing below.

Aider is an open source command-line tool for pair programming with a large language model. You start it inside a Git repository, add the files you want changed and describe the change in plain language. Aider sends the request to the model you've configured, applies the edits to your files and commits them with a descriptive message. It's made by Aider AI LLC and released under the Apache 2.0 license.

Every edit becomes a Git commit

Aider's Git integration is what makes it comfortable to use. Because each edit lands as a commit, /undo discards the last change and ordinary Git tools show exactly what the model did. If a file already has uncommitted work, Aider commits that first so your edits and its edits stay separate. /diff shows changes since your last message, and /commit tidies up any dirty files. Start it in a folder without a repo and it offers to create one.

Chat modes and the repository map

There are four chat modes. Code mode, the default, makes changes. Ask mode discusses the code without touching it. Architect mode splits the work between two models: one proposes the change and an editor model turns the proposal into file edits. Help mode answers questions about Aider itself. You can switch for a single message with /ask or /architect, or change the active mode with /chat-mode.

For context, Aider builds a repository map, a compact list of files with their key classes, functions and signatures, trimmed to fit the model's context window. The map is why the FAQ advises against adding every file to the chat. Add only the files that need editing and let the map supply the rest; extra files raise token costs and can confuse the model.

Lint, test and instruct from your editor

  • Linting. Built-in linters check edited files in popular languages, or you can set your own with --lint-cmd. Aider then tries to fix what the linter reports.
  • Tests. /test runs a command and hands failures back to the model, and --test-cmd with --auto-test runs the suite after every edit.
  • Watch mode. With --watch-files, Aider picks up one-line comments ending in AI plus an exclamation mark (make a change) or a question mark (answer a question), so you can write instructions in any editor.
  • Extra input. You can add images and web pages to the chat, or dictate requests by voice.

Models, cost and release status

Aider itself is free. You supply API keys, and the LLM docs cover OpenAI, Anthropic, Gemini, DeepSeek, OpenRouter, Azure, Amazon Bedrock, Vertex AI, xAI and GitHub Copilot, plus local models through Ollama or LM Studio. Spend depends on the model and context size. One thing to check before adopting it: the release history lists v0.86.1 as the latest numbered release, while later work, including support for newer Claude and Gemini models, sits under the main branch. Parts of the homepage also still recommend older models. If you depend on a recent model, confirm your installed version knows about it.

Who should use Aider

Aider fits developers who like the terminal, want every AI change recorded as a Git commit and prefer to choose their own model. It works well for focused tasks where you know which files matter. It's a weaker fit if you want an agent that decides for itself which files to open and works through long multi-step tasks; Claude Code leans further in that direction.

A typical session

Install with python -m pip install aider-install and run aider-install. In your project, start it with a model, for example aider --model sonnet --api-key anthropic=your-key. Add src/billing/invoice.py and its test file, then type: "Round line-item totals to two decimals before summing, and add a test for a 0.005 edge case." Run /test pytest tests/test_invoice.py, let Aider fix any failures, check the commits with git log and use /undo if the approach isn't right.

Quick answers about Aider

Can I script it?

Yes. The FAQ says it can be scripted from the command line or from Python.

Which languages does it support?

The homepage says more than 100, including Python, JavaScript, Rust, Ruby, Go and C++.

Similar tools

AI coding app with an IDE window and an Agent window, offering IDE and SOLO modes, custom agents with MCP, CUE code completion, and desktop, web and mobile clients that keep tasks in sync.
AWS-built agentic development environment that turns prompts into requirements, design and task specs, then runs agents in an IDE, CLI, web app or VS Code extension with hooks, steering files and MCP.
JetBrains' coding agent that plans, edits, runs tests and returns a diff, working in Air inside JetBrains IDEs, in a terminal CLI and in GitHub or GitLab CI, with a free Junie Lite model and bring-your-own-key support.