GuidesHosting choices

Aider: install, API keys, git and scripting (2026)

Aider, the open-source terminal AI pair programmer: install, model API keys in .env, auto-commits and /undo, --message scripting, SSH use, and vs Claude Code.

November 30, 2026The Everpod team
The short answer

Aider is an open-source (Apache 2.0) AI pair programmer that runs in your terminal, edits the files you add to the chat, and commits each change to git so /undo can take it back. It works with almost any model by API key: Anthropic, OpenAI, Gemini, DeepSeek, OpenRouter, or a local model through Ollama. Install it with curl -LsSf https://aider.chat/install.sh | sh (which also fetches Python 3.12) or pipx install aider-chat on Python 3.10 to 3.12. As of November 30, 2026 the latest release is 0.86.2, from February 12, 2026; nothing has been released since, and the last commit to its main branch was on May 22, 2026.

Is Aider still maintained?

Releases have slowed to a stop. PyPI’s release history shows a release every few weeks through 2025, ending with 0.86.0 on August 9 and 0.86.1 on August 13, then a single 0.86.2 on February 12, 2026. The GitHub releases page still marks 0.86.0 as the latest with notes, and the changelog has no entry for 0.86.2.

Work did carry on in the repository after that. The changelog’s unreleased section lists support for Claude Opus 4.7 and GPT-5.3 and 5.4, and the commit log adds GPT-5.5 settings in April 2026, with the newest commit on May 22, 2026. None of that is in a release. What it means in practice: the shorthand names in 0.86.2 point at older models (sonnet is claude-sonnet-4-5, opus is claude-opus-4-6), while the main branch has moved them to claude-sonnet-4-6 and claude-opus-4-7. A newer model still works if you give its full name; Aider then warns that it does not know the model’s limits:

Model foobar: Unknown context window size and costs, using sane defaults.
Copied

The docs say this can usually be ignored: Aider treats the model as free and its context as unlimited, so its cost and token reports will be wrong.

Install Aider

The PyPI package is aider-chat and the command is aider. Its metadata requires Python >=3.10,<3.13, so pip on Python 3.13 or newer will not install the current release (the install page gives 3.9 to 3.12 for pip and pipx). The routes that install their own Python 3.12 avoid the question:

# macOS and Linux: installs uv, then aider with Python 3.12
curl -LsSf https://aider.chat/install.sh | sh

# the same thing done by hand, if you already have uv
uv tool install --force --python python3.12 --with pip aider-chat@latest

# pipx, with Python 3.10 to 3.12
pipx install aider-chat

# Windows PowerShell
powershell -ExecutionPolicy ByPass -c "irm https://aider.chat/install.ps1 | iex"
Copied

The one-liners run whatever the URL serves. As read today, the shell one downloads uv 0.5.9 from GitHub into ~/.local/bin, runs the uv tool install line above, and adds that folder to PATH in your shell startup files, .profile, .bashrc and .zshrc among them (set UV_NO_MODIFY_PATH=1 to stop that). Open a new shell afterwards. The install page advises against distribution package managers, which “often install aider with incorrect dependencies”, and suggests python -m aider if the shell says the command is not found. To update later, run aider --upgrade, or repeat the install command.

Models and API keys

Aider has no account or plan of its own; you pay the model provider. Its model docs cover OpenAI, Anthropic, Gemini, Groq, xAI, Azure, Cohere, DeepSeek, OpenRouter, Vertex AI, Amazon Bedrock, GitHub Copilot, any OpenAI-compatible API, and local models through Ollama or LM Studio. Under the hood it calls models through LiteLLM (pinned at 1.81.10 in 0.86.2), which is why a full provider-prefixed name such as openrouter/anthropic/claude-sonnet-4 works.

