Skip to content
BENIBIX Learn

Aider

AI🧰 AI Tools & PlatformsAI Coding Tools

Also known as Aider AI, aider.chat, Aider Pair Programming

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

Think of it like

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

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.

Why it matters

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

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 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.
On the right, Aider runs in a terminal. Each edit it makes becomes a commit.

Common mistake

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

Key takeaways

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

Learn it properly