# Goose vs OpenCode

> Goose is an open-source, general-purpose agent for coding, research and automation, founded by Block and now at the Linux Foundation, that works with many model providers and adds tools through MCP extensions; OpenCode is an open-source coding agent with a terminal interface, a desktop app and IDE extensions, which works with models from many providers. Side by side, with every command checked.

_Updated November 23, 2026 · Checked against Goose 1.52.0 and OpenCode 1.18.32 in EnvHaven v1.9.0_

|  | Goose | OpenCode |
| --- | --- | --- |
| Made by | Agentic AI Foundation | Anomaly |
| Kind | Coding agent | Coding agent |
| Open source | Yes, Apache-2.0 | Yes, MIT |
| Models | Many providers | Many providers |
| Install | `curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh \| bash` | `curl -fsSL https://opencode.ai/install \| bash` |
| Full-access switch | `export GOOSE_MODE=auto` | `opencode --auto` |
| Instructions file | `AGENTS.md`, `.goosehints` | `AGENTS.md`, `~/.config/opencode/AGENTS.md` |
| Add an MCP server | Config file | `opencode mcp add` |
| Headless | `goose run -t` | `opencode run` |
| Version checked | 1.52.0 | 1.18.32 |

## How to choose

- If you already pay for a plan from Agentic AI Foundation, **Goose** is the natural start: ChatGPT Plus or Pro through its ChatGPT Codex provider, GitHub Copilot, and a Claude Code subscription through the claude-acp provider.
- If you already pay for a plan from Anomaly, **OpenCode** is the natural start: ChatGPT Plus or Pro, GitHub Copilot, GitLab Duo and SuperGrok sign in from `/connect`, and OpenCode Go is OpenCode's own plan.
- Not sure? Run both on the same task. An EnvHaven workspace has both built in: sign in to each once from the Launch menu, give them the same prompt in two terminal windows side by side, and compare, so the comparison costs one prompt each.

## Goose in detail

An open-source, general-purpose agent for coding, research and automation, founded by Block and now at the Linux Foundation, that works with many model providers and adds tools through MCP extensions. Goose starts in autonomous mode (`auto`) out of the box: it edits, deletes and runs commands without asking. On a machine without a keyring it stores keys in plain text in `~/.config/goose/secrets.yaml`.

More: [Goose setup and commands](https://envhaven.com/agents/goose), [its full-access mode](https://envhaven.com/yolo/goose).

## OpenCode in detail

An open-source coding agent with a terminal interface, a desktop app and IDE extensions, which works with models from many providers. `--auto` auto-approves every permission that is not explicitly denied; its help marks it "dangerous!". Deny rules still apply, and in 1.18 the default rules deny reading `.env` files.

More: [OpenCode setup and commands](https://envhaven.com/agents/opencode), [its full-access mode](https://envhaven.com/yolo/opencode).

## Keep reading

- [Goose](https://envhaven.com/agents/goose)
- [OpenCode](https://envhaven.com/agents/opencode)
- [Every agent compared](https://envhaven.com/compare)

Source: https://envhaven.com/compare/goose-vs-opencode