Start it without --model and it picks one from the first key it finds: an OpenRouter key gives openrouter/anthropic/claude-sonnet-4 (or a free DeepSeek R1 on a free OpenRouter account), then ANTHROPIC_API_KEY gives sonnet, DEEPSEEK_API_KEY gives deepseek and OPENAI_API_KEY gives gpt-4o. With no key at all it offers to sign you in to OpenRouter in a browser. Aider’s deepseek name points at deepseek/deepseek-chat, which DeepSeek retired on July 24, 2026, so with a DeepSeek key pass the current name yourself (--model deepseek/deepseek-flash; the DeepSeek API key guide has the names and prices).

The quick-start passes the key on the command line (--api-key anthropic=<key>), which leaves it in your shell history and visible to other users in the process list. A .env file is the better place, and the docs agree it works for every provider. Aider reads, in order, ~/.env, the .env at the root of the git repo, the one in the current directory, then any file named with --env-file; later files win. To set a key once for your user without echoing it:

read -rsp 'Anthropic API key: ' k; echo
(umask 077; printf 'ANTHROPIC_API_KEY=%s\n' "$k" >> ~/.env); unset k
chmod 600 ~/.env   # appended, so anything already in the file stays
Copied

Other providers use their own variable names in the same file: OPENAI_API_KEY, GEMINI_API_KEY, DEEPSEEK_API_KEY, OPENROUTER_API_KEY. Because a repo’s own .env loads after your home one, a project that sets the same variable overrides your key for that project. When Aider finds a .env at the repo root that git does not ignore, it offers to add it to .gitignore along with its own .aider* files; say yes.

Settings other than keys go in .aider.conf.yml, which Aider reads from your home directory, the repo root and the current directory (last wins), using the long option names without the dashes:

# ~/.aider.conf.yml
model: sonnet
dark-mode: true
Copied

The docs disagree on keys in this file. The API-keys page shows an api-key: list for any provider; the sample config says “You can only put OpenAI and Anthropic API keys in the YAML config file.” The .env file sidesteps both. If you would rather route everything through one key, the OpenRouter API key guide covers making one, and is DeepSeek safe for AI agents covers the questions to ask before sending code to the cheapest option.

How Aider uses git

Git is the centre of how Aider works, and the defaults are worth knowing before you start it in a repo with work in progress. From the git docs:

Inside a session, /diff shows what changed since your last message and /undo will “Undo the last git commit if it was done by aider”, discarding that change. It will not touch a commit you made. To roll back several of its commits, use plain git, for example git log --oneline to find the last commit you want, then git reset --hard <commit>, which is destructive: it throws away every commit after that one and any uncommitted changes. Since Aider commits on your current branch, starting it on a branch of its own (git switch -c aider-work) keeps the cleanup to deleting a branch.

What you hand it, and what it asks first

Aider edits only what you put in the chat. You name files on the command line (aider src/app.py tests/test_app.py) or add them with /add, and the docs say to “Only add the files that need to be edited for your task.” For the rest of the codebase it sends a repo map, a ranked summary of symbols across the repo, about 1,000 tokens by default (--map-tokens). /read-only adds files as reference, /ask discusses without editing, and /architect has one model plan the change and a second turn it into edits.

Edits to files already in the chat are written without asking. Everything else is a yes/no question. In the 0.86.2 source those are: “Add file to the chat?”, “Create new file?”, “Allow edits to file that has not been added to the chat?”, “Add URL to the chat?”, “Attempt to fix lint errors?”, “Attempt to fix test errors?”, and “Run shell command?” when the model suggests one. You can run commands yourself with /run (or !) and /test, which can add the output to the chat (/test does when the command fails).

Running Aider in scripts: --message and --yes-always

--message (-m) sends one instruction, applies the reply and exits; --message-file (-f) reads the instruction from a file. The scripting docs loop it over files:

for FILE in *.py ; do
    aider --message "add descriptive docstrings to all the functions" $FILE
done
Copied

Without a terminal to answer them, its questions get in the way, so unattended runs add --yes-always (“Always say yes to every confirmation”). In the source it does not quite mean every one. The shell-command question is the single prompt marked as needing an explicit yes, and under --yes-always Aider answers it no:

if self.yes is True:
    res = "n" if explicit_yes_required else "y"
Copied

