OpenCode vs Goose (2026): 228k-Star Terminal Agent vs Linux Foundation's Rust Platform

Goose vs OpenCode, checked November 20, 2026. OpenCode 2.3.2 (228,196 stars, MIT, TypeScript) is the most-starred open-source coding agent with 75+ providers. Goose v1.60.2 (56,825 stars, Apache-2.0, Rust) lives under the Linux Foundation's AAIF with a desktop app and ACP subscription reuse. Install commands, pricing, loop limits, verdict.

June 9, 2026 · 1 min read
OpenCode vs Goose (2026): 228k-Star Terminal Agent vs Linux Foundation's Rust Platform

You want an open-source coding agent that does not lock you into one model vendor. OpenCode and Goose both qualify. Both are free, both take any API key, both have a terminal CLI and a desktop app. OpenCode has 228,196 GitHub stars (MIT, TypeScript) and 75+ model providers. Goose has 56,825 stars (Apache-2.0, Rust), lives under the Linux Foundation, and handles more than code.

Short answer: Goose vs OpenCode
Pick OpenCode if you want a terminal coding agent. It has nearly 4x the stars, 75+ providers, Claude Code-style build and plan agents, and it pauses on repeated identical tool calls by default. Pick Goose if you want a desktop app, non-code tasks, Linux Foundation governance, or to run Claude Code or Codex under your existing subscription through ACP. Both cost nothing. You pay for the model.
228,196
OpenCode GitHub stars (MIT)
56,825
Goose GitHub stars (Apache-2.0)
2.3.2
OpenCode latest (Nov 18, 2026)
v1.60.2
Goose latest (Nov 20, 2026)

Summary: Goose vs OpenCode at a Glance

Head-to-head (November 2026)
DimensionOpenCodeGoose
GitHub stars228,19656,825
Forks30,9946,633
Latest release2.3.2 (Nov 18, 2026); V1 v1.19.6 (Nov 17, 2026)v1.60.2 (Nov 20, 2026)
LicenseMITApache-2.0
Repoanomalyco/opencodeaaif-goose/goose
Governanceanomalyco orgLinux Foundation AAIF
SurfacesTerminal TUI + desktop app (beta)Desktop app + CLI + API
Model providers75+ via AI SDK15+ providers + 4 ACP agents
Built inTypeScriptRust
ScopeCoding agentCode + research + writing + automation
PriceFree, BYO key (optional Go $10/mo)Free, BYO key

Latest Releases (November 2026)

Both projects ship weekly. OpenCode released 2.3.0 on November 13 and 2.3.2 on November 18. Goose released v1.59.0 on November 10 and v1.60.2 on November 20.

OpenCode 2 is now the default release line
OpenCode has two release lines. V2 is npm @opencode/cli and now leads the GitHub Releases page at 2.3.2. It published 2.0.0 on September 11. V1 is npm opencode-ai, currently v1.19.6, and its desktop app downloads OpenCode 2 in the background and installs it when you choose. V2 has breaking changes. V1 plugins do not run on the new plugin API. The server API and client contracts changed. TUI config moves from layered tui.json to one global cli.json, migrated automatically. V2 reads your V1 opencode.json as-is. Both lines install as opencode, and the V2 installer replaces the V1 binary. See the V1 to V2 migration guide.
What changed in the last three releases
ReleaseNotable changes
OpenCode 2.3.2 (Nov 18)GPT-6.2 system prompts now go out as a leading developer message on every Responses route, so they are cached from the second step instead of re-billed as uncached input.
OpenCode 2.3.1 (Nov 18)A shell command that hits its timeout moves to the background instead of being killed, so long builds and test runs finish and report back.
OpenCode 2.3.0 (Nov 13)Subagents run in the background by default and report back when idle. The TUI collapses each run of tool calls into one summary line.
Goose v1.60.2 (Nov 20)Gemini 4 Neon added to the model catalog. Thinking levels, including xhigh, are now sent to Gemini 4 and later.
Goose v1.60.1 (Nov 18)Compaction drops the analysis scratchpad that Claude models refuse.
Goose v1.60.0 (Nov 17)Skills move from an extension to a built-in SkillOperation. Executable slash commands and bang commands added.

