# Aider

> An open source AI pair programmer for the terminal. It commits each change to git.

**Field:** Artificial Intelligence  
**Category:** AI Tools & Platforms  
**Also known as:** Aider AI, aider.chat, Aider Pair Programming

## Think of it like

It is like a partner who writes code with you. After each change, he saves it with a note.

## Definition

Aider is a free, open source AI pair programmer that runs in your terminal. You chat with it about your code, and it edits the files for you. After each change, it makes a git commit with a clear message. That makes every AI edit easy to see and easy to undo. It works with many AI models and over 100 coding languages.

## Example

Jack asks Aider to rename a function across his project. It edits six files and commits them, and he undoes it with one git command.

## Example code

```bash
python -m pip install aider-install
aider-install
cd /to/your/project
aider --model sonnet --api-key anthropic=<key>
```

Install it, go to your project, and start it with a model and your key.

## Why it matters

AI edits can go wrong. Saving each one as a commit means you can always step back.

## Common mistake

Running it in a folder with no git repo. You lose the easy undo that makes it safe.

## Three principles

- **Chat in the terminal.** Ask in words, get edits.
- **Commits each change.** Every edit has a git record.
- **Bring your model.** Works with many AI providers.

## Related terms

- [Git](https://learn.benibix.com/term/development/git)
- [Commit](https://learn.benibix.com/term/development/commit)
- [Pair Programming](https://learn.benibix.com/term/development/pair-programming)
- [Gemini CLI](https://learn.benibix.com/term/ai/gemini-cli)
- [Cline](https://learn.benibix.com/term/ai/cline)

## Taught in

- [Codex, Gemini CLI and Aider](https://learn.benibix.com/learn/ai-ai-tools/codex-gemini-cli-and-aider): AI Apps and Tools, 7/10

![Three columns. Left: a whole code editor built around AI, with Cursor, Devin Desktop and Google Antigravity. Middle: a normal editor with an AI add-on in its side panel, with GitHub Copilot and Cline. Right: a terminal window where an agent edits files, with OpenAI Codex, Gemini CLI and Aider.](https://learn.benibix.com/diagrams/ai6-coding-tools.svg)

---

Source: https://learn.benibix.com/term/ai/aider
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