So a scripted run accepts new files, edits outside the chat, URLs and fix-the-lint-errors offers, but never runs a command the model proposed. What you configured still runs: Aider’s own linting is on by default, and --auto-test --test-cmd "pytest" runs your tests after each change, with the offer to fix failures accepted. None of this is sandboxed; the files and commands run with your user’s rights, so on a server run Aider as an ordinary user, never root.

aider --model sonnet --yes-always --analytics-disable \
  --auto-test --test-cmd "pytest -q" \
  --message "fix the failing test in tests/test_app.py" \
  src/app.py tests/test_app.py
Copied

Analytics are opt-in: a random subset of users is asked once, and the docs say Aider “never collects your code, chat messages, keys or personal info.” That question is an ordinary yes/no prompt, though, so if it comes up during a --yes-always run, the run opts you in. --analytics-disable, as in the command above or run once on its own, turns analytics and the question off for good.

Aider on a remote server over SSH

Aider is a plain terminal program, so it runs over SSH like any other: install it with the one-liner as your normal user, put the key in ~/.env as above, cd into the repo and run aider. A session ends when the SSH connection drops, so start it inside tmux and reattach later.

The one step that does not carry over is the browser sign-in Aider offers when it finds no key. It prints “Please open this URL in your browser to connect Aider with OpenRouter:” and waits up to five minutes, but the sign-in finishes by redirecting the browser to http://localhost:8484/callback/aider (or the next free port up to 8584) on the machine running Aider. Opened on your laptop, that address is your laptop, not the server. Forwarding the port when you connect (ssh -L 8484:localhost:8484 you@server, or whichever port the printed URL shows) points it back at the server; creating a key on openrouter.ai and putting it in ~/.env avoids the question. A key saved by that sign-in is appended to ~/.aider/oauth-keys.env, and the code sets no file mode, so the file gets whatever your umask gives it, often readable by other users. Run chmod 600 ~/.aider/oauth-keys.env afterwards.

For the server itself, choosing a VPS for a coding agent applies to Aider as much as to the agents in its title.

Aider vs Claude Code, Codex CLI and OpenCode

The newer tools describe themselves as agents. Claude Code is “an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools” (Anthropic); Codex CLI is “a coding agent from OpenAI that runs locally on your computer” (OpenAI); OpenCode is “an open source coding agent” (OpenCode). Aider calls itself “AI pair programming in your terminal”. As read on November 30, 2026, from each maker’s own pages:

AiderClaude CodeCodex CLIOpenCode
Install
curl -LsSf https://aider.chat/install.sh | shcurl -fsSL https://claude.ai/install.sh | bashnpm install -g @openai/codexcurl -fsSL https://opencode.ai/v2/install | bash
How you pay for the model
Any provider’s API keyMost surfaces need a Claude subscription or Anthropic Console accountSign in with ChatGPT, or an API keyMany providers, connected with /connect
Git
Commits every edit by default“stages changes, writes commit messages, creates branches, and opens pull requests”Not covered in the READMENot covered on the docs’ front page
Licence
Apache 2.0Not stated on the overviewApache-2.0“open source”

In Aider you choose the files, it edits them and commits, and a command the model wants to run waits for your yes. Claude Code, in Anthropic’s description, reads the codebase and runs commands as part of the task. If you want a commit per step and a model bill on one provider key, Aider still does that; if you want a tool that finds the files and runs the commands a task needs on its own, or you already pay for a Claude or ChatGPT plan, the agents fit better, with the caveat above that Aider’s own releases have paused since February. Aider’s docs offer no sign-in with a Claude or ChatGPT plan; how far a Claude plan reaches into other tools is set out in using a Claude subscription in other tools. The Claude Code alternatives and OpenCode alternatives guides set the wider field side by side.

Run Claude Code, Codex, OpenCode, Pi, Hermes or OpenClaw on an always-on developer pod.

A developer pod is a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed. Run more agents at once than your laptop can hold, and keep them working when it’s closed. From $24 a month, built in about ten minutes.