Skip to Content

Aider

Install

pip install aider-chat # or pipx install aider-chat

Authenticate

Set the API key for your model:

# Anthropic export ANTHROPIC_API_KEY="sk-ant-..." # OpenAI export OPENAI_API_KEY="sk-..."

See aider.chat/docs/llms.html  for other providers.

Launch

Aider runs in a standard terminal — open one with ++1, then type aider.

Terminal
$ aider --model claude-3.5-sonnet
Aider v0.50.0
Models: claude-3.5-sonnet with diff edit format
 
$ Add dark mode toggle to the settings page
Applied edit to src/settings.tsx
$
FlagDescription--model <model>Choose the AI model--auto-commitsCommit after every edit (default on)--no-auto-commitsDisable automatic commits--yesAuto-accept all proposed changes--lintRun linter after each editFull reference: aider.chat/docs 
Last updated on