Search for a command to run...
Install Aider with the one-line installer, uv or pipx, connect it to a model provider and let it commit your changes to git as it works.
Aider is AI pair programming in your terminal. It edits files, runs your tests and commits each change to git, so you always have a clean undo.
The one-line installer and uv / pipx give Aider its own isolated Python
environment. Installing it with a plain pip install often puts the wrong
dependencies on your system.
git — Aider works in a repository and commits as it goes# macOS and Linux
curl -LsSf https://aider.chat/install.sh | sh
# Windows PowerShell
powershell -ExecutionPolicy ByPass -c "irm https://aider.chat/install.ps1 | iex"The script installs Aider in its own separate Python environment, and installs Python 3.12 for it if the system does not have a suitable version.
python -m pip install uv
uv tool install --force --python python3.12 --with pip aider-chat@latestpython -m pip install pipx
pipx install aider-chatUse a virtual environment, otherwise you will fight with dependencies:
python -m venv ~/.venvs/aider
source ~/.venvs/aider/bin/activate
python -m pip install -U --upgrade-strategy only-if-needed aider-chat# Anthropic
export ANTHROPIC_API_KEY=sk-ant-...
aider --model sonnet
# OpenAI
export OPENAI_API_KEY=sk-...
aider --model gpt-4o
# Google Gemini
export GEMINI_API_KEY=...
aider --model gemini/gemini-2.5-pro
# DeepSeek
export DEEPSEEK_API_KEY=...
aider --model deepseek
# A local model through Ollama
aider --model ollama/qwen2.5-coder:32b
# GitHub Copilot
aider --model copilot/sonnet# List everything Aider can talk to
aider --modelsPut the keys in a .env file next to your project — Aider reads it automatically — and
add it to .gitignore:
echo ".env" >> .gitignorecd /to/your/project
aider --model sonnet --api-key anthropic=$ANTHROPIC_API_KEY# In the chat
Add a --verbose flag to the CLI that prints the current config on startup.Aider will:
# Add files explicitly to the context
aider src/parser.py
# Let Aider find the relevant files itself
aider --read docs/architecture.md
# Skip the git repo (Aider warns when you are not in one)
aider --no-git
# Use a specific file to describe the style you want
aider --edit-format diff
# Run your test command after every change
aider --test-cmd "pytest -q"| Command | What it does |
|---|---|
/add | Add files to the chat context |
/drop | Remove files from the context |
/undo | Undo the last change (and its commit) |
/diff | Show the pending changes |
/commit | Commit manually |
/run | Run a shell command |
/ask | Ask a question without editing anything |
/architect | Switch to the architect model for planning |
/code | Switch back to the coding model |
/help | List every command |
For bigger changes, let a stronger model plan and a cheaper model implement:
/architect Design a caching layer for the API and write out the plan.
/code Now implement that plan.--test-cmd so Aider can verify its own changes..env file for keys and add it to .gitignore./undo freely; it is cheap.Install Google's Gemini CLI with npm, npx or Homebrew, authenticate with OAuth, an API key or Vertex AI, script it in headless mode and migrate to Antigravity CLI.
Install Block's open-source Goose agent as a desktop app or CLI, connect it to Anthropic, OpenAI, Google or a local model, and extend it with 70+ MCP extensions.