1. ai
  2. /tools
  3. /aider

Aider

Aider is a terminal-based pair programmer that edits files in your git repo, commits with meaningful messages, and maps the whole codebase for context — no IDE required.

Last reviewed: June 2026

Model defaults, /commands, and pricing change. Verify at aider.chat and aider --help on your installed version.

What it is good at

StrengthDetail
Git-nativeStages changes, writes commits, respects .aiderignore
Repo mapBuilds a structural map of the codebase for better file selection
Terminal / SSHWorks over SSH on remote servers and in headless CI-adjacent flows
Multi-modelAnthropic, OpenAI, DeepSeek, local models via API
LightweightNo IDE extension; pip install and run
Explicit controlYou add files to context; less surprise multi-file refactors

Setup

pip install aider-install
aider-install

# Or: pip install aider-chat

export ANTHROPIC_API_KEY=sk-ant-...
# Or OPENAI_API_KEY, etc.

cd your-repo
aider
FilePurpose
.aiderignoreExclude paths from repo map (like .gitignore)
.aider.conf.ymlDefault model, editor, commit settings
CONVENTIONS.mdOptional — Aider reads for project conventions

Docs: Aider installation.

Modes / core workflow

Command / actionPurpose
/add file.tsAdd files to chat context
/drop file.tsRemove from context
/commitCommit staged AI changes with generated message
/undoRevert last AI edit
/diffShow pending changes
/helpList slash commands for your version
/modelSwitch model mid-session

Typical loop:

  1. Start aider in repo root
  2. /add src/utils/formatDate.ts src/utils/formatDate.test.ts
  3. Describe the fix with acceptance criteria
  4. Review diff in terminal; /commit or /undo
  5. Run tests outside Aider; paste failures for another round

Pair with Project Rules via CONVENTIONS.md or AGENTS.md in repo root.

When to use it vs alternatives

Choose AiderChoose something else
SSH / remote server editingCursor or Cline — visual diffs in IDE
Git commit workflow built inClaude Code — richer agent + hooks + skills
Minimal footprint; no IDE switchCopilot — inline completions while typing
You want explicit file context controlDevin Desktop — multi-agent kanban
Scriptable terminal sessionsCodex CLI — OpenAI-native agent stack

See Choosing an AI Coding Tool.

Model and cost tips

TipWhy
Use repo map (/map-refresh when structure changes)Better file selection on large repos
Keep /add list smallToken cost scales with context
Prefer capable models for refactorsCheap models miss cross-file dependencies
Commit often with /commitEasier rollback than one giant session

See Tokens and Context and Model Picker.

Limitations

  • No native MCP in all versions — check current Aider docs for tool/MCP support
  • Terminal UI — no visual side-by-side diff like IDE agents
  • Less suited to greenfield UI work where visual feedback matters
  • You manage API keys and rate limits directly