RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Fredoline Eruo
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
  1. >
  2. Home
  3. /Tools
  4. /Aider
agent
Open source
free (BYO API key)
4.6/5
Operational review

Aider

Terminal-based AI pair programmer. Run in your project directory, describe a change, it edits files and creates meaningful git commits. Works with any LLM — local Ollama, Anthropic, OpenAI, etc.

By Fredoline Eruo·Reviewed May 8, 2026·30,000 GitHub stars

Aider is the AI coding pair-programmer that took the early-2024 lead and held it. It runs in your terminal, watches your git repo, and applies edits as commits — a workflow that maps cleanly onto how working developers already use git. The local-AI angle: Aider is one of the most-deployed front-ends for Ollama + llama.cpp + LM Studio once you point it at a local model via the OpenAI-compatible base URL. The operator-grade question is "which model should I run behind Aider," not "should I use Aider," because at this point Aider is the default and the alternatives (Continue, Cursor cloud-only, OpenCode) all assume different operator preferences.

Architecture and what Aider actually is

Aider is a Python CLI tool (github.com/Aider-AI/aider, 25k+ stars and growing fast through 2025-2026). The operational model: Aider tracks the files you've added to the chat, sends them as context to an LLM, parses the LLM's edit instructions (in one of several diff formats), applies the edits to disk, and creates a git commit. Multiple file edits per turn are routine; full repo understanding via tree-sitter-based "repo map" is the killer feature.

It speaks the OpenAI-compatible API natively — point it at http://localhost:11434/v1 (Ollama), http://localhost:1234/v1 (LM Studio), http://localhost:8080/v1 (llama-server), or any other compatible endpoint and you're using a local model. Aider also speaks Claude API, OpenAI API, Gemini API, OpenRouter, etc. natively — many operators run cloud + local in the same workflow.

The architectural choice that matters most: Aider doesn't try to be an IDE. There's no editor UI, no panel, no chat sidebar. It's a terminal that talks to your repo. That means it doesn't fight your existing tooling (VS Code, Neovim, JetBrains) — you keep editing where you edit, Aider just makes commits.

Local stack compatibility

Aider works with any OpenAI-compatible local model server. The operator-grade question becomes "which local model produces correct multi-file edits?" Most 7-13B models can't reliably produce diffs in Aider's expected formats; the workflow demands ≥30B-class capability for serious refactor work, with Qwen 2.5 Coder 32B + DeepSeek Coder V3 33B as the current-default recommendations. The compatibility matrix below covers the runtime + hardware combinations operators actually use.

For runtime selection see /compare/engines/ollama-vs-lm-studio (the two most-common local backends Aider users pick). The agent-loop framing is in /guides/local-ai-for-coding-agents.

Setup + day-1 reality

pip install aider-chat (or pipx for isolated install) is the canonical path. The CLI is aider after install. Configuration via environment variables or .aider.conf.yml in your project root.

For local-model use:

# With Ollama (most common)
OPENAI_API_BASE=http://localhost:11434/v1 \
OPENAI_API_KEY=ollama \
aider --model openai/qwen2.5-coder:32b

The OPENAI_API_KEY value doesn't matter for local servers but Aider's libraries require it to be set. Use any non-empty string.

