Goose vs OpenCode: Which Open Agent Should You Run?

Goose vs OpenCode isn't an open-versus-closed decision. Both are open source, both let you bring your own model, and both start out allowed to change your files without asking. What separates them is the job. Pick OpenCode if the work is code and you want fine-grained rules, file undo and a phone app. Pick goose if you want repeatable jobs that go beyond code, or a local model with no separate server to run.
goose describes itself as a general-purpose agent for coding, research, writing, automation and data analysis. OpenCode describes itself as an agent that helps you write and run code with any AI model.
Three differences tend to settle it:
- Reusable work. goose packages a whole job as a recipe you can parameterize, validate and schedule. OpenCode splits the same idea across commands, agents and skills.
- Control. OpenCode takes rules per command, path or tool. goose sets an approval mode, then a level per tool.
- Delegation. goose turns subagents off when you use an approval mode. OpenCode keeps them, but each one runs under its own rules.
Quick Comparison
| goose | OpenCode (V2) | |
|---|---|---|
| Built for | Coding plus research, writing, automation, data | Coding |
| Maintained by | Agentic AI Foundation project, Linux Foundation | Anomaly |
| License | Apache-2.0 | MIT |
| Where you use it | Desktop app and CLI | Terminal, desktop app, web UI, iPhone and Android apps |
| Models | 85+ providers, per its README | 200+ providers, per its homepage |
| Local models | Built in, plus Ollama, LM Studio and others | Ollama, LM Studio and vLLM found automatically |
| Subscription sign-in | ChatGPT Plus/Pro, GitHub Copilot, some agents over ACP | ChatGPT Plus/Pro, GitHub Copilot, Claude via Claude Code |
| Starting permissions | Autonomous | Allow everything, ask before reading .env files |
| Saved workflows | Recipes, with parameters and schedules | Commands, agents and skills |
| File undo | Docs point to Git | /undo and /redo inside a Git repository |
Scope and Surfaces: General Agent or Coding Agent
goose ships with a Developer extension switched on, so it codes out of the box. Its other built-in extensions show the wider ambition: Computer Controller for web scraping and automation, Auto Visualiser for charts, Memory for your preferences. The desktop app runs on macOS, Linux and Windows.
OpenCode's tools stay close to a repository: read, edit, patch, search, shell and web fetch. It spreads further across devices instead. The product page lists a desktop app for the same three systems, a terminal interface, iPhone and Android apps, and an SDK.
Both can leave the agent on one machine while you work from another:
- goose has
goose serve, which the desktop app connects to with a shared secret. - OpenCode has a web UI and pairing. Run
opencode pairfor a link or QR code that signs in a browser or the app. Adding--remoteworks from anywhere, and it warns that this exposes your server to the internet before it goes ahead.
For editors, it's a draw. Both run as Agent Client Protocol servers, and both projects document a Zed setup (goose, OpenCode).
Models, Local Inference and Plans You Already Pay For
Both cover the big providers and accept custom endpoints. Three smaller points matter more.
Local models. goose can run a model in-process through llama.cpp, so there's no Ollama to install. The project is frank that this is slower, that context windows are smaller, and that tool calling is "the gap." OpenCode expects a separate server, but it looks for Ollama, LM Studio and vLLM at their default addresses and adds what it finds. One catch on its providers page: vLLM models arrive with tools disabled, because OpenCode can't detect tool support there. LM Studio vs Ollama covers choosing one.
Model fit. goose's provider docs say it relies heavily on tool calling and currently works best with Claude 4 models. A model without tool calling can only chat, and you have to disable every extension.
Subscriptions. Both sign in with ChatGPT Plus or Pro and with GitHub Copilot. Claude plans work differently in each:
- goose treats Claude Code as a provider through ACP. Claude Code stays the agent, and goose passes it your extensions. Session resume and fork aren't supported on that route yet.
- OpenCode's Claude Agent provider runs Claude Code on your machine for the model calls. OpenCode keeps its own tools, permissions and subagents. Your Claude Code settings, hooks and
CLAUDE.mdfiles don't load.
Don't budget around either route. Anthropic's help article says API keys, a supported cloud provider or linked billing are the preferred way to use third-party tools, and it prohibits tools that try to route third-party traffic against subscription limits. It doesn't name these two setups. Goose vs Claude Code goes through the wording.
Permissions: Modes Against Rules
Neither agent protects you by default. goose's permission modes page says autonomous mode is applied by default, and that it can modify and delete files without approval. OpenCode's permissions page starts every agent from a policy that allows everything, with a prompt only for .env reads. That includes reads and edits outside your project.
The difference is what you can change.
goose gives you a dial. You choose Autonomous, Smart Approval or Manual Approval, per session if you like. In the two approval modes you can mark each tool Always Allow, Ask Before or Never Allow. The docs say sorting tools into reads and writes is "best effort" and interpreted by your LLM provider.
OpenCode gives you a rulebook. Each rule names an action, a resource and an effect (allow, ask or deny), and the last match wins. You can write rules for a single command, file path, MCP tool or subagent. A separate policies layer can hard-deny something, such as shell:sudo *, and global or Console-managed policies override whatever a repository allows.
One limit: shell commands run with your own account's file, process and network access, so write a short allowlist rather than a long blocklist.
For isolation, use a container with either one. goose documents running inside Docker, running only its extensions there, or using the Container Use extension. OpenCode publishes a Docker image for its server.
Goose Recipes vs OpenCode Commands, Agents and Skills
A goose recipe is one YAML or JSON file that holds a whole job. It can carry instructions, required extensions, typed parameters, a provider and model, subrecipes, retries with shell checks, and a JSON schema for the final answer. You can share it as a link or a file. You can also put it on a cron schedule, in the desktop app or with goose schedule add.
OpenCode spreads those pieces out:
- Commands turn a Markdown prompt into
/review, with arguments and an optional agent or model. - Agents combine a prompt, a model and permission rules.
- Skills load instructions when a task needs them.
goose has custom agents and skills too, so the real comparison is recipes against commands. A command saves you typing. A recipe defines a job that can run unattended and check its own result.
That matters most in scripts. Both have a GitHub Actions example in their docs, using goose run or opencode run. With a goose response schema, the last line of output is validated JSON your pipeline can parse. OpenCode's --format json gives you newline-delimited JSON, and --auto approves anything you haven't denied. We found no scheduler in OpenCode's V2 command list, so plan on your system's cron or your CI's timer.
Subagents, MCP and Undo
Subagents. The two projects made opposite trade-offs. goose's subagents are disabled in both approval modes, so supervising and delegating don't mix. In autonomous mode, up to five run at once by default, with a five-minute timeout. OpenCode ships General and Explore, and runs each subagent in the background with fresh context. Watch one detail: a custom subagent uses its own permissions, not a subset of its parent's. If you restrict your main agent only in its own section, the subagents it launches don't inherit that. Put shared rules at the top level.
MCP. goose's extensions are based on MCP, and it checks external ones for known malware before activating them. OpenCode connects to local and remote MCP servers and warns that their tools consume model context.
Undo. OpenCode takes snapshots around each model step, so /undo can restore your files along with the conversation. It needs a Git repository, skips ignored files, and can't reverse what a shell command did to a database or service. With goose, commit before you start, as its docs advise.
Carrying your setup over. Both read AGENTS.md, and both find skills in .agents/skills. You can try both on one repository.
Cost: Both Are Free Until the Model Runs
Neither agent has a license fee. With goose, you pay your provider, sign in with a supported plan, or run a local model. The project calls its built-in local route "completely free" and says it works offline with no API key.
With OpenCode, you have similar options plus two run by its maker: pay-as-you-go Console models and OpenCode Go, a monthly plan for open coding models. OpenCode also includes free models that need no account. At the time of writing (December 2026), several of those retain what you send or use it to improve the model, so read the privacy section before you use them on work code.
Goose vs OpenCode: Which Should You Choose?
| Your situation | Start with | Why |
|---|---|---|
| Most of your work is in a Git repository | OpenCode | Coding-focused tools and file undo |
| You want one agent for code, research and data work | goose | Wider built-in extensions |
| You run the same job every day or week | goose | Recipes with parameters and schedules |
| You need rules per command or per path | OpenCode | Pattern rules plus hard-deny policies |
| You want approvals and subagents | OpenCode | goose disables subagents in approval modes |
| You want local models with nothing else installed | goose | Built-in llama.cpp inference |
| You want to check in from your phone | OpenCode | iPhone and Android apps |
| Foundation governance matters to your company | goose | Agentic AI Foundation project |
Still split? Use OpenCode in the repository and goose for the recurring jobs around it, such as a nightly log summary or a weekly dependency report. If your shortlist includes a vendor's agent, see OpenCode vs Codex or OpenCode vs Claude Code.
Where Taku Fits
goose and OpenCode are both good answers for people who want to configure their own agent. That still leaves you choosing models, writing rules and looking after the setup.
If you'd rather run a tool someone already built than set one up yourself, that's where Taku comes in. Taku Apps and Sites, built by the best AI minds. Find one, run it, and keep it in your Mac Dock. Taku is in Beta, and the Mac app is available now.
Key Points
- Scope: goose (Apache-2.0) is a general agent that codes. OpenCode (MIT) is a coding agent
- Defaults: both act without asking until you change that. OpenCode prompts only for
.envreads - Control: goose uses modes and per-tool levels. OpenCode uses ordered rules and hard-deny policies
- Automation: goose's recipes are the stronger format for repeatable, scheduled jobs
- Delegation: goose's approval modes disable subagents. OpenCode's custom subagents don't inherit the parent's limits
FAQ
Is goose or OpenCode better for coding?
OpenCode is the better starting point if code is all you need, because of its file undo, Plan agent and command-level rules. goose makes more sense if the same agent also has to handle research, data or scheduled work.
Is there an OpenCode equivalent of goose recipes?
Not as a single file. A command plus an agent plus a skill gets you close, and you supply the schedule and the success checks yourself.
Do goose and OpenCode have a sandbox?
Neither project's permissions page describes an operating-system sandbox around shell commands. Both document containers, so use one for unattended runs.