Goose v1.51.0 sends a session ID header for OpenCode Go. That means Goose can use OpenCode's $10/month Go plan as its model provider. Goose v1.48.0 (August 27) also added OpenCode Zen as a provider. The two tools are not strictly rivals.

Other dated changes since July
DateChange
Nov 17, 2026OpenCode V1 v1.19.6 desktop offers the in-place upgrade to OpenCode 2, keeping sessions, projects, and settings.
Sep 22, 2026OpenCode V2 2.0.14 on npm @opencode/cli.
Sep 11, 2026OpenCode V2 2.0.0 published, with a new plugin API and a new cli.json TUI config.
Aug 24, 2026OpenCode v1.18.22 removed the OpenCode Go first-month discount.
Jul 23, 2026Goose v1.44.0 security fix GHSA-r5pp-p5r8-466r. goose review could run arbitrary commands through a repo's git core.fsmonitor setting. Update to v1.44.0 or later before running goose review on untrusted repos.

Stars, License, and Governance

OpenCode is the most-starred open-source coding agent on GitHub at 228,196 stars, ahead of openai/codex (135,983) and gemini-cli (108,953). The repo is anomalyco/opencode. The old sst/opencode URL redirects there. It ships under MIT.

Goose has 56,825 stars under Apache-2.0. The Linux Foundation announced the Agentic AI Foundation on December 9, 2025, with three founding projects: Anthropic's MCP, OpenAI's AGENTS.md, and Block's Goose. In April 2026 the repo moved from block/goose to aaif-goose/goose and the docs moved to goose-docs.ai. If you have an old clone, run git remote set-url origin git@github.com:aaif-goose/goose.git. The repo has a public GOVERNANCE.md and a guide for building custom distributions with preset providers and extensions.

Stars across open-source coding agents (Nov 20, 2026)
OpenCode 228,196. Codex 135,983. Gemini CLI 108,953. Cline 71,791. Goose 56,825. Aider 50,199.

Install Commands

One-line install
MethodOpenCodeGoose
Shell scriptcurl -fsSL https://opencode.ai/install | bashcurl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash
Homebrew (CLI)brew install anomalyco/tap/opencodebrew install block-goose-cli
Homebrew (desktop)brew install --cask opencode-desktopbrew install --cask block-goose
npmnpm i -g opencode-ai@latestACP client packages only
OpenCode V2curl -fsSL https://opencode.ai/v2/install | bash, npm i -g @opencode/cli, or brew install anomalyco/tap/opencode-v2n/a
Windowsscoop install opencode / choco install opencodePowerShell download_cli.ps1, or desktop zip
OtherBun, pnpm, Yarn, pacman, paru, mise, nixLinux DEB, RPM, Flatpak desktop builds

Two gotchas. The Goose Homebrew formula is block-goose-cli, not goose. For CI, pipe the Goose script through CONFIGURE=false bash to skip the interactive setup. OpenCode's README recommends the anomalyco/tap formula over the official brew install opencode, which it says updates less often. The V2 installer replaces the V1 opencode binary, and V2 has no Windows package manager builds.

Model Providers

OpenCode supports 75+ LLM providers through the AI SDK and the Models.dev catalog, plus local models via Ollama, LM Studio, and llama.cpp. Custom OpenAI-compatible providers are configured in JSON:

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

Goose works with 15+ providers (Anthropic, OpenAI, Google, Ollama, OpenRouter, Azure, Bedrock, and more) and connects to 70+ extensions over MCP. It also has four ACP providers that wrap another agent instead of a raw model: Claude ACP, Codex ACP, Amp ACP, and Pi ACP. OpenCode has the wider model menu. Goose has the broader extension ecosystem and a general-purpose scope.

Pricing: Free Tools, Optional OpenCode Go and Zen

Both agents are free. The cost is the model. OpenCode sells two optional model plans. Goose sells nothing.

What you can pay for
PlanOpenCodeGoose
AgentFree (MIT)Free (Apache-2.0)
SubscriptionOpenCode Go: $10/month, 30 open coding modelsNone
Pay as you goOpenCode Zen: prepaid credits, per-request billingNone
Free modelsBig Pickle and several free beta models on ZenLocal models via Ollama