First-run reality: Aider's git integration auto-commits every successful edit. If you don't want that (working on a branch you don't want to pollute with experiment commits), pass --no-auto-commits. You'll still get the edits; they'll just sit unstaged.

The repo map: Aider builds a tree-sitter-based summary of your repo and sends it as context to the model on every turn. For large repos (10k+ files) this can blow past the model's context window. Solutions: /add only the files you're working on (Aider tracks ≤50 files reliably), use --map-tokens 0 to disable the repo map entirely, or pin to a model with 128k+ context.

Operational concerns

  • Diff format choice matters. Aider supports several edit formats (whole, diff, udiff, diff-fenced, etc.). 7-8B models can sometimes handle whole (write entire file) but fail on diff (produce a diff to apply). Larger models handle diff reliably. Aider auto-picks per model but you can override with --edit-format.
  • Context cost on local models is real. Each turn sends repo map + open files + chat history. For a 50k-context Qwen Coder 32B run, expect 30-60% of every turn to be context, not new generation. Plan token budget accordingly.
  • Auto-commit + git integration assumes a clean repo. Aider warns on uncommitted changes but proceeds. If you mix manual edits with Aider edits without checkpointing, history gets messy.
  • Model-switch friction. You can't seamlessly switch models mid-conversation. /exit and restart with a different --model. Aider's chat-history persistence helps but isn't seamless.
  • No native multi-repo workflow. Aider operates on one repo at a time. If your work spans multiple repos, you run multiple Aider instances or work sequentially.

Performance reality

Aider's tok/s is whatever the underlying model + runtime delivers. Aider adds modest CPU overhead (tree-sitter, repo map building, diff parsing) but doesn't bottleneck inference. The user-experienced latency is dominated by:

  1. First-turn repo-map build (one-time per session, can be 5-20 seconds for 5k-file repos)
  2. TTFT on each turn (depends on context size, often 2-10 seconds for local 32B-class models)
  3. Decode of the edit instructions + diff (where local-model tok/s matters)

For a Qwen 2.5 Coder 32B at Q4 on a 4090 producing a 5-file refactor: typically 30-60 seconds per turn end-to-end. Cloud Sonnet 4 / GPT-5 on the same task: 15-25 seconds. The gap is real — but cloud cost-per-turn is real too.

Failure modes (what breaks)

Ranked by community-error frequency:

  1. Wrong edit format for the model. 7-8B local model + diff format → garbage edits. Workaround: use --edit-format whole for small models, accept that they overwrite whole files.
  2. Context window exhausted mid-conversation. Repo map + chat history + open files exceed context. Aider truncates oldest messages but quality degrades. Restart with /clear more often than feels natural.
  3. Auto-commit on a dirty repo. Aider commits its edits cleanly but your prior uncommitted changes hitch-hike onto the commit. Always run git status clean before starting Aider.
  4. Local model produces invalid diff syntax. The model says it's editing a file but the diff Aider parses doesn't apply. /undo rolls back the failed apply attempt; re-prompt the model with stricter instructions.
  5. Model loop on an impossible refactor. Some prompts (e.g., "rewrite this Python module in Rust") send local 30B-class models into incoherent loops. Cloud frontier models handle these; local doesn't reliably. Recognize the limit.
  6. Tree-sitter language gaps. Aider's repo map needs tree-sitter grammars for your language. Mainstream languages (Python, JS/TS, Go, Rust, Java, C++) work; obscure languages or DSLs degrade silently.

How Aider compares

Compared to Continue: Continue is an IDE plugin (VS Code / JetBrains) that runs inline in your editor. Aider runs in a terminal, separate from the editor. Continue is better for inline autocomplete + small targeted changes; Aider is better for multi-file refactors + git-flow integration. Different operator preferences; many use both.

Compared to OpenHands: OpenHands is a more autonomous agent — it executes commands, runs tests, browses the web. Aider is more conservative — it only edits files. OpenHands is right for "I want the agent to verify its own work"; Aider is right for "I want the agent to make edits I review before committing." Different scope.

Compared to Cursor (cloud-only): Cursor is a full IDE fork with great UI but no local-model support without proxying. Aider works with local models out of the box. Pick Cursor if cloud frontier models are acceptable; pick Aider if local-only is the requirement.

Compared to OpenCode: OpenCode is conceptually similar — terminal coding agent, local-model-friendly. Aider has more momentum + ecosystem (more YouTube tutorials, more battle-tested edge cases); OpenCode has different UX bets. Try both; most operators settle on one.

Deployment paths

Three operator-grade deployment shapes documented in the structured deployment-paths section below: terminal daily driver, IDE-side complement (Aider in terminal + VS Code in editor — the canonical pair), and air-gapped audit (Aider + local Ollama for code review on offline / private codebases).

Editorial verdict

Aider is the right answer for terminal-comfortable developers who want git-integrated AI edits. The 25k-star + accelerating community is real. The local-model story is solid IF you give it a 30B-class coder model — anything smaller produces unreliable diffs. For developers who prefer in-editor experience, Continue is the better pick; for fully autonomous "agent runs tests + iterates" workflows, OpenHands is closer to fit.

The one operator-grade reservation: Aider's local-model performance gap vs cloud is bigger than the local-AI hype admits. Cloud frontier models still produce noticeably better refactors than local 30B-class models. The right framing: use Aider with local models when privacy / offline / cost matter; use Aider with cloud APIs when refactor quality is the operative constraint.

Last reviewed 2026-05-08 by RunLocalAI editorial. Reproduce or correct: /submit/feedback.

Local stack compatibility
StatusRuntime / StackNotes
ExcellentOllama (local CUDA / Metal / ROCm)Most-common Aider local backend. Zero-config: OPENAI_API_BASE=http://localhost:11434/v1, model name = ollama tag. Works with any model in your Ollama library.
ExcellentLM Studio (server tab)Same OpenAI-compat protocol as Ollama. Default port 1234. Works as long as LM Studio app is open + Server tab is running.
Excellentllama-server (llama.cpp direct)Most control. Pin specific quants, sampler params, KV-cache settings. Default port 8080. The right backend for power users running specific local-model configurations.
GoodvLLM (production serving)Works for multi-user team setups serving Aider via OpenAI-compat. Requires CUDA + Linux + heavier ops. Pick vLLM only if multiple developers share one model server.
ExcellentOpenRouter (cloud, mixed)OpenAI-compat. Routes to any model in OpenRouter's catalog. Useful for mixed local + cloud workflows: develop with local 32B-class, escalate hard refactors to cloud frontier models via the same Aider session.
ExcellentCloud APIs (Claude / OpenAI / Gemini)Aider's native paths. Frontier-model quality is meaningfully better for hard refactors than local 30B-class. Cost-per-turn matters; local makes sense for high-volume / privacy-sensitive work.
GoodTabbyAPI (ExLlamaV2 backend)OpenAI-compat shim around ExLlamaV2. NVIDIA-only. EXL2 quantization is faster than GGUF on the same hardware for compatible models. Niche but workable.
GoodMLX-LM server (Apple Silicon)MLX-LM ships an OpenAI-compat server flag. Works with Aider on Apple Silicon. MLX is faster than llama.cpp Metal for some models; performance gap is meaningful at scale.
Real deployment paths

Terminal daily driver

moderate

The flagship workflow. pip install aider-chat, point it at your local model server, /add the files you want to edit, type natural-language requests. Aider produces edits, applies them, commits. The most common Aider deployment for individual developers.

Hardware: Any laptop / desktop · ≥30B-class local model recommended (Qwen 2.5 Coder 32B at Q4 on RTX 3090 / 4090 / Mac M-Max 64GB+) · Linux / macOS preferred

IDE-side complement (canonical pair)

moderate

Many Aider users keep their IDE open in one window for manual edits + review, and Aider in a terminal for AI-driven multi-file refactors. The split lets the IDE handle inline fixes while Aider handles broader changes that span 3+ files. Most-common power-user setup.

Hardware: Same as terminal daily driver · keep VS Code / JetBrains / Neovim open in another window · Aider in a separate terminal

Air-gapped audit / private codebase

involved

When you need AI code review / refactoring on a codebase that can't leave the network. Aider + local model on a Linux workstation, no cloud APIs configured. Slower than cloud frontier models but the privacy guarantee is real. Common in security review, financial-services code review, defense / regulated industry workflows.

Hardware: Workstation with ≥24GB VRAM (RTX 4090 / 3090) or Mac M-Max 64GB+ · Ollama / llama.cpp · no network egress required

Setup guidance

Install via pip: pip install aider-chat. Or with uv: uv tool install aider-chat. Requires Python 3.10+. Aider is a terminal-based AI pair programming tool that edits code in your local git repo. You need an LLM API key — OpenAI, Anthropic, or a local model via OpenAI-compatible endpoint. Configure: export OPENAI_API_KEY=sk-... or export ANTHROPIC_API_KEY=sk-ant-.... For local models: aider --model openai/<model-name> --openai-api-base http://localhost:11434/v1. Run in your git repo: cd /path/to/project && aider. Aider's prompt accepts natural language instructions like "add a login endpoint with JWT auth" and edits files directly. It maintains a map of your repo in context (using tree-sitter for code parsing) and auto-commits changes with sensible messages. Verify it works: aider --message "Explain what this project does". First-run setup: ~2 minutes after pip install. The repo map generation on first launch for a large project takes 5–30 seconds. Time-to-first-edit: ~10 seconds per request, depending on model latency and context size.

Workload fit

Best for: terminal-native developers who want AI pair programming with git-native workflows, tactical code edits (refactoring, adding features, fixing bugs) with natural language instructions, developers who want to use any LLM (cloud API or local) with the same tool, multi-file editing with automatic git commits, PR review and generation workflows, any workflow where "AI edits, I review git diffs" is the desired pattern. Not suited for: non-developers (Aider requires terminal and git literacy), IDE-first developers who prefer GUI integration (use Cline or Cursor), projects without git version control (Aider's core workflow depends on git), full-codebase generation from zero (use agentic tools like Claude Code for greenfield generation).

Alternatives

Use Aider when you want AI pair programming from the terminal with direct file editing and git integration — it's the most git-aware AI code assistant and works with any LLM (local or API). Switch to Claude Code when you want an agentic coding experience with tool use, multi-step reasoning, and broader file operations — Aider is a pair programmer, Claude Code is an autonomous agent. Use Cline for VS Code-integrated AI coding with full project awareness — Aider is terminal-native. Use Continue for inline VS Code/JetBrains completions and chat alongside your IDE workflow. Use Cursor for an all-in-one AI-native IDE. Aider's strength is the git workflow: every change is a commit, every request operates on the repo, and you can undo AI changes with git revert. It's the best choice for developers who want AI-on-the-CLI with their existing toolchain.

Troubleshooting + when to switch

Problem: API Error: model requires authentication. Fix: Set the correct API key env var for your provider: OPENAI_API_KEY, ANTHROPIC_API_KEY, DEEPSEEK_API_KEY, GOOGLE_API_KEY, etc. Enable API key rotation via --load filename.env if needed. For local models via Ollama, ensure ollama serve is running and the OpenAI API base URL is correct: --openai-api-base http://localhost:11434/v1. Problem: Repo map generation causes high token usage and slow first responses. Fix: Aider builds a tree-sitter parse map of the entire repo. For large repos, limit with --map-tokens 2048 (default 1024). Add files to .aiderignore to exclude generated or vendor code. Use --no-map to skip repo mapping entirely for simple, targeted edits. Problem: Aider edits the wrong file or makes unrelated changes. Fix: Be specific about file paths: "in src/auth.py, add..." Directories help: --file src/auth.py to focus Aider's editing scope. Use /read-only in the Aider prompt for files it should reference but not modify. Review diffs with /diff before accepting.

Stack & relationships

How Aider relates to other entries in the catalog — recommended pairings, alternatives, dependencies, and edges to avoid. Each edge carries a one-line operator note from our editorial team.

Aider ↔ ecosystem

Recommended stack

  • Commonly deployed with
    Ollama

    Aider works fluently against Ollama for single-user coding workflows. No MCP layer needed; Aider talks to git directly.

Alternatives

  • Competes with
    OpenHands

    OpenHands is full agent loop; Aider is git-integrated CLI editor. Different paradigms — Aider for surgical edits, OpenHands for autonomous tasks.

  • Alternative to
    OpenHands

    Different paradigms. Aider is git-integrated CLI editor; OpenHands is autonomous task agent. Pick Aider for surgical commits, OpenHands for autonomous work.

Pros

  • Open source
  • BYO LLM (local OK)
  • Git-aware diffs
  • Mature project

Cons

  • Terminal-only
  • Quality scales with the underlying model

Compatibility

Operating systems
macOS
Linux
Windows
GPU backends
n/a (uses cloud or local API)
LicenseOpen source · free (BYO API key)

Runtime health

Operator-grade signals on how actively Aider is being maintained, how fresh its measurements are, and what failure classes operators have flagged. Every label below is anchored to a real date or count — we never infer maintainer activity we can't show.

Release cadence

Derived from the most recent editorial signal on this row.

Active
Updated Jun 12, 2026

8 days since last refresh · source: lastUpdated

Benchmark freshness

How recent the editorial measurements on this runtime are.

0editorial benchmarks

No editorial benchmarks for this runtime yet.

Community reproduction

Submissions that match an editorial measurement on similar hardware.

0reproduced reports

No community reproductions on file yet.

Ecosystem stability

Editorial rating from RunLocalAI — qualitative, not measured.

4.6/5✓Editorial

Get Aider

Official site
https://aider.chat
GitHub
https://github.com/Aider-AI/aider

Frequently asked

Is Aider free?

Yes — Aider is free to use and open-source.

What operating systems does Aider support?

Aider supports macOS, Linux, Windows.

Does Aider need a GPU?

No — Aider runs on CPU; it does not require or use a GPU.
See something off?Report outdated·Suggest a correctionWe read every submission. Editorial review takes 1-7 days.

Reviewed by RunLocalAI Editorial. See our editorial policy for how we evaluate tools.

Related — keep moving

Compare hardware
  • RTX 3090 vs RTX 4090 →
Buyer guides
  • Best AI PC for developers →
  • Best GPU for Ollama (coding) →
When it doesn't work
  • Ollama running slow →
  • CUDA out of memory →
Recommended hardware
  • RTX 3090 (used 24 GB) →
Alternatives
AGiXTOpenCodeDevinKilo CodeOpenAI CodexClineDroid (Factory)Replit Agent 3
Before you buy

Verify Aider runs on your specific hardware before committing money.

Will it run on my hardware? →Custom hardware comparison →GPU recommender (4 questions) →