Aider: safety, permission modes and how to run it
How Aider handles confirmations, --yes-always, auto-commits and shell commands, plus its 2026 CVEs on repo config files and steps to run it safely.
- Made by
- Aider-AI (Paul Gauthier and contributors)
- Runs in
- Terminal, Browser UI (--gui)
- Platforms
- macOS, Linux, Windows
- Licence
- Apache-2.0, open source
4 public advisories
Security advisories and reported issues since 2025, from vendor advisories, NVD and public reports. Checked December 2, 2026.
On this page
What Aider is
Aider is a Python command line tool that sends your request and a map of your repository to a language model, then writes the returned edits into your files. It works best inside a git repo, where it commits each change with a generated message so you can review or undo it with /undo. It works with many model providers through litellm, and it can run lint and test commands after edits. It has no permission tiers like newer agents: it asks for confirmation on certain actions by default, and one flag turns every confirmation into a yes.
Install Aider
One-liner for macOS and Linux:
curl -LsSf https://aider.chat/install.sh | shOne-liner for Windows:
powershell -ExecutionPolicy ByPass -c "irm https://aider.chat/install.ps1 | iex"With aider-install:
python -m pip install aider-install && aider-installWith pipx:
pipx install aider-chatAider news and advisories
Releases and announcements, with public security advisories on the same line.
NVD published CVE-2026-138386 for the shell command confirmation handler in Aider up to 0.86.2.
NVD- CVE-2026-138386
The confirm_ask function in the shell command confirmation handler fails to protect as intended in Aider 0.86.0 to 0.86.2, with a local attack. VulDB rated it low. The record says a fix pull request was waiting for acceptance.
NVD - CVE-2026-115726
Aider through 0.86.2 runs shell commands from a committed .aider.conf.yml with no trust prompt. The notifications-command and editor settings are run with shell=True after model replies or /editor, using the victim's privileges.
GitHub Advisory Database NVD published CVE-2026-85674 on running test-cmd and lint-cmd from a repo's .aider.conf.yml. It was confirmed on 0.86.3.dev, the then-current main branch.
NVD- CVE-2026-85674
A crafted repo can set test-cmd, which runs at startup, or lint-cmd, which runs on the first file edit, in .aider.conf.yml. Aider runs them through a shell with no confirmation, so cloning and opening a hostile repo runs its commands. Affects versions up to 0.86.2.
NVD - CVE-2026-10177
A server-side request forgery in api_docs.py reaching the AWS EC2 metadata endpoint, reported against Aider 0.86.3. The record says a fix pull request was waiting for acceptance.
NVD Aider 0.86.2 was published to PyPI, which is still the latest release listed there. The release notes list later main-branch work such as a /ok command and support for newer Claude, Gemini and GPT models.
PyPI
How Aider keeps itself in bounds
Out of the box, asks before shell commands and some file actions, and auto-commits every edit it makes to git.
| Mode | How to turn it on | Asks you | What it allows |
|---|---|---|---|
Default (confirm) | aider with no approval flags | For some actions | Prompts before actions such as running a suggested shell command, and commits every file edit it makes to git. |
Always yes | --yes-always or yes-always: true in .aider.conf.yml | Never | Answers yes to every confirmation prompt. |
Ask mode | /ask in chat | Never | Answers questions about the code without editing any files. |
No auto-commit | --no-auto-commits, --no-dirty-commits or --no-git | For some actions | Stops the per-edit commits. With --no-git, aider does not use git and you must keep your own backups. |
Dry run | --dry-run | For some actions | Runs without modifying files. |
Auto test and lint | --auto-test with --test-cmd, and --auto-lint with --lint-cmd | Never | Runs your test or lint command after changes. Auto-lint is on by default, and auto-test is off by default. |
Where its settings live
| Path | What it holds |
|---|---|
~/.aider.conf.yml | Your home-directory YAML options, read first |
.aider.conf.yml at the git root | The repo copy, read after the home copy. It can set commands that run (see the advisories), so read it in any repo you clone. |
./.aider.conf.yml | The copy in the current directory, read last, so it wins |
.env (git root) | API keys for all providers; the YAML file only accepts OpenAI and Anthropic keys |
.aider.chat.history.md | Chat transcript, written in the project by default |
.aider.input.history | Your prompt history, in the project by default |
.aider.llm.history | Full model conversation log, only written if you set --llm-history-file |
.aiderignore | Patterns for files aider should ignore, in the git root by default |
- Aider runs with your user privileges and has no container or permission engine. Its main safety net is git: it commits each edit, commits your uncommitted changes first, and /undo reverts its last commit.
- It prompts before certain actions, and --yes-always removes every prompt. Shell commands the model suggests, and commands in lint-cmd, test-cmd and /run, run through your shell.
- By default it skips git pre-commit hooks with --no-verify; --git-commit-verify turns the hooks back on.
- Aider reads .aider.conf.yml and .env from the repository you open. Advisories in 2026 show that a cloned repo can use those files to run commands, so treat a repo's aider files as code.
Security incidents and advisories
| Date | Advisory | What happened |
|---|---|---|
The confirm_ask function in the shell command confirmation handler fails to protect as intended in Aider 0.86.0 to 0.86.2, with a local attack. VulDB rated it low. The record says a fix pull request was waiting for acceptance.No fixed version published | ||
CVE-2026-115726High | Aider through 0.86.2 runs shell commands from a committed .aider.conf.yml with no trust prompt. The notifications-command and editor settings are run with shell=True after model replies or /editor, using the victim's privileges.No fixed version published | |
CVE-2026-85674High | A crafted repo can set test-cmd, which runs at startup, or lint-cmd, which runs on the first file edit, in .aider.conf.yml. Aider runs them through a shell with no confirmation, so cloning and opening a hostile repo runs its commands. Affects versions up to 0.86.2.No fixed version published | |
A server-side request forgery in api_docs.py reaching the AWS EC2 metadata endpoint, reported against Aider 0.86.3. The record says a fix pull request was waiting for acceptance.No fixed version published |
How to run Aider safely
- Do not open Aider in a repo you have not read. Check .aider.conf.yml, .env and any test-cmd or lint-cmd lines first, because versions up to 0.86.2 run them without asking.
- Keep your own config in your home directory and delete or rename a repo's .aider.conf.yml from untrusted sources before launching.
- Avoid --yes-always except in a throwaway container or VM, since it answers yes to every prompt, including shell commands.
- Keep git integration on. Start from a clean branch, read each commit, and use /undo or git revert for changes you do not want.
- Consider --suggest-shell-commands false if you do not want the model proposing shell commands.
- Set --auto-test and --test-cmd only to commands you trust, and use --git-commit-verify if you rely on pre-commit hooks.
- Move or ignore .aider.chat.history.md and .aider.llm.history if they could capture secrets, and keep API keys in environment variables or a .env that is not committed.
- Watch the CVE records above for a fixed release, and re-check before upgrading since none lists a patched version.
Where Excellent fits
| What Excellent does | With Aider |
|---|---|
Reads its session logs (free scan) | Yes |
Its key finder reads its key files | Yes |
Live check before risky actions (Pro) | No |
Excellent's sandbox | Claude Code and Codex only |
Rule sharing | Claude Code and Codex only |
Excellent reads Aider's session logs on your Mac. The free scan shows what it did: your email in request commands or form inputs, keys sitting in logs, secrets files read, history overwritten, checks skipped. Each finding says which agent and where.
Excellent's sandbox and rule sharing are for Claude Code and Codex only. The check reads what a command says, so it isn't a wall around your Mac.
Questions
Is Aider safe to run?
It runs with your user privileges and trusts the repo it opens. Use a clean git branch, read config files in unfamiliar repos, and avoid --yes-always outside a throwaway environment.
What does --yes-always do?
It answers yes to every confirmation. The options reference describes it as always saying yes to every confirmation, so use it only where nothing important is exposed.
How do I undo what Aider changed?
Aider commits each edit, so /undo reverts its last commit. You can also use /diff to see changes since your last message, or normal git tools.
Does Aider run commands in a container?
No. Shell, lint and test commands run on your machine through your shell. The project documents a Docker image, but running inside Docker is your choice.
Where does Aider keep its settings?
In .aider.conf.yml, which it looks for in your home directory, the git root and the current directory, with the last one loaded winning. API keys for most providers go in a .env file.
Sources
Checked December 2, 2026. Aider changes often, so its own docs win where they differ from this page.
- Aider docs: Installation
- Aider docs: Options reference
- Aider docs: YAML config file
- Aider docs: Git integration
- Aider docs: In-chat commands
- Aider release history
- aider-chat on PyPI
- Aider-AI/aider security advisories page
- CVE-2026-138386 (NVD)
- CVE-2026-115726 (GitHub Advisory Database)
- CVE-2026-85674 (NVD)
- CVE-2026-10177 (NVD)
