Aider: The Free Terminal Coding Assistant, Explained
Aider is a free, open-source AI coding tool for your terminal. You pay your model provider for tokens, or nothing with a local model.
In this story (8 sections)
Aider is a free, open-source AI pair programmer that runs in your terminal. The tool costs nothing; the bill comes from whichever model you plug into it, and that can be zero if you run a local model.
Facts and install steps below are as of December 2, 2026.
What aider actually is
The project describes itself as "AI pair programming in your terminal" on its GitHub page. You open a terminal in your project folder, start aider, tell it which files to work on, and ask for changes in plain English. It edits the files and commits the result to git.
It's open source under the Apache-2.0 license, and the main branch showed 13,138 commits when we read the repo. There's no IDE extension on the pages we read, so treat it as a terminal tool. The GitHub Releases section was empty, so we can't give you a version number or release date. Check the repo for the latest.
If you already live in a terminal, it stays out of your editor's way.
What aider costs (the tool is free, the tokens aren't)
Aider itself has no subscription on any page we read. You bring an API key from a model provider and pay that provider's token prices. Run a local model and the token bill drops to nothing, though your own hardware does the work.
There's no official per-session cost, because it depends on two things: the model's token prices and how much you send. The FAQ is blunt about the second part: adding extra files "will also increase your token costs". Aider sends a repository map for context, and you add only the files that need changes. You can add a whole folder with a wildcard like /add src, but the docs advise against it.
For a free cloud option, the models page says "OpenRouter provides free access to many models with daily usage limits". It doesn't give the limits, so check OpenRouter before you count on them. Our explainer is at /openrouter/. For paid token rates, see /claude-api-pricing/, /gemini-api-pricing/ and /openai-api-pricing/.
| What you use | What you pay |
|---|---|
| Aider itself | Free (Apache-2.0) |
| A cloud model via API key | Your provider's token prices |
| OpenRouter free models | Free, with daily limits (check OpenRouter) |
| A local model via Ollama | No token bill; your hardware and power |
How to install aider
The install docs recommend this two-step setup:
python -m pip install aider-install
aider-install
It builds a separate Python environment for aider and can install Python 3.12 if you need it. That route, and the uv route, work with Python 3.8 to 3.13. Installing with pip or pipx directly needs Python 3.9 to 3.12.
There are also one-line installers: install.sh via curl or wget on Mac and Linux, and install.ps1 in PowerShell on Windows. Both install Python 3.12 if needed.
One warning from the docs: skip your operating system's package manager. They say those "often install aider with incorrect dependencies". Use the official installer and save yourself the debugging.
Which models aider works with
The docs heading says it plainly: "Aider can connect to most LLMs". The list includes OpenAI, Anthropic, Gemini, GROQ, LM Studio, xAI, Azure, Cohere, DeepSeek, Ollama, OpenRouter, GitHub Copilot, Vertex AI, Amazon Bedrock and any OpenAI-compatible API.
The README says Aider works best with Claude 3.7 Sonnet, DeepSeek R1 and Chat V3, and OpenAI's reasoning and GPT models. Those are older model names, so read that line as the README's list, not a current ranking. There's also a floor: the docs warn that much weaker, older models may have problems working well with aider. That matters most if you're eyeing a tiny local model.
Our take: pick a capable model you already have API access to. Aider is only as good as the brain you hand it.
Running aider with a local model in Ollama
The docs say "Aider can work also with local models", with Ollama as the example, plus any local server that speaks the OpenAI-compatible API. The Ollama setup goes like this:
ollama pull <model>- Set
OLLAMA_API_BASE=http://127.0.0.1:11434 - Run
aider --model ollama_chat/<model>
The docs recommend the ollama_chat/ prefix over ollama/.
Here's the trap. Ollama uses a 2k context window by default and silently throws away anything past it. Aider works around this by setting the window to fit each request plus 8k tokens for the reply. If you want a fixed size, set num_ctx in .aider.model.settings.yml.
Which model to pull? Qwen3-Coder 30B is Apache-2.0, with 30.5B total and 3.3B active parameters, and it's a 19GB Ollama download. The Devstral 2 Small card says it runs on "a single RTX 4090 or a Mac with 32GB RAM". Our full picks are in /best-local-llm-for-coding/, and the Ollama basics are in /what-is-ollama/.
The git integration, and your undo button
This is the part we like most. The git docs say "Whenever aider edits a file, it commits those changes with a descriptive commit message." If an edit goes sideways, /undo reverts the last change. Think of it as an autosave before every boss room.
You can turn this off with --no-auto-commits, but the docs say that's not recommended. We agree: the commits are the safety net.
Aider also labels its work. It appends "(aider)" to the git author and committer name, so your history shows which commits it made. To drop the tag, use --no-attribute-author and --no-attribute-committer.
Does aider collect your data
Analytics are opt-in. The analytics page says they're offered to a random subset of users, and "Analytics are only collected if you agree and opt-in." If you agree, it records which LLMs you use and token counts, edit formats, feature use and errors, tied to an anonymous ID. It says it never collects your code, chat messages, keys or personal info.
To opt out for good, run aider --analytics-disable. For one session, use --no-analytics.
Your code still goes to whichever model provider you use, so read their terms.
What to do next
- Broke student: install aider, point it at OpenRouter's free models, and check the daily limits first.
- Already paying for an API: use that key and add only the files you're changing to keep token costs down.
- Privacy first: run it with Ollama and a local coding model, and fix the context window.
- Shopping around: compare it with /cline/.
- Just curious: run
aider-install, try a small change in a test repo, and use/undofreely.
Receipts
Official pages behind this story, read Dec 2, 2026- github.comWhat is aider? · What license is aider under?
- aider.chatWhat does aider cost? · Does aider read the whole repo?
- aider.chatWhat is the recommended install? · Which Python versions are supported?
- aider.chatWhich models and providers does it support? · Does aider work with local models?
- aider.chatHow do you run aider with Ollama? · What is the Ollama context window warning?
- aider.chatDoes aider commit to git automatically? · How are aider commits labeled?
3 more receipts
- aider.chatDoes aider collect telemetry?
- ollama.com(reused) Which local coding model and how much memory?
- docs.ollama.com(reused) Do other coding tools document Ollama?
Filed under
Guides: Familiars“aider”