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.
Filed under
cli · open-source
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.
- ClineOpen-source autonomous coding agent for VS Code that plans, edits files, and runs commands with diff approval, using any model you bring or a local runtime.
- Claude CodeAnthropic’s official agentic coding tool that runs in the terminal, IDE, and web.
- How to Test AI-Generated CodeAI writes the code; tests decide whether to trust it. The verification stack for agent-written changes — contracts, generated tests, and the review that's left.
- Vibe CodingVibe coding is building software by describing intent in natural language and letting an AI agent write the code, judging results by behavior.
- 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.
- OpencodeThe open-source AI coding agent — a terminal TUI from Anomaly with 75+ model providers, LSP-powered context, parallel agents, and shareable sessions.
- The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)The best Claude Code alternatives in 2026, sorted by why you're leaving: cost, open source, local models, an IDE, cloud agents, or OpenAI and Google.