OpenCode Go caps usage per model in dollars. Most models get $60 a month. Heavier ones such as GLM-5.3, Kimi K3, and DeepSeek V4 Pro get $15. v1.18.22 removed the first-month discount on August 24, 2026, so Go is a flat $10 from month one. Limits apply in three windows: 20% of the monthly budget per 5 hours, 50% per week, 100% per month. Once you hit a limit you can fall back to your Zen balance. Zen passes card fees through at cost (4.4% + $0.30 per transaction) and auto-reloads $20 when the balance drops below $5 unless you turn it off. See the Go docs and Zen docs.

Subscription Reuse

A common question is whether you can point either tool at a Claude Pro or Max plan instead of paying per token. With OpenCode, no. Its provider docs say plugins exist for Claude Pro/Max and that "Anthropic explicitly prohibits this." Goose takes a different route. Its Claude ACP provider does not call the Claude API with your subscription token. It runs Claude Code itself through the @agentclientprotocol/claude-agent-acp adapter and passes Goose's extensions to it as MCP servers.

Which subscriptions you can reuse
SubscriptionOpenCodeGoose
Claude Pro / MaxProhibited by AnthropicVia Claude ACP (runs Claude Code)
ChatGPT Plus / ProUsable as backendVia Codex ACP
GitHub CopilotUsable as backendNot documented
GitLab DuoUsable as backendNot documented
Amp / PiNot documentedVia Amp ACP / Pi ACP
OpenCode GoNativeSupported provider

Set it with GOOSE_PROVIDER=claude-acp (or codex-acp, amp-acp, pi-acp). One limit: ACP sessions cannot be resumed or forked yet, so goose session resume and goose session fork do not work with them. The Goose README also mentions Gemini subscriptions via ACP, but the ACP provider docs list only the four above.

Runaway Loops and Turn Limits

The failure people report most with BYO-key agents is a loop that burns budget. A Hacker News user tried Goose on a small feature and said it ran what looked like an infinite loop that used three-quarters of a monthly Poe subscription on one prompt. The defaults explain why that can happen.

Loop and approval defaults
SettingOpenCodeGoose
Max turns without user inputsteps (unset = no cap)GOOSE_MAX_TURNS = 1000
Subagent turn capPer-agent stepsGOOSE_SUBAGENT_MAX_TURNS = 25
Repeated identical callsdoom_loop = ask after 3 repeatsNo equivalent documented
Default approval modeMost tools allowGOOSE_MODE = auto

OpenCode pauses and asks when the same tool call repeats 3 times with identical input. That is the doom_loop permission, and it defaults to ask. Goose runs up to 1,000 turns without user input in auto mode. If you run Goose on a metered plan, set GOOSE_MAX_TURNS to something like 50 and GOOSE_MODE=smart_approve. In OpenCode, set steps on an agent to cap its iterations. The legacy maxSteps key is deprecated.

Where OpenCode Wins

Largest community

228,196 stars and 30,994 forks. Three 2.x releases between November 13 and November 18, 2026.

75+ providers

AI SDK plus Models.dev, OpenAI-compatible JSON config, local via Ollama / LM Studio / llama.cpp.

Claude Code-style agents

Build and plan primary agents on Tab, plus general, explore, and scout subagents. doom_loop guard on by default.

A Hacker News user who tried Goose and Aider before settling on OpenCode gave the reason plainly: it worked like Claude Code, their main agent, while serving a local model through Ollama.

Where Goose Wins

Mature desktop app

Native GUI on macOS, Linux, and Windows alongside the CLI and API. OpenCode's desktop app is still beta.

Foundation governance

Linux Foundation AAIF, next to MCP and AGENTS.md. Public GOVERNANCE.md and custom-distribution support.

Beyond code, in Rust

Built for research, writing, automation, and data analysis, with 70+ MCP extensions and a Rust core.

Which Model to Run Inside Each

Both agents are BYO-model, so the model sets your quality and cost. A long agent session sends the same growing context on every turn, so input price dominates the bill. Loops multiply it.

