OpenCode vs Aider (2026): 209k Stars vs 49k, MIT vs Apache, and Which BYOK Agent to Pick

OpenCode (209,405 stars, MIT) ships V1 1.18.32 and the new V2 2.0.14. Aider (49,118 stars, Apache-2.0) is dormant: no release since 0.86.2 in February 2026, no commits since May 22. Install, models, git, polyglot scores.

June 9, 2026 ยท 1 min read

OpenCode vs Aider, short answer: both are free, open-source terminal agents that run on your own API key. OpenCode (209,405 stars, MIT) is the active one. It shipped V1 v1.18.32 on September 21, 2026 and V2 2.0.14 a day later, and it bundles Build/Plan agents, LSP, and 75+ providers. Aider (49,118 stars, Apache-2.0) auto-commits every edit to git. It is dormant: its last release was 0.86.2 in February 2026 and its last commit was May 22, 2026. Pick OpenCode by default. Pick Aider for commit-per-edit discipline.

209,405
OpenCode GitHub stars (MIT)
49,118
Aider GitHub stars (Apache-2.0)
2.0.14
OpenCode V2, Sep 22 2026 (V1: v1.18.32)
0.86.2
Aider latest on PyPI, Feb 12 2026

Summary

Head-to-head (September 2026)
DimensionOpenCodeAider
GitHub stars209,40549,118
LicenseMITApache-2.0
Latest releaseV1 v1.18.32 (Sep 21, 2026); V2 2.0.14 (Sep 22, 2026)0.86.2 on PyPI (Feb 12, 2026)
StatusActive, releases every few daysDormant, no commits since May 22, 2026
Last commitDaily (Sep 22, 2026)May 22, 2026
Form factorClient-server TUI, desktop app, IDE extensionLine-based terminal chat
AgentsBuild, Plan + General, Explore, Scout subagentsCode, ask, architect, help chat modes
Model providers75+ via Models.devMost providers, per-run flags
Git modelGit-backed /undo and /redo, no auto-commitAuto-commit every edit
Context control@ file mentions, LSP, /compactExplicit /add and /drop, repo map
Best forLonger autonomous sessionsTight edit-and-commit loops

Both keep your code and keys local and avoid lock-in. OpenCode is the most-starred open-source coding agent, ahead of openai/codex (125,963) and gemini-cli (107,130). The choice comes down to temperament. Aider keeps a lean, git-first loop. OpenCode gives you a bigger agent surface and a larger provider menu.

What Changed Since June 2026

Dated changes (checked Sep 22, 2026)
DateToolChange
Sep 22, 2026OpenCodeV2 2.0.14 on npm @opencode/cli.
Sep 21, 2026OpenCodeV1 v1.18.32. Grok 4.7 added to Zen and Go, DeepSeek V4.1 Flash added to Zen.
Sep 11, 2026OpenCodeV2 2.0.0 published. New plugin API and server API, cli.json replaces tui.json. V1 plugins do not run.
Aug 24, 2026OpenCodev1.18.22 removed the OpenCode Go first-month discount. Go is $10/month.
Aug 20, 2026OpenCodev1.18.19. Web search enabled for the Go provider. Codex rate limits match ChatGPT subscription limits.
Jul 14, 2026OpenCodev1.18.0 finished the desktop v2 migration, with a switch back to the old layout.
Jun to Sep 2026AiderNo releases and no commits. Last commit May 22, 2026.

Stars, License, and Maintenance Cadence

OpenCode lives at anomalyco/opencode (the old sst/opencode URL redirects) with 209,405 stars, 27,620 forks, and an MIT license. Its homepage claims 950 contributors and 16M monthly developers. Releases land every few days: v1.18.30 on September 9, v1.18.31 on September 14, and v1.18.32 on September 21, 2026. A second line, OpenCode V2, ships on npm as @opencode/cli. It reached 2.0.14 on September 22, 2026. V2 tags do not show up as GitHub Releases, so the Releases page still reads 1.18.x.

