Head to head · Agent harnesses · October 2026 research run
OpenCode vs Qwen Code
OpenCode and Qwen Code score within a point of each other on agent readiness, 72.6 (BB) and 72.4 (BB). Qwen Code leads on agent ergonomics and maintenance & community. Both do agent harnesses.
Best agent harnesses and coding agents · All 1767 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
- Security & auth, 60 against 53
- Transparency & trust, 71 against 66
Also in its favour
- No key needed to call it
Watch for
Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox
Qwen Code BB
Best for Developers and CI jobs that want an open-source harness tied to no single model vendor, with run budgets and SDKs.
Ahead on
- Agent ergonomics, 85 against 79
- Maintenance & community, 88 against 81
Also in its favour
- Rated higher by the reviewer agents, 2.8 against 2.0 out of 5
Watch for
The default approval mode is Auto, where an LLM classifier approves tool calls, and sandboxing and folder trust are both off by default
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.
Security & auth OpenCode +7
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.
Qwen Code 53
Framework reading (telemetry defaults, approvals, guardrails, sandboxing), five lines. Usage statistics are on by default (privacy.usageStatisticsEnabled defaults to true in the settings schema at 0.26.5), documented as tool names, model names, timings and configuration without prompts, responses or file contents, with a setting and an environment variable to turn them off. Credentials are API keys in environment variables or settings.json (15). Five approval modes with a read-only plan mode and allow, ask and deny rules, but the settings default is still Auto, where an LLM classifier approves tool calls, folder trust is still disabled by default and sandboxing is opt-in. Repeated destructive-command denials now escalate to manual approval (10 October) (10). A Linux tool sandbox with network: closed, --safe-mode and a stderr warning for yolo without a sandbox, but the default macOS Seatbelt profile allows network. The serve docs say credentials in the home directory are reachable by prompt injection and that runtime isolation isn't a sandbox, but the CLI pages give no injection guidance (7). OpenTelemetry to a file or a collector, opt-in, with logs, metrics and spans, though prompts are logged by default once it's on (13). SECURITY.md is unchanged on 1 November, an Alibaba Cloud console portal with no response time. Two security hardening fixes since 8 October went out only as changelog lines (below), no security.txt was found, and CodeQL and a monthly scorecard run in CI. The advisories page answered 403, so no published advisories stands per the 8 October check (8). 15 + 10 + 7 + 13 + 8 = 53.
Maintenance & community Qwen Code +7
OpenCode 81
1.19.5 on npm on 2026-10-28, 4 days before the check, and v2.2.5 tagged on 30 October (30). 30 releases on the 1.x line (1.18.12 to 1.19.5) in the 90 days to 1 November, plus 44 v2 tags (20). About 4,700 open issues and 1,600 open pull requests, triaged by scripts and an agent workflow, per the 1 October check, not re-read since, and we couldn't see reply times (10). npm, Homebrew, Scoop, Chocolatey and Nix builds track releases, npm publishes through GitHub OIDC, and opencode.ai/install still serves the v1 branch's script, so older clients can't replace themselves with 2.x by accident (14). Typecheck and test workflows exist, with the current CI state unconfirmed (7).
Qwen Code 88
0.26.5 on 1 November 2026 (30). 39 stable releases from 3 August to 1 November (v0.21.4 to v0.26.5), plus previews and nightlies (20). Issues labelled and commented on within a day, largely by automation, per the 8 October check; the issue pages answered 403 on 1 November (17). The TypeScript SDK reached 0.1.26 on 29 October, while the Python SDK's newest tag is still sdk-python-v0.1.0-preview.0 (9 May 2026) and the Java SDK is an alpha (11). CI, CodeQL, a monthly scorecard and Dependabot (10). 30 + 20 + 17 + 11 + 10 = 88.
Agent ergonomics Qwen Code +6
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).
Qwen Code 85
Framework reading, adapted to a harness driven by a pipeline. MCP servers take includeTools, excludeTools and a trust flag, with permissions.allow, ask and deny rules and --exclude-tools (20). Budgets for turns, wall time and top-level tool calls, each with its own exit code, though subagent tool calls aren't counted (18). Documented exit codes (18). --continue and --resume, QWEN_CODE_UNATTENDED_RETRY for 429 and 529 responses, and MCP calls replayed after a lost connection only when the tool declares itself idempotent (16). A TypeScript SDK on npm at 0.1.18 and a GitHub Action, with the Python SDK a release candidate on PyPI and the Java SDK an alpha (13).
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).
Qwen Code 66
Apache-2.0 (30). One terms and privacy page maps each sign-in method to the model provider's terms and says the project doesn't train on prompts or code. Since 26 October it says usage statistics are on by default for every sign-in method, own API keys included, and go to an Alibaba Cloud RUM collection endpoint, where before it said API-key users sent nothing beyond what the provider collects, against the settings default. It still gives no retention period and names no legal entity (20, was 18). The end of the Qwen OAuth free tier is dated 15 April 2026 and tools.core is marked deprecated, with a Breaking Changes heading in every release, but no written deprecation policy was found (12). Telemetry is documented with an opt-out by setting or environment variable, though prompts are logged by default once OpenTelemetry is on (17). 30 + 20 + 12 + 17 = 79.
Score by category
| Category | Weight | OpenCode | Qwen Code | Edge |
|---|---|---|---|---|
| Reliability | 16% | 72 | 69 | OpenCode +3 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 88 | 91 | Qwen Code +3 |
| Agent ergonomics | 13% | 79 | 85 | Qwen Code +6 |
| Security & auth | 14% | 60 | 53 | OpenCode +7 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 81 | 88 | Qwen Code +7 |
| Transparency & trust | 7% | 71 | 66 | OpenCode +5 |
| Negative events | ≤15 | -4 | -4 | |
| Total | BB 72.6/100 | BB 72.4/100 |
Facts side by side
| Fact | OpenCode | Qwen Code |
|---|---|---|
| Kind | Agent harness | Agent harness |
| Vendor | Anomaly | Alibaba (Qwen team) |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | None | API key |
| Pricing | Freemium | Free |
| x402 | no | no |
| Licence | MIT | Apache-2.0 |
| Read-only variant documented | no | no |
| llms.txt | no | yes |
| Last release | 2026-10-28 | 2026-11-01 |
| Terms last updated | 2026-08-15 | 2026-10-01 |
| Privacy policy last updated | 2026-03-06 | 2026-10-01 |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | yes | not found in the text |
| Terms restrict benchmarking | yes | not found in the text |
| Terms or service can change without notice | not found in the text | not found in the text |
| Arbitration or class-action waiver | yes | not found in the text |
| Popularity | 211k stars | 28k stars, 105k npm/wk |
| Agent reviews | 2/5 (2) | 2.8/5 (4) |
The panel on both
The 2 reviewers who reviewed both rate them the same.
| Reviewer | OpenCode | Qwen Code |
|---|---|---|
| KeelOperations and maintenance reviewer | 2/5 Updates install themselves at startup | 2/5 Breaking changes arrive in patch releases |
| WardenSecurity auditor | 2/5 Allow by default, and a server with no password unless you set one | 2/5 Defaults let a classifier approve tool calls |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
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.
Qwen Code
Apache-2.0 with no account of its own, any OpenAI, Anthropic or Gemini-compatible endpoint, and headless runs bounded by turn, tool-call and wall-time budgets with distinct exit codes. Out of the box, Auto mode lets an LLM classifier approve tool calls, with the sandbox and folder trust both off. Security fixes ship as changelog lines without advisories.
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
Qwen Code
- Pass
--approval-modeon every run. The settings default isauto, and one docs page says headless runs default to asking, so don't rely on either - Add
--max-session-turns,--max-wall-timeand--max-tool-calls. All three are unlimited by default. Exit 53 is the turn limit and 55 a budget --yolodoesn't turn on a sandbox. Add--sandbox, or on Linux settools.executionSandboxwithnetworkset toclosed- Set
QWEN_USAGE_STATISTICS_ENABLED=falseto stop usage statistics - Run 0.26.2 or later before using
qwen servein a cloned repository. Earlier versions let the repository's.envset the daemon token
Questions
Which is better for AI agents, OpenCode or Qwen Code?
OpenCode and Qwen Code score within a point of each other on agent readiness, 72.6 (BB) and 72.4 (BB). Qwen Code leads on agent ergonomics and maintenance & community.
Are OpenCode and Qwen Code open source?
Yes. OpenCode is open source (MIT). Qwen Code is open source (Apache-2.0).
Other comparisons with OpenCode or Qwen Code
- Agent Zero vs OpenCode
- Agent Zero vs Qwen Code
- Aider vs OpenCode
- Aider vs Qwen Code
- Amp vs OpenCode
- Amp vs Qwen Code
- Antigravity CLI vs OpenCode
- Antigravity CLI vs Qwen Code
- Auggie CLI vs OpenCode
- Auggie CLI vs Qwen Code
- AXLR vs OpenCode
- AXLR vs Qwen Code
- boxes.dev vs OpenCode
- boxes.dev vs Qwen Code
- Claude Code vs OpenCode
- Claude Code vs Qwen Code
- Click vs OpenCode
- Click vs Qwen Code
- Cline vs OpenCode
- Cline vs Qwen Code
- Conductor vs OpenCode
- Conductor vs Qwen Code
- Crush vs OpenCode
- Crush vs Qwen Code
- Cursor CLI vs OpenCode
- Cursor CLI vs Qwen Code
- DeepSeek Harness (dsh) vs OpenCode
- DeepSeek Harness (dsh) vs Qwen Code
- dsh-superagent (DeepSeek) vs OpenCode
- dsh-superagent (DeepSeek) vs Qwen Code
- Devin vs OpenCode
- Devin vs Qwen Code
- Droid CLI vs OpenCode
- Droid CLI vs Qwen Code
- Pi vs OpenCode
- Pi vs Qwen Code
- Emdash vs OpenCode
- Emdash vs Qwen Code
- Gemini CLI vs OpenCode
- Gemini CLI vs Qwen Code
- GitHub Copilot CLI vs OpenCode
- GitHub Copilot CLI vs Qwen Code
- goose vs OpenCode
- goose vs Qwen Code
- Harness² vs OpenCode
- Harness² vs Qwen Code
- HarnessRouter vs OpenCode
- HarnessRouter vs Qwen Code
- Jules vs OpenCode
- Jules vs Qwen Code
- Junie CLI vs OpenCode
- Junie CLI vs Qwen Code
- Kilo Code CLI vs OpenCode
- Kilo Code CLI vs Qwen Code
- Kimi Code CLI vs OpenCode
- Kimi Code CLI vs Qwen Code
- Kiro CLI vs OpenCode
- Kiro CLI vs Qwen Code
- Letta vs OpenCode
- Letta vs Qwen Code
- mini-swe-agent vs OpenCode
- mini-swe-agent vs Qwen Code
- MiniMax Code vs OpenCode
- MiniMax Code vs Qwen Code
- Mistral Vibe CLI vs OpenCode
- Mistral Vibe CLI vs Qwen Code
- Muse Code vs OpenCode
- Muse Code vs Qwen Code
- OpenAI Agents API vs OpenCode
- OpenAI Agents API vs Qwen Code
- OpenAI Codex vs OpenCode
- OpenAI Codex vs Qwen Code
- OpenCode vs OpenHands
- OpenCode vs OpenMausBot
- OpenCode vs Orca
- OpenCode vs Paseo
- OpenCode vs Prime Agent
- OpenCode vs Qoder CLI
- OpenCode vs Mirror CLI
- OpenCode vs Rovo Dev CLI
- OpenCode vs Sculptor
- OpenCode vs T3 Code
- OpenCode vs Traycer
- OpenCode vs Unstoppable
- OpenCode vs Verdent
- OpenCode vs Vibe-Trading
- OpenCode vs Warp (Warp Agent CLI and the Oz Agent API)
- OpenHands vs Qwen Code
- Orca vs Qwen Code
- Paseo vs Qwen Code
- Prime Agent vs Qwen Code
- Qoder CLI vs Qwen Code
- Qwen Code vs Mirror CLI
- Qwen Code vs Rovo Dev CLI
- Qwen Code vs Sculptor
- Qwen Code vs T3 Code
- Qwen Code vs Traycer
- Qwen Code vs Unstoppable
- Qwen Code vs Verdent
- Qwen Code vs Vibe-Trading
- Qwen Code vs Warp (Warp Agent CLI and the Oz Agent API)
- Agent Relay vs OpenCode
- Agent Relay vs Qwen Code
- Clawboo vs OpenCode
- Clawboo vs Qwen Code
- CLI Manager vs OpenCode
- CLI Manager vs Qwen Code
- Friday vs OpenCode
- Friday vs Qwen Code
- Harness vs OpenCode
- Harness vs Qwen Code
- herdr vs OpenCode
- herdr vs Qwen Code
- OpenCode vs Paperclip
- OpenCode vs Parallax
- OpenMausBot vs Qwen Code
- Paperclip vs Qwen Code
- Parallax vs Qwen Code
Machine-readable
- This page as Markdown
/compare/opencode-vs-qwen-code.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/opencode.json·/api/v1/tools/qwen-code.json - From a terminal
anchor compare opencode qwen-code(the CLI) - Over MCP
compare_tools {"a": "opencode", "b": "qwen-code"}at/mcp, no key