OpenCode vs Goose
Both are free, open source agents that run almost any model and act without asking by default. OpenCode is built for coding in the terminal. Goose is a general agent with a desktop app first.
OpenCode and Goose are open source coding agents that you pay nothing for. You bring a model provider or sign in with a subscription you already have. OpenCode is an MIT-licensed agent from Anomaly with a terminal UI and a desktop app in beta. Goose is an Apache 2.0 agent with a desktop app and a CLI, and it is part of the Agentic AI Foundation at the Linux Foundation. Facts on this page were checked against each tool's own docs and repository as of December 4, 2026.
Decision Table
| OpenCode | Goose | |
|---|---|---|
| License | MIT | Apache 2.0 |
| Owner | Anomaly | Agentic AI Foundation, Linux Foundation |
| Price | Free. Optional OpenCode Go at $10 per month | Free |
| Main surface | Terminal UI, plus a desktop app in beta | Desktop app for macOS, Linux and Windows, plus a CLI |
| Default permissions | Allows every action except reading .env files | Autonomous mode, which runs tools without asking |
| Best for | Coding in the terminal with fine-grained rules | A general agent across desktop, CLI and other apps |
At a Glance
| OpenCode | Goose | |
|---|---|---|
| Models | Any provider in the models.dev catalog, local models through Ollama, LM Studio or vLLM | Over 85 providers, local models through Ollama, LM Studio and others |
| Subscription sign-in | ChatGPT Plus or Pro, GitHub Copilot, a Claude plan through a local Claude Code login | ChatGPT Plus or Pro, GitHub Copilot, Claude Code and Codex through ACP, Cursor through cursor-agent |
| Permissions | Ordered allow, ask and deny rules per action and resource | Modes: Autonomous, Manual Approval, Smart Approval, plus per-tool Always allow, Ask before or Never allow |
| OS sandbox | None | Not documented |
| Built-in agents | build, read-only plan, general subagent | Not documented |
| MCP | Yes | Yes |
| Project instructions | AGENTS.md, falling back to CLAUDE.md | AGENTS.md, then .goosehints |
| Skills | .opencode/skills, .claude/skills, .agents/skills | .agents/skills, plus .goose/skills and .claude/skills |
| Reusable tasks | Custom agents | Recipes |
| Headless and CI | opencode run | goose run, with -t for a prompt or --recipe for a file |
Models and Subscriptions
Both agents connect to almost any provider, and both can reuse a plan you already pay for. OpenCode reads its provider list from models.dev. It signs in with a ChatGPT Plus or Pro plan, a GitHub Copilot account, or a Claude plan through a local Claude Code login, which needs Claude Code 2.1.248 or later.
Goose lists over 85 providers. It also signs in with ChatGPT Plus or Pro and GitHub Copilot. Its ACP providers drive Claude Code or Codex as a subprocess, and its Cursor Agent provider drives the cursor-agent CLI on your Cursor subscription.
OpenCode also sells OpenCode Go, a $10 monthly subscription to a curated list of models tested for agentic coding, such as Kimi K3, GLM-5.4 and DeepSeek V4 Pro. Go Plus raises the limits for $40. Goose has no subscription of its own. Best Open-Weight Coding Models covers the open models you can run in either.
Permissions
Both agents trust the model out of the box. OpenCode's base policy allows every action, including edits and shell commands outside the project, and asks only before reading .env files. Its docs warn that shell commands run with your user's filesystem, process and network access.
Goose applies Autonomous mode by default, so it edits and deletes files and runs extensions without asking. Switch with /mode approve to ask before every tool, or /mode smart_approve to ask only for higher-risk actions. For headless runs, Goose's docs set GOOSE_MODE=auto because nothing can answer a prompt.
The difference is granularity. OpenCode rules match an action and a resource, such as deny for one shell command or ask for files outside the project. Goose sets a mode, then lets you override single tools. Neither documents an OS sandbox, so run unattended work in a container or a cloud sandbox.
When to Pick Which
- Pick OpenCode if you code in the terminal, want
denyandaskrules per command or path, or want a curated model subscription. - Pick Goose if you want a desktop app first, an agent for work beyond code, a vendor-neutral foundation project, or reusable recipes.
- Pick both if your repository has an
AGENTS.mdand.agents/skills. Both read them.
Alternatives
- Claude Code: Anthropic's agent for Claude models. See OpenCode vs Claude Code.
- Codex: OpenAI's Apache 2.0 agent with a sandbox on by default. See Codex vs OpenCode.
- Cline: an Apache 2.0 agent that asks before each step and runs in your editor. See OpenCode vs Cline.
Running Several Agents at Once
To run OpenCode and Goose on the same task, give each its own git worktree so their edits never collide. In Treq, each agent runs in its own workspace, and you review the results side by side.
Sources
Checked December 4, 2026:
- OpenCode repository, OpenCode Go, Providers, Permissions, Instructions, Skills, CLI
- Goose repository, Providers, Permission modes, Headless mode, Hints, Skills, Recipes
Next Steps
- OpenCode Alternatives: other agents and their safety defaults
- Best Coding Agent CLIs: every current terminal agent in one table
- Parallel Coding Agents: why agents need separate workspaces