Morph serves open coding models on custom inference kernels through an OpenAI-compatible API. Add it to OpenCode as a custom @ai-sdk/openai-compatible provider, or to Goose as a custom OpenAI-compatible provider.

Morph models for an OpenCode or Goose backend
ModelPrice (input / output per 1M)Context
morph-dsv41flash (DeepSeek V4.1 Flash)$0.12 / $0.81M
morph-glm53flash (GLM-5.3-Flash)$0.2 / $0.71M

See Morph Open Source Models and pricing.

Decision Framework

Pick by your priority
Your priorityBest choiceWhy
Largest community / most starsOpenCode228,196 stars, weekly releases.
Widest model menuOpenCode75+ providers via AI SDK and Models.dev.
Loop protection out of the boxOpenCodedoom_loop asks after 3 identical calls.
Cheap flat-rate open modelsOpenCodeGo plan at $10/month (Goose can use it too).
Desktop GUIGooseStable native app on macOS, Linux, Windows.
Rust codebaseGooseRust core; OpenCode is TypeScript.
Foundation governanceGooseLinux Foundation AAIF with public GOVERNANCE.md.
Non-code tasks (research, writing)GooseGeneral-purpose by design.
Use a Claude or ChatGPT subscriptionGooseClaude ACP and Codex ACP wrap the vendor's own agent.
Reuse Copilot or GitLab DuoOpenCodeDocumented as usable backends.

Frequently Asked Questions

Is OpenCode or Goose better?

OpenCode for a terminal coding agent: 228,196 stars, 75+ providers, and a doom_loop guard on by default. Goose for a desktop app, non-code tasks, Linux Foundation governance, and reusing a Claude Code or ChatGPT subscription through ACP.

What is Goose?

An open-source AI agent built by Block and donated to the Linux Foundation's Agentic AI Foundation, now at aaif-goose/goose. Written in Rust. Ships as a desktop app, CLI, and API, works with 15+ providers, and connects to 70+ MCP extensions. Latest release v1.60.2 (November 20, 2026).

How many GitHub stars does OpenCode have?

228,196 stars (MIT) as of November 20, 2026, ahead of Codex (135,983) and Gemini CLI (108,953).

Are they free?

Yes. OpenCode is MIT, Goose is Apache-2.0. You pay only for the model. OpenCode optionally sells Go ($10/month) and Zen (pay-as-you-go credits).

Can I use my Claude subscription?

Not with OpenCode. Its docs say Anthropic explicitly prohibits Claude Pro/Max plugins. Goose's Claude ACP provider runs Claude Code itself under your subscription, with Goose extensions passed through as MCP servers.

How do I install OpenCode and Goose?

OpenCode: curl -fsSL https://opencode.ai/install | bash or brew install anomalyco/tap/opencode. Goose CLI: the download_cli.sh script from aaif-goose/goose releases, or brew install block-goose-cli. OpenCode V2: npm i -g @opencode/cli.

What is OpenCode V2?

The current release line, on npm as @opencode/cli and on GitHub Releases. 2.0.0 shipped September 11, 2026 and the latest is 2.3.2 (November 18, 2026). It has a new plugin API, so V1 plugins do not run, and it moves TUI config to one global cli.json. It reads V1 opencode.json as-is. V1 is at v1.19.6 and its desktop app offers the upgrade.

Is Goose written in Rust? Is there a Rust alternative to OpenCode?

Goose is written in Rust. OpenCode is TypeScript. For a Rust-built open-source alternative to OpenCode with a terminal CLI, Goose is the closest match.

Does Goose run in the terminal?

Yes. The Goose CLI runs in any terminal. The default GOOSE_MODE is auto. Set approve or smart_approve to confirm tool calls. v1.51.0 added an opt-in terminal bell when a turn finishes or needs approval.

Related comparisons

WarpGrep Boosts Any MCP Agent

WarpGrep is #1 on SWE-Bench Pro for repo search. It runs as an MCP server inside OpenCode, Goose, and any tool that supports MCP. Better search means better context means better code.

⌂ 换网址