Aider lives at Aider-AI/aider with 49,118 stars under Apache-2.0. It is dormant. Nobody has committed to main since May 22, 2026, and there were no releases or commits from June through September 2026:

Aider release status (checked Sep 22, 2026)
SignalValueSource
Last tagged GitHub releasev0.86.0, Aug 9, 2025GitHub releases
Latest PyPI versionaider-chat 0.86.2, Feb 12, 2026pypi.org/project/aider-chat
Last commit to mainMay 22, 2026 (Anthropic model list update)GitHub commits
Last maintainer commitApr 25, 2026 (Paul Gauthier, gpt-5.5 model settings)GitHub commits
Unreleased on mainClaude 4.5 to 4.7 aliases, GPT-5.1 to 5.4 settings, Gemini 3 preview, /ok shortcutaider.chat/HISTORY.html
Open issues / PRs1,381 issues, 503 PRsGitHub
Last polyglot leaderboard resultOct 3, 2025 (DeepSeek-V3.2)polyglot_leaderboard.yml

Aider still runs, and it connects to any OpenAI-compatible endpoint with the openai/ model prefix. The homepage still recommends Claude 3.7 Sonnet, DeepSeek R1, o1, o3-mini, and GPT-4o. Treat that list as history and pick the model yourself. If you want the unreleased main-branch model settings, install from git instead of PyPI.

License difference that matters

OpenCode is MIT, Aider is Apache-2.0. Both are permissive and fine for commercial use. Apache-2.0 adds an explicit patent grant. MIT is shorter. Neither restricts how you use the tool.

Install Commands

Install one line
ToolPrimary installAlternatives
OpenCode V1curl -fsSL https://opencode.ai/install | bashnpm install -g opencode-ai; brew install anomalyco/tap/opencode
OpenCode V2curl -fsSL https://opencode.ai/v2/install | bashnpm i -g @opencode/cli; brew install anomalyco/tap/opencode-v2; paru -S opencode-beta
Aiderpython -m pip install aider-install && aider-installcurl -LsSf https://aider.chat/install.sh | sh; uv tool install aider-chat; pipx

OpenCode also installs via Bun, pnpm, Yarn, pacman/paru, Chocolatey, Scoop, Mise, and Docker (ghcr.io/anomalyco/opencode). On Windows, OpenCode's docs recommend WSL over a native install, and the Bun install path does not work there. V1 and V2 both install as the opencode command and do not sit side by side. The V2 curl installer replaces the V1 binary. V2 has breaking changes: V1 plugins do not run on the new plugin API, the server API changed, and TUI settings move to one global cli.json (migrated automatically). V2 reads your V1 opencode.json as-is. Windows package managers do not support V2 yet. Aider on Windows uses the PowerShell one-liner powershell -ExecutionPolicy ByPass -c "irm https://aider.chat/install.ps1 | iex".

Models and Configuration

Both are bring-your-own-key and model-agnostic. The difference is breadth and how you wire models in.

OpenCode supports 75+ LLM providers through the Models.dev catalog, plus local models via Ollama, LM Studio, and llama.cpp. You can also log in with GitHub Copilot or a ChatGPT Plus/Pro account. Two optional paid plans sit on top. OpenCode Zen is a curated pay-as-you-go model list the team benchmarks for agentic coding (the V2 docs call it Console). OpenCode Go costs $10/month and covers open models like GLM-5.3, Kimi K3, DeepSeek V4, and Qwen3.8, with a monthly dollar limit per model, a 5-hour cap of 20% of that limit, and a weekly cap of 50%. Any OpenAI-compatible endpoint plugs in via JSON:

{"provider":{"myprovider":{
  "npm":"@ai-sdk/openai-compatible",
  "options":{"baseURL":"https://api.myprovider.com/v1"},
  "models":{ ... }
}}}

