Reference · Reference
Aider Commands List
Search and copy Aider commands by category: in-chat slash commands, CLI flags, chat modes, and config files. One-click copy.
Last updated:
How to Use
Expand how to useCollapse how to use
- 1
Search commands
Type a keyword to filter command names, flags, options, and examples all at once.
- 2
Filter by category
Switch between Slash Commands, CLI Flags, Chat Modes, and Config to focus on what you need.
- 3
Copy and use
Click the copy button on any card to grab the command and paste it directly into your terminal or Aider session.
Latest Version
This cheat sheet covers Aider v0.86.x (latest v0.86.2, February 2026). Includes slash commands, CLI flags, chat modes, and config files.
v0.86.1 (August 2025)
- Support for
reasoning_effortsetting with GPT-5 series models - Temperature disabled by default for GPT-5 family (deterministic output)
v0.86.0 (August 2025)
- Expanded GPT-5 model support to OpenAI, Azure, and OpenRouter
- Support for dated / chat / mini / nano variants
Slash Commands
/add
Notes
- /add <file>
- Wildcards supported (e.g. /add src/*.ts)
Examples
/add src/main.pyAdd src/main.py to the chat as an editable file./drop
Notes
- /drop <file>
- No argument removes all files
Examples
/drop src/main.pyRemove src/main.py from the chat context./clear
Examples
/clearErase conversation history and reset the chat./reset
Examples
/resetFully reset the session (files + history)./ls
Examples
/lsCheck which files are added to the chat and known to Aider./diff
Examples
/diffView the latest changes Aider made in diff format./undo
Examples
/undoRoll back the last Aider commit with git reset./commit
Notes
- /commit [message]
Examples
/commit fix: typo in READMECommit manually edited changes with a custom message./code
Notes
- /code <instruction>
Examples
/code Fix the bugRun the request in code mode regardless of current mode./architect
Notes
- /architect <instruction>
Examples
/architect Refactor this moduleRun the request in architect mode./ask
Notes
- /ask <question>
Examples
/ask What does this class do?Ask a question without making code changes./context
Notes
- /context <question>
Examples
/context What code is related to this bug?Explore the codebase in context mode./help
Notes
- /help <question>
Examples
/helpShow available commands and help information./run
Notes
- /run <command>
- Alias: !<command>
Examples
/run python test.pyRun a shell command and add its output to the chat./test
Notes
- /test <command>
Examples
/test pytestRun tests and let Aider auto-fix failures./lint
Examples
/lintLint the files currently in the chat and fix issues./model
Notes
- /model <model-name>
Examples
/model claude-opus-4-5Switch the main chat model./models
Notes
- /models <search-term>
Examples
/models claudeList available models matching 'claude'./editor-model
Notes
- /editor-model <model-name>
Examples
/editor-model gpt-4oChange the editor model for architect mode./weak-model
Notes
- /weak-model <model-name>
Examples
/weak-model gpt-4o-miniChange the lightweight model for commit message generation./web
Notes
- /web <URL>
Examples
/web https://example.com/docsFetch page content as Markdown and add it to context./paste
Examples
/pastePaste clipboard content into the chat./copy
Examples
/copyCopy the latest Aider response to the clipboard./copy-context
Examples
/copy-contextCopy chat content as Markdown to paste into a browser-based AI./read-only
Notes
- /read-only <file>
Examples
/read-only src/config.pyAdd the file as a reference-only (non-editable) context./map
Examples
/mapShow the repository structure Aider has built./map-refresh
Examples
/map-refreshRefresh the repo map after adding or removing files./tokens
Examples
/tokensCheck current token usage against the context window./chat-mode
Notes
- Options: code, ask, architect, context, help
Examples
/chat-mode askSwitch to ask mode (no code changes)./multiline-mode
Examples
/multiline-modeSwitch to a mode where Enter inserts a newline and Meta+Enter sends./voice
Examples
/voiceRecord audio with the microphone and convert it to a prompt./git
Notes
- /git <git-command>
Examples
/git log --oneline -5Check the last 5 commits without adding output to chat./settings
Examples
/settingsView current configuration (model, format, etc.)./editor
Notes
- Alias: /edit
Examples
/editorOpen $EDITOR to write a multi-line prompt./ok
Examples
/okApprove and proceed with Aider's proposed changes./save
Notes
- /save <file>
Examples
/save .aider.sessionSave the current file set for later reuse./load
Notes
- /load <file>
Examples
/load .aider.sessionLoad and run saved session commands./think-tokens
Notes
- /think-tokens <value>
- Examples: 8k, 0.5M, 0 (disable)
Examples
/think-tokens 8kLimit thinking tokens to 8,000./reasoning-effort
Notes
- Options: low, medium, high, or a value from 0 to 1
Examples
/reasoning-effort highSet the reasoning model's thinking depth to maximum./report
Examples
/reportOpen the Aider bug report GitHub Issue form./quit
Notes
- Alias: /exit
Examples
/quitEnd the Aider session.CLI Flags
--model
Notes
- --model MODEL
Examples
aider --model claude-opus-4-5Launch Aider with the specified model.--message
Notes
- -m / --message "..."
- Alias: -m
Examples
aider -m "Update the README" README.mdRun a one-shot message and exit.--message-file
Notes
- --message-file FILE
Examples
aider --message-file task.txtUse the content of task.txt as the prompt and exit.--file
Notes
- --file FILE (repeatable)
Examples
aider --file src/main.py --file src/utils.pyLaunch with multiple files already added to the chat.--read
Notes
- --read FILE (repeatable)
Examples
aider --read docs/spec.mdLaunch with a spec file added as read-only context.--yes-always
Notes
- --yes-always
Examples
aider --yes-alwaysRun in non-interactive mode with all prompts auto-confirmed.--auto-commits / --no-auto-commits
Notes
- --auto-commits (enable)
- --no-auto-commits (disable)
Examples
aider --no-auto-commitsDisable automatic commits so you can review before committing.--auto-lint / --no-auto-lint
Notes
- --auto-lint (enable)
- --no-auto-lint (disable)
Examples
aider --no-auto-lintDisable automatic lint runs after file changes.--auto-test / --no-auto-test
Notes
- --auto-test (enable)
- --no-auto-test (disable)
Examples
aider --auto-testRun tests automatically after each change and fix failures.--edit-format
Notes
- --edit-format FORMAT
- Options: whole, diff, diff-fenced, udiff
Examples
aider --edit-format diffUse diff format (efficient for small changes).--architect
Notes
- --architect
Examples
aider --architectLaunch in architect/editor two-model configuration.--map-tokens
Notes
- --map-tokens VALUE
Examples
aider --map-tokens 2048Limit the repo map size to 2048 tokens.--config
Notes
- --config FILE
Examples
aider --config ~/.aider.custom.ymlLaunch Aider with a custom config file path.--env-file
Notes
- --env-file FILE
- Default: .env
Examples
aider --env-file .env.productionLoad a production .env file on launch.--dark-mode / --light-mode
Notes
- --dark-mode (dark background)
- --light-mode (light background)
Examples
aider --dark-modeLaunch with colors optimized for dark terminals.--no-stream
Notes
- --no-stream
Examples
aider --no-streamDisable streaming and display the full response after completion.--gui / --browser
Notes
- --gui / --browser
Examples
aider --browserRun Aider with a browser-based web UI.--watch-files
Notes
- --watch-files
Examples
aider --watch-filesDetect AI: comments in code and run them automatically.--copy-paste
Notes
- --copy-paste
Examples
aider --copy-pasteAutomatically copy/paste context between terminal and browser.--voice-language
Notes
- --voice-language LANG
- Examples: en, ja, fr
Examples
aider --voice-language enConfigure voice input for English.--encoding
Notes
- --encoding VALUE
- Default: utf-8
Examples
aider --encoding shift-jisUse Shift-JIS encoding for files.--commit
Notes
- --commit
Examples
aider --commitCommit changes without opening an Aider session.--show-diffs
Notes
- --show-diffs
Examples
aider --show-diffsDisplay change diffs before each commit.--apply
Notes
- --apply FILE
Examples
aider --apply changes.diffApply a diff file through Aider.--lint
Notes
- --lint
Examples
aider --lintLint changed files, fix issues, and exit.--test
Notes
- --test
Examples
aider --testRun the test command, fix failures, and exit.--vim
Notes
- --vim
Examples
aider --vimLaunch Aider with vim key bindings enabled.Chat Modes
code
Notes
- Switch: /code or --chat-mode code
Examples
/code Fix this bugRequest a code change in code mode.ask
Notes
- Switch: /ask or --chat-mode ask
Examples
/ask Explain the control flow of this functionAsk for an explanation without changing any code.architect
Notes
- Switch: /architect, --chat-mode architect, or --architect
Examples
/architect Redesign this moduleRequest a design change in architect mode.help
Notes
- Switch: /help or --chat-mode help
Examples
/chat-mode helpAsk about Aider configuration in help mode.Config & Env Vars
.aider.conf.yml
Notes
- Filename: .aider.conf.yml
Examples
model: claude-opus-4-5
auto-commits: falseSet the model and disable auto-commits in .aider.conf.yml..aiderignore
Notes
- Filename: .aiderignore
Examples
*.lock
node_modules/
dist/Exclude lock files and build artifacts in .aiderignore..env
Notes
- Filename: .env
- Use --env-file for a custom path
Examples
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...Set Anthropic and OpenAI API keys in .env..aider.model.settings.yml
Notes
- Filename: .aider.model.settings.yml
Examples
- name: claude-opus-4-5
edit_format: diffSet per-model edit format in .aider.model.settings.yml.OPENAI_API_KEY / ANTHROPIC_API_KEY
Notes
- OPENAI_API_KEY=sk-...
- ANTHROPIC_API_KEY=sk-ant-...
Examples
export ANTHROPIC_API_KEY=sk-ant-...Set the Anthropic API key as a shell environment variable.Version History
Compiled from Aider official GitHub releases.
- Support for
reasoning_effortsetting with GPT-5 series models - Temperature disabled by default for GPT-5 family (deterministic output)
- Expanded GPT-5 model support to OpenAI, Azure, and OpenRouter
- Support for dated / chat / mini / nano variants
- Support for Grok-4 (xai/grok-4, openrouter/x-ai/grok-4)
- Support for gemini-2.5-flash-lite preview
/clearnow shows a confirmation message/undonow shows only the first line of the commit message
About This Tool
A reference tool to browse and copy-paste all Aider v0.86.x slash commands, CLI flags, chat modes, and config files on a single page. Aider is a Git-integrated terminal AI pair programming tool featuring multi-file editing, automatic commits, lint/test integration, and support for multiple LLMs (Claude, GPT, Gemini, and more). Use the category filter to narrow by command type, search by keyword, and copy any command without leaving the context.
What You Can Find
- All 41 slash commands (/add, /architect, /ask, /code, /commit, /undo, and more)
- All 27 CLI flags (--model, --architect, --auto-commits, --yes-always, and more)
- 4 chat modes (code, ask, architect, help) with switching instructions
- 5 config files and environment variables (.aider.conf.yml, .aiderignore, API keys, etc.)
- Sub-options, notes, and usage examples for each entry
When It's Useful
- When you want to check the difference between /architect and /ask during a coding session
- When you need to verify flags like --auto-commits or --architect before launching Aider
- When you want to adjust the thinking budget with /think-tokens or /reasoning-effort
- When you want to explore what can be configured in .aider.conf.yml
- When introducing Aider to teammates and sharing a quick command reference
- When reviewing or rolling back Aider changes with /undo or /diff
Frequently Asked Questions
What is Aider?
Aider is a Git-integrated terminal AI pair programming tool. It supports multiple LLMs including Claude, GPT, and Gemini, and enables multi-file editing, automatic commits, and lint/test integration directly from the terminal. All changes are automatically committed via Git, so you can always roll back with /undo.
How do I install Aider?
You can install Aider with pip: run `pip install aider-install` then launch `aider`, or use `python -m pip install aider-chat` for a direct install. After installation, run the `aider` command in your project directory to start a session.
What are slash commands?
Slash commands are in-session commands you type during a chat with Aider. They control file management (/add, /drop, /read-only), code changes (/code, /architect, /ask), Git operations (/commit, /undo, /diff), model switching (/model, /editor-model), and more. Use /help to see the full list.
What is the difference between code, ask, and architect modes?
Code mode (default) lets Aider modify your code based on requests. Ask mode answers questions about the code without making changes. Architect mode uses an architect model to propose changes and an editor model to implement the specific edits. Help mode answers questions about using Aider itself.
What is the --architect flag?
The --architect flag enables the architect edit format at CLI launch, making Aider operate in a two-model configuration of architect + editor. It is equivalent to --chat-mode architect, and helps with complex tasks by separating design proposals from concrete code edits.
How do I set up API keys?
Set them as environment variables: `export OPENAI_API_KEY=sk-...` for OpenAI and `export ANTHROPIC_API_KEY=sk-ant-...` for Anthropic. Writing them in a .env file lets Aider pick them up automatically on launch. You can also set API keys in .aider.conf.yml.
How do I undo Aider's changes?
Use the /undo command to revert the most recent git commit made by Aider. You can run it multiple times to roll back multiple commits. Standard Git operations like git reset also work since Aider uses plain Git commits.
Does this tool store my input data?
No. This cheat sheet is a static reference page. No commands, text, or clipboard data are sent to any server. Filtering and copying all happen entirely in your browser.