Aider
Open-source terminal AI pair programmer that edits files in your Git repo and auto-commits each change, working with Claude, GPT, and other models you bring.
Aider is an open-source (Apache-2.0) command-line tool for AI pair programming. Run it inside a Git repository, describe a change in plain language, and it edits files on disk and commits each step with a descriptive message. Model-agnostic: bring your own API key for Claude, GPT, and others; a repo map gives the model context in large codebases.
Aider is an open-source command-line tool for AI pair programming. You run it inside an existing Git repository, describe the change you want in plain language, and Aider edits files directly on disk and commits each change with a descriptive message. It is aimed at developers who prefer working in the terminal and want an AI collaborator that operates on real source files rather than a chat window you copy and paste from.
Aider connects to large language models from providers such as Anthropic, OpenAI, and others, and works across many languages including Python, JavaScript, TypeScript, Go, Rust, and more. It builds a map of your repository so the model has relevant context even in large codebases.
Highlights
- Edits files in place and creates a Git commit per change, so every step is reviewable and reversible.
- Repository mapping gives the model awareness of code beyond the files you explicitly add.
- Model-agnostic: works with Claude, GPT, and many other models via API keys.
- Supports voice input, image and URL context, and linting/test commands after edits.
How it fits a workflow
pip install aider-install && aider-install
cd your-project
aider --model sonnet src/app.pyAdd files to the chat, request a change, then review the diff and the auto-commit. Because edits land as commits, you can git revert anything you do not like.
Good to know
Aider is free and open source (Apache-2.0), but you supply your own model API key, so usage costs depend on the provider and model you choose.
Frequently asked questions
- What is Aider?
- Aider is an open-source command-line tool for AI pair programming. You run it inside an existing Git repository, describe the change you want in plain language, and it edits files directly on disk and commits each change with a descriptive message. It connects to models from Anthropic, OpenAI, and other providers.
- Is Aider free?
- Yes. Aider is free and open source under the Apache-2.0 license. You supply your own model API key, so usage costs depend on the provider and model you choose.
- How do I install Aider?
- Install it with pip install aider-install && aider-install, then cd into your project and start it with a model, for example aider --model sonnet src/app.py. Because every edit lands as a Git commit, you can git revert anything you do not like.
Related
- Aider vs Claude Code: Open-Source vs Anthropic's Agent (2026)Aider vs Claude Code — model-agnostic open-source pair-programmer vs Anthropic's tuned terminal harness. Which terminal coding agent fits your stack.
- AI Coding Agents in 2026: The Open-Source & CLI EditionCursor and Windsurf vs the open-source agents — OpenCode, Cline, Aider, Codex CLI, and more. Who should bring their own model, and when to stay in the terminal.
- Codex CLIOpenAI's open-source terminal coding agent with sandboxed execution and two-layer approval controls.
- Gemini CLIGoogle's open-source terminal AI agent powered by Gemini models, with a 1M-token context window and built-in tools.
- GooseBlock's open-source, on-machine AI agent that is MCP-native and model-agnostic, with a CLI and desktop app.
- OpencodeThe open-source AI coding agent — a terminal TUI from Anomaly with 75+ model providers, LSP-powered context, parallel agents, and shareable sessions.