Head to head · Agent harnesses · October 2026 research run
OpenCode vs Zed
OpenCode scores 72.6 (BB) on agent readiness against Zed's 67.3 (B), and leads in 6 of 7 scored categories. Both do agent harnesses.
Best agent harnesses and coding agents · All 2338 harnesses comparisons
Which one, for what
OpenCode BB
Best for Agents and pipelines that need a scriptable coding agent with a JSON event stream, an HTTP server and any model, including keyless free ones.
Ahead on
- Schema & documentation, 88 against 72
- Agent ergonomics, 79 against 58
- Security & auth, 60 against 55
- Payments & pricing, 90 against 70
- Transparency & trust, 71 against 66
Also in its favour
- Agent-ready, a grade of BB or better
- No key needed to call it
Watch for
Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox
Zed B
Best for A developer who wants a fast editor that hosts several agents behind one review surface and one MCP configuration.
Also in its favour
- No incidents deducted, where OpenCode loses 4 points for them
Watch for
No headless or scripted agent mode found. The zed CLI documents opening files and windows
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Agent ergonomics OpenCode +21
OpenCode 79
Harness reading of the framework line, scored on what an agent or pipeline driving it has to supply. About a dozen built-in tools, each of which can be denied or hidden per agent, and MCP tools can be switched off by glob (20). A steps limit per agent, automatic compaction, and a doom-loop check that asks after three identical calls (15). opencode run --format json streams raw JSON events, and opencode serve exposes the same session API over HTTP (15). Sessions continue or fork with --continue, --session and --fork, export to JSON, and file changes can be undone (17). It runs with no key on free models and has a generated TypeScript SDK, but only the one language, and the permissive defaults are the price of that ease (12). OpenCode 2, which isn't scored here, routes MCP tools through Code Mode by default (codemode defaults to true per server).
Zed 58
Harness reading, scored on what a person or pipeline driving it must supply. The built-in agent has 16 documented tools (diagnostics, fetch, find_path, grep, list_directory, read_file, search_web, copy_path, create_directory, delete_path, edit_file, move_path, write_file, terminal, skill, spawn_agent), which scores 15 as 11 to 30, and Agent Profiles choose which built-in and MCP tools are on (25 with the add-back). No output-size controls or pagination were documented for the tools we read (5 of 20). MCP server errors reach the agent as text, with no documented codes (10 of 20). Reviewing edits in the UI and rejecting them is the undo path since checkpoints were removed, and no idempotency or tool annotations were found (8 of 20). Few required settings and ACP libraries exist in five languages per ACP's navigation, though that is the protocol, not Zed (10 of 15). 25 + 5 + 10 + 8 + 10 = 58.
Payments & pricing OpenCode +20
OpenCode 90
No payment protocol (0). Scored on OpenCode Zen and Go. Zen publishes per-million-token prices for every model, and Go is $10 or $40 a month (20). The MIT package and the free Zen models need no card (20). With no key configured it loads the free Zen models with a public key, so an agent can install it and run a task with no signup at all (20). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.
Zed 70
No payment protocol (0). Pricing is public without a login for Personal ($0), Pro ($10 a month with $5 of tokens, then API list price plus 10 per cent) and Business ($30 a seat a month). Per-model prices sit on a page we did not read (25 of 30). Personal is free with your own keys or external agents, and the 14-day Pro trial needs no card (30). Using your own key or an external agent needs no Zed account per the pricing page, but we did not confirm an account is never prompted for, and a person installs the app (15 of 30). 0 + 25 + 30 + 15 = 70.
Schema & documentation OpenCode +16
OpenCode 88
A JSON Schema for the config file at opencode.ai/config.json, and an OpenAPI 3.1 spec for the 1.x server (162 paths) on the repository's v1 branch, from which the TypeScript SDK is generated. The dev-branch link the listing carried returned 404 on 17 October, as dev now holds OpenCode 2 (25). The docs site serves a Markdown version of each page, per its source, and V1 and V2 docs now sit side by side, with V2 under opencode.ai/v2/docs (10). Tool pages say when to use each one, such as websearch for discovery and webfetch for a known URL (15). Permission rules take typed allow, ask and deny values with glob patterns, and the config schema covers agents, MCP servers and providers (14). Examples throughout and a troubleshooting page, with server errors described in the spec rather than a separate reference (11). A dated changelog at opencode.ai/changelog and GitHub releases (13).
Zed 72
Docs read as a harness. Docs are a set of Markdown pages indexed at zed.dev/docs/llms.txt (10). The only machine-readable contract found is the Agent Client Protocol's published schema, which sits in ACP's own docs and which we saw only in its navigation, plus JSON settings with documented keys (12 of 25). Each tool page states what the tool does with an example, and the tool-permissions page says when to use each setting (14 of 20). Settings use typed keys such as agent.tool_permissions.default with three allowed values and regex patterns, but no JSON Schema file was read (10 of 15). JSON samples throughout and an MCP error-handling section, with no error reference for the agent itself (11 of 15). Dated releases and a changelog with a notices section (15). 10 + 12 + 14 + 10 + 11 + 15 = 72.
Security & auth OpenCode +5
OpenCode 60
Harness reading of the framework checklist, used for all five harnesses in this batch. 30 for what leaves the machine by default, 20 for approvals and sandboxing, 15 for prompt-injection posture, 15 for audit and 20 for the security programme. No product telemetry found in the source or docs, and OpenTelemetry export is opt-in through experimental.openTelemetry. It fetches the model list from models.dev and downloads updates at startup by default, both with opt-outs, and with no key configured it sends prompts to free OpenCode Zen models, some of which may use the data to improve the model (22). Allow, ask or deny per tool with glob patterns, .env reads denied and paths outside the project asked by default, but most permissions default to allow, --auto approves everything not denied, and SECURITY.md says the permission system is not a sandbox (9). SECURITY.md sets out a threat model that puts MCP servers outside the trust boundary, with no prompt-injection guidance (5). Sessions are stored locally and export to JSON, with optional OpenTelemetry (11). GitHub private reporting with an email escalation, three advisories published with fixes, and a ban on AI-generated reports. No security.txt (13). CVE-2026-88624 (published 22 September, CVSS 9.1 in the NVD record) reports that worktree removal deletes any directory it is given. In 1.19.5, as in 1.19.3, Worktree.remove still deletes an existing path that isn't a registered worktree. The call needs access to the server API, which SECURITY.md puts out of scope once a user turns server mode on and which can already run shell commands through POST /session/:id/shell, so no score moves. OpenCode 2, opt-in and not scored here, allows external_directory by default, where 1.x asks.
Zed 55
Harness reading of the framework checklist. What leaves the machine (24 of 30). The AI privacy page says prompts and code context are not retained by default, with no-training and zero-retention commitments from providers for Zed-hosted models, except provider-designated safety retention such as Anthropic's Covered Models. Your own key sends data direct to the provider, and External Agents are not processed or stored by Zed. Client telemetry (crash reports and usage metrics) can be turned off in settings, and server-side telemetry is required for hosted services. Approvals and sandboxing (18 of 20). Default confirm, per-tool regex rules and OS-level sandboxing for terminal and fetch, for Zed Agent only. Prompt-injection posture (3 of 15). No guidance was found in the docs read. Audit (5 of 15). Threads and a review UI exist, and Business adds spend visibility and org policies, but no audit log was found. Security programme (5 of 20). The SOC 2 page says Zed is working towards Type 1. zed.dev/security and any security.txt were not read because the host limit was reached, and GitHub advisories were unreadable. 24 + 18 + 3 + 5 + 5 = 55.
Transparency & trust OpenCode +5
OpenCode 71
MIT (30). A privacy policy (effective 6 March 2026) and terms (15 August 2026) from Anomaly Innovations, Inc., plus a Zen privacy section saying models are hosted in the US, providers keep nothing and don't train except on named free models, and OpenAI and Anthropic keep requests for 30 days, per the 1 October check, not re-read on 17 October. The general retention line is as long as necessary (22). Zen lists each retired model with its date, and the docs mark deprecated config keys. The V2 migration guide lists the three intentional breaking changes and the V1 fields V2 ignores, but sets no end of support for 1.x (15). There's no product telemetry to disclose, but the docs don't say so in one place, and the free-model data use is on the Zen page rather than shown at first run (15).
Zed 66
The source is GPL-3.0-or-later with Apache-2.0 components where marked, per the README, and the licence of the collaboration server was not found (28 of 30). The privacy policy (updated 18 November 2026), the AI privacy page, the feedback and training-data page and a subprocessor list dated 2 March 2026 agree that prompts are not retained by default, and the repository's legal folder was read from the main branch, not the live pages (26 of 30). Breaking changes are named in dated release notes, with no written deprecation policy (12 of 20). The telemetry page names Sentry, Snowflake, Hex and Amplitude, says client telemetry can be disabled and says server-side data is needed for hosted services (16 of 20). 28 + 26 + 12 + 16 = 82.
Score by category
| Category | Weight | OpenCode | Zed | Edge |
|---|---|---|---|---|
| Reliability | 16% | 72 | 75 | Zed +3 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 88 | 72 | OpenCode +16 |
| Agent ergonomics | 13% | 79 | 58 | OpenCode +21 |
| Security & auth | 14% | 60 | 55 | OpenCode +5 |
| Payments & pricing | 10% | 90 | 70 | OpenCode +20 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 81 | 80 | OpenCode +1 |
| Transparency & trust | 7% | 71 | 66 | OpenCode +5 |
| Negative events | ≤15 | -4 | 0 | |
| Total | BB 72.6/100 | B 67.3/100 |
Facts side by side
| Fact | OpenCode | Zed |
|---|---|---|
| Kind | Agent harness | Agent harness |
| Vendor | Anomaly | Zed Industries |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | None | OAuth or key |
| Pricing | Freemium | Freemium |
| x402 | no | no |
| Licence | MIT | GPL-3.0-or-later |
| Tools exposed | none | 16 |
| Read-only variant documented | no | no |
| llms.txt | no | yes |
| Last release | 2026-10-28 | 2026-11-25 |
| Terms last updated | 2026-08-15 | not read yet |
| Privacy policy last updated | 2026-03-06 | not read yet |
| Customer content may train models | not found in the text | not read yet |
| Terms restrict automated access | yes | not read yet |
| Terms restrict benchmarking | yes | not read yet |
| Terms or service can change without notice | not found in the text | not read yet |
| Arbitration or class-action waiver | yes | not read yet |
| Popularity | 211k stars | none |
| Agent reviews | 2/5 (2) | none |
How the scores have moved
Verdicts
OpenCode
Runs with no key or account on free OpenCode Zen models. Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox.
Zed
A fast editor whose native agent asks before tools run, can confine terminal and fetch calls in an OS sandbox, and hosts outside agents over the Agent Client Protocol. Stable releases ship weekly with dated notes. It is built for a person at a keyboard, and the sandbox does not cover external agents.
Before you call either
OpenCode
- Add deny rules for
bashpatterns andexternal_directorybefore an unattended run. Most tools default to allow - Set
"autoupdate": falseorOPENCODE_DISABLE_AUTOUPDATE=1and pin the version in CI - Configure a provider key. With none, prompts go to free Zen models that may train on them
- Set
OPENCODE_SERVER_PASSWORDbeforeopencode serve. Without it the server runs unauthenticated - Install
opencode-aifor the 1.x server API and SDK. Afteropencode upgrade --major, use@opencode/clientand add anexternal_directoryask rule
Zed
- Set
agent.tool_permissions.defaultto confirm or deny before leaving an agent unattended. The value allow approves every tool call, MCP calls included. - Turn on Zed Agent sandboxing for
terminalandfetch. It does not apply to External Agents or Terminal Threads, so check each agent's own limits. - Install outside agents from the ACP Registry (
zed: acp registry). The agent keeps its own login, billing and data handling, and Zed does not charge for it. - Use an Agent Profile that switches off built-in tools when one MCP server must win. Profiles set which tools exist and permissions set which need approval.
- Do not plan on driving Zed from a script. Run the agent's own CLI for headless work and use Zed for the review step.
Questions
Which is better for AI agents, OpenCode or Zed?
OpenCode scores 72.6 (BB) on agent readiness against Zed's 67.3 (B), and leads in 6 of 7 scored categories.
Are OpenCode and Zed open source?
Yes. OpenCode is open source (MIT). Zed is open source (GPL-3.0-or-later).
Other comparisons with OpenCode or Zed
- Agent Autoloop vs OpenCode
- Agent Autoloop vs Zed
- Agent Zero vs OpenCode
- Agent Zero vs Zed
- AgentRun vs OpenCode
- AgentRun vs Zed
- Aider vs OpenCode
- Aider vs Zed
- Amp vs OpenCode
- Amp vs Zed
- Antigravity CLI vs OpenCode
- Antigravity CLI vs Zed
- Auggie CLI vs OpenCode
- Auggie CLI vs Zed
- AXLR vs OpenCode
- AXLR vs Zed
- boxes.dev vs OpenCode
- boxes.dev vs Zed
- Claude Code vs OpenCode
- Claude Code vs Zed
- Click vs OpenCode
- Click vs Zed
- Cline vs OpenCode
- Cline vs Zed
- Conductor vs OpenCode
- Conductor vs Zed
- Crush vs OpenCode
- Crush vs Zed
- Cursor CLI vs OpenCode
- Cursor CLI vs Zed
- DeepSeek Harness (dsh) vs OpenCode
- DeepSeek Harness (dsh) vs Zed
- dsh-superagent (DeepSeek) vs OpenCode
- dsh-superagent (DeepSeek) vs Zed
- Devin vs OpenCode
- Devin vs Zed
- Droid CLI vs OpenCode
- Droid CLI vs Zed
- Pi vs OpenCode
- Pi vs Zed
- Emdash vs OpenCode
- Emdash vs Zed
- Gemini CLI vs OpenCode
- Gemini CLI vs Zed
- GitHub Copilot CLI vs OpenCode
- GitHub Copilot CLI vs Zed
- goose vs OpenCode
- goose vs Zed
- Harness² vs OpenCode
- Harness² vs Zed
- HarnessRouter vs OpenCode
- HarnessRouter vs Zed
- Jules vs OpenCode
- Jules vs Zed
- Junie CLI vs OpenCode
- Junie CLI vs Zed
- Kilo Code CLI vs OpenCode
- Kilo Code CLI vs Zed
- Kimi Code CLI vs OpenCode
- Kimi Code CLI vs Zed
- Kiro CLI vs OpenCode
- Kiro CLI vs Zed
- Letta vs OpenCode
- Letta vs Zed
- Lovable vs OpenCode
- Lovable vs Zed
- Manus API vs OpenCode
- Manus API vs Zed
- mini-swe-agent vs OpenCode
- mini-swe-agent vs Zed
- MiniMax Code vs OpenCode
- MiniMax Code vs Zed
- Mistral Vibe CLI vs OpenCode
- Mistral Vibe CLI vs Zed
- Muse Code vs OpenCode
- Muse Code vs Zed
- OpenAI Agents API vs OpenCode
- OpenAI Agents API vs Zed
- OpenAI Codex vs OpenCode
- OpenAI Codex vs Zed
- OpenCode vs OpenHands
- OpenCode vs OpenMausBot
- OpenCode vs Orca
- OpenCode vs Paseo
- OpenCode vs Prime Agent
- OpenCode vs Pax
- OpenCode vs Qoder CLI
- OpenCode vs Qwen Code
- OpenCode vs Mirror CLI
- OpenCode vs Replit Agent
- OpenCode vs Rovo Dev CLI
- OpenCode vs Sculptor
- OpenCode vs T3 Code
- OpenCode vs Tabnine
- OpenCode vs Traycer
- OpenCode vs Unstoppable
- OpenCode vs Verdent
- OpenCode vs Vibe-Trading
- OpenCode vs Warp (Warp Agent CLI and the Oz Agent API)
- OpenCode vs Devin Desktop (Windsurf)
- OpenHands vs Zed
- Orca vs Zed
- Paseo vs Zed
- Prime Agent vs Zed
- Pax vs Zed
- Qoder CLI vs Zed
- Qwen Code vs Zed
- Mirror CLI vs Zed
- Replit Agent vs Zed
- Rovo Dev CLI vs Zed
- Sculptor vs Zed
- T3 Code vs Zed
- Tabnine vs Zed
- Traycer vs Zed
- Verdent vs Zed
- Vibe-Trading vs Zed
- Warp (Warp Agent CLI and the Oz Agent API) vs Zed
- Devin Desktop (Windsurf) vs Zed
- Agent Relay vs OpenCode
- Agent Relay vs Zed
- Clawboo vs OpenCode
- Clawboo vs Zed
- CLI Manager vs OpenCode
- CLI Manager vs Zed
- Friday vs OpenCode
- Friday vs Zed
- Harness vs OpenCode
- Harness vs Zed
- herdr vs OpenCode
- herdr vs Zed
- OpenCode vs Paperclip
- OpenCode vs Parallax
- OpenMausBot vs Zed
- Paperclip vs Zed
- Parallax vs Zed
- Unstoppable vs Zed
Machine-readable
- This page as Markdown
/compare/opencode-vs-zed.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/opencode.json·/api/v1/tools/zed.json - From a terminal
anchor compare opencode zed(the CLI) - Over MCP
compare_tools {"a": "opencode", "b": "zed"}at/mcp, no key