OpenCode ships two primary agents. Build has every tool enabled. Plan sets edit and bash to ask, so it can read and propose but needs approval to change anything. Press Tab to cycle between them. Three subagents handle side work: General (multi-step tasks), Explore (read-only codebase search), and Scout (read-only docs and dependency research). Each agent can run a different model, and each permission key takes allow, ask, or deny. In V2's optional native config, permission becomes an ordered permissions array, bash is renamed shell, task becomes subagent, and write/patch fold into edit.

Aider connects per run with flags. You pass the model and key on the command line and switch by changing the flags:

aider --model sonnet --api-key anthropic=<key>
aider --model deepseek --api-key deepseek=<key>

Aider supports most providers and local models via Ollama or any OpenAI-compatible API. Its architect mode splits work between a planning model and an editing model. On the polyglot benchmark, o3 (high) as architect with gpt-4.1 as editor scored 78.2% for $17.55.

Cost is just the model

With either tool you pay the provider directly at API rates, no agent subscription. Route expensive tasks to a strong model and cheap tasks to a cheaper one. See LLM cost optimization.

Git Behavior: The Core Design Split

Aider treats git as the interface. Every edit lands as a commit with a Conventional Commits message written by the --weak-model. If a file has uncommitted changes, Aider commits those first so its edit stays separate. /undo reverts the last Aider commit. Turn the behavior off with --no-auto-commits and --no-dirty-commits. For attribution, --attribute-co-authored-by adds a Co-authored-by trailer instead of rewriting the author and committer fields.

OpenCode does not commit for you. Its /undo (ctrl+x u) removes the last message, every response after it, and the file changes. /redo (ctrl+x r) brings them back. Both use git under the hood, so the project must be a git repository or undo will not work. You write the commits yourself or ask the agent to.

Context control is the other split

Aider only edits files you /add to the chat and uses a tree-sitter repo map for the rest. One user in the March 2026 Hacker News OpenCode thread (1,274 points) asked whether OpenCode could match that. The reply: use @ file mentions, the same pattern as Claude Code and Codex. Another commenter said newer models rarely need manual context curation at all.

Aider Polyglot Leaderboard: Which Model to Run

Aider's polyglot benchmark is 225 exercises across C++, Go, Java, JavaScript, Python, and Rust. It measures whether a model can edit code correctly in Aider's formats, and it is a fair proxy for any BYOK agent. The leaderboard is stale. The last results were added October 3, 2025 (DeepSeek-V3.2), and the page footer reads November 20, 2025. No 2026 model has been tested, so GPT-6, Fable 5.1, GLM-5.3, and DeepSeek V4 are missing.

Aider polyglot leaderboard, top results (last result added Oct 3, 2025)
ModelCorrectCostEdit format
gpt-5 (high)88.0%$29.08diff
gpt-5 (medium)86.7%$17.69diff
o3-pro (high)84.9%$146.32diff
Gemini 2.5 Pro (32k think)83.1%$49.88diff-fenced
gpt-5 (low)81.3%$10.37diff
Grok-4 (high)79.6%$59.62diff
o3 (high) + gpt-4.178.2%$17.55architect
DeepSeek-V3.2 (Reasoner)74.2%$1.30diff

The cost column is the useful part. DeepSeek-V3.2 Reasoner scored 74.2% for $1.30 across all 225 tasks. GPT-5 high scored 88.0% for $29.08, 22x the cost for 13.8 more points. o3-pro cost $146.32 and scored lower than GPT-5 medium. Open-weight models close most of the gap at a fraction of the spend, and the same math applies inside OpenCode.

Where OpenCode Wins

Active releases

v1.18.30, .31, and .32 shipped in 13 days of September 2026, and V2 went from 2.0.0 to 2.0.14 in 11 days. Aider's last PyPI release was February.

75+ providers

Models.dev catalog, Ollama, LM Studio, llama.cpp, Copilot and ChatGPT login, and optional OpenCode Zen.

Agents and sessions

Build and Plan agents, three subagents, parallel sessions, share links, LSP, desktop app.

Where Aider Wins

Clean git history

Every edit is a commit with a Conventional Commits message. History is your undo stack and audit trail.

Explicit context

/add and /drop decide exactly which files the model can edit. The repo map covers the rest.

