aider
AI pair programming in the terminal
TLDR
Start aider with files
SYNOPSIS
aider [options] [files...]
DESCRIPTION
aider is an AI pair programming assistant that works in your terminal. It lets you have conversations with AI models (GPT-4, Claude, Ollama models, etc.) about your code, and the AI can directly edit your source files.
The tool integrates with git, can automatically commit changes, and understands your entire codebase context. You can add files to the conversation, ask questions, request changes, and watch the AI implement them.
PARAMETERS
--model name
AI model to use (gpt-4, gpt-3.5-turbo, claude-3-opus, etc.)--architect
Use architect mode: an architect model proposes changes, then a separate editor model implements the file edits--edit-format format
Edit format: diff, whole, diff-fenced--auto-commits
Automatically commit AI changes (enabled by default)--no-auto-commits
Disable automatic commits--dark-mode
Use colors for dark terminal background--light-mode
Use colors for light terminal background--map-tokens n
Max tokens for repository map--no-git
Disable git integration--yes
Automatically confirm all prompts--message text
Send a message and exit
CONFIGURATION
.aider.conf.yml
Per-project configuration file for default options, model selection, and behavior settings..aiderignore
Files and directories to exclude from the repository map, using .gitignore syntax.
CAVEATS
Requires API keys for cloud models (OPENAIAPIKEY, ANTHROPICAPIKEY, etc.). Token usage can be significant for large codebases. Review AI-generated changes before accepting them.
HISTORY
aider was created by Paul Gauthier and released in 2023. It was designed to leverage large language models for practical code editing, evolving rapidly with new AI model releases.