Mature and proven

6.8M PyPI installs and 15B tokens a week, per aider.chat. Works in any terminal, no TUI to learn.

Aider vs OpenCode vs Pi vs Claude Code

Searches for this comparison often add Pi or Claude Code. Here is where they sit, all checked on GitHub on September 22, 2026.

Terminal coding agents side by side
AgentStarsLicenseLatest activityShape
OpenCode209,405MITv1.18.32 Sep 21; V2 2.0.14 Sep 22, 2026Batteries-included TUI with agents and LSP
Claude Code147,649No open-source licensePushed Sep 22, 2026Anthropic's agent, Claude models
Pi108,525MITv0.87.1, Sep 22, 2026Minimal core you extend with skills and extensions
Cline69,074Apache-2.0v4.1.20 and CLI v3.0.64, Sep 22, 2026VS Code agent, CLI, and SDK
Aider49,118Apache-2.00.86.2, Feb 12, 2026 (dormant)Git-native pair programmer

Pi moved from badlogic/pi-mono to earendil-works/pi and installs with npm install -g --ignore-scripts @earendil-works/pi-coding-agent (Node 22.19+) or curl -fsSL https://pi.dev/install.sh | sh. It is closer to Aider in spirit, small and scriptable, but it ships weekly. Cline 4.0 (June 26, 2026) moved the extension onto the shared Cline SDK runtime and turned command auto-approval off by default. See OpenCode vs Claude Code for that matchup in depth.

Running DeepSeek and Open Models With Either Tool

Both tools are bring-your-own-endpoint, so the model backend is your choice and it sets the quality ceiling. The polyglot numbers above show why DeepSeek is the default budget pick. For open-weight models, the provider matters as much as the model.

Many serverless providers quantize to fp8 to cut cost, which can degrade output. Morph Open Source Models serve DeepSeek with 16-bit (bf16) activations, no fp8 or int8 quantization, so responses match the reference weights. Morph also runs codegen-tuned speculative decoding and custom inference kernels for coding-agent traffic.

DeepSeek on Morph
ModelInput / 1M tokensOutput / 1M tokensActivations
morph-dsv41flash (DeepSeek V4.1 Flash)$0.12$0.816-bit (bf16), no quantization
morph-dsv4flash (DeepSeek V4 Flash)$0.141953125$0.39962516-bit (bf16), no quantization

Point OpenCode at it as an OpenAI-compatible provider, or pass it to Aider by setting OPENAI_API_BASE and OPENAI_API_KEY and running aider --model openai/morph-dsv41flash. See pricing and the model list.

Decision Framework

Pick by how you work
Your situationBest choiceWhy
Want clean git historyAiderAuto-commits every edit with a generated message.
Want the broadest model menuOpenCode75+ providers via Models.dev, plus Copilot and ChatGPT login.
Want releases that track new modelsOpenCodeShips every few days. Aider's last release was February 2026.
Prefer minimal toolingAider or PiAider for git discipline, Pi for a small extensible core.
Longer autonomous runsOpenCodeBuild/Plan agents, subagents, parallel sessions.
Want the largest communityOpenCode209k stars, most-starred open-source coding agent.
Want to hand-pick context filesAider/add and /drop, no file edits outside the chat set.

Frequently Asked Questions

Is OpenCode or Aider better in 2026?

For most people starting today, OpenCode. It has 209,405 GitHub stars (MIT), 75+ model providers, Build and Plan agents, subagents, LSP, and it ships a release every few days (V1 v1.18.32 on September 21, 2026, V2 2.0.14 on September 22, 2026). Aider (49,118 stars, Apache-2.0) is still the cleanest git-native pair programmer and auto-commits every edit. It is dormant: its last PyPI release was 0.86.2 on February 12, 2026 and nobody has committed to main since May 22, 2026. Pick Aider only if you want explicit /add context control and a commit per change and can live without new model support.

How many GitHub stars do OpenCode and Aider have?

As of September 22, 2026: OpenCode (anomalyco/opencode, formerly sst/opencode) has 209,405 stars under MIT, ahead of openai/codex (125,963) and google-gemini/gemini-cli (107,130). Aider (Aider-AI/aider) has 49,118 stars under Apache-2.0.

Is Aider still maintained?

No. Aider is effectively dormant. The last tagged GitHub release is v0.86.0 (August 9, 2025). PyPI's latest is aider-chat 0.86.2, uploaded February 12, 2026. The last commit to main was May 22, 2026, which expanded the Anthropic model list, and there have been no commits or releases since. About 503 pull requests sit open. The polyglot leaderboard has not added a result since October 2025. Aider's HISTORY page lists unreleased main-branch changes such as Claude 4.5 to 4.7 aliases, GPT-5.1 to 5.4 settings, and Gemini 3 preview. It still runs and connects to any model you pass with --model, including any OpenAI-compatible endpoint.

What is the latest version of Aider and OpenCode?

Aider: aider-chat 0.86.2 on PyPI (February 12, 2026). OpenCode has two lines. V1 is v1.18.32 on GitHub and npm opencode-ai (September 21, 2026), which fixed Bedrock image attachments and Together AI streaming usage reporting and added Grok 4.7 to Zen and Go. V2 is 2.0.14 on npm @opencode/cli (September 22, 2026). V2 first shipped September 11, 2026 and does not appear on the GitHub Releases page.

What license do Aider and OpenCode use?

Aider is Apache-2.0 (GitHub repo Aider-AI/aider). OpenCode is MIT. Both are permissive and fine for commercial use. Apache-2.0 adds an explicit patent grant.

How do I install OpenCode and Aider?

OpenCode V1: curl -fsSL https://opencode.ai/install | bash, or npm install -g opencode-ai, or brew install anomalyco/tap/opencode. OpenCode V2: curl -fsSL https://opencode.ai/v2/install | bash, or npm i -g @opencode/cli, or brew install anomalyco/tap/opencode-v2. Both use the opencode command, and the V2 installer replaces the V1 binary. Aider: python -m pip install aider-install && aider-install, or curl -LsSf https://aider.chat/install.sh | sh. Both run in the terminal and you pay only for the model API.

How many models do OpenCode and Aider support?

OpenCode supports 75+ LLM providers through Models.dev, local models via Ollama, LM Studio, and llama.cpp, any OpenAI-compatible endpoint via JSON config, and GitHub Copilot or ChatGPT Plus/Pro login. Aider connects per run with flags like aider --model sonnet --api-key anthropic=KEY and supports most providers plus local models, but its homepage still recommends Claude 3.7 Sonnet, DeepSeek R1, and o3-mini.

Aider vs OpenCode vs Pi: which one?

Pi (earendil-works/pi, formerly badlogic/pi-mono, 108,525 stars, MIT, v0.87.1 on September 22, 2026) is a minimal, extensible terminal agent you shape with prompt templates, skills, and extensions. OpenCode is the batteries-included option with agents, LSP, and a desktop app. Aider is the git-first pair programmer. Pick Pi for a small core you extend, OpenCode for the most built in, Aider for commit-per-edit discipline.

Does Aider have a TUI?

No. Aider is a line-based chat in your terminal with slash commands like /add, /drop, /undo, /ask, and /architect. OpenCode is a full-screen TUI with sessions, keybinds (ctrl+x u to undo, Tab to switch agents), and a desktop app and IDE extension.

Are OpenCode and Aider free?

Yes. OpenCode is MIT and Aider is Apache-2.0. You pay only for the model API you connect. OpenCode also sells two optional model plans: Zen, a curated pay-as-you-go model list (called Console in the V2 docs), and Go, a $10/month subscription for open models with per-model monthly limits.

Related comparisons

WarpGrep Boosts Any Open-Source Agent

WarpGrep is #1 on SWE-bench Pro for code search. It runs as an MCP server inside OpenCode, Pi, and any tool that supports MCP. Better search means better context and better code. $0.80 per 100K tokens.