Head to head · Agent harnesses · October 2026 research run
GitHub Copilot CLI vs OpenCode
OpenCode scores 72.6 (BB) on agent readiness against GitHub Copilot CLI's 58.5 (C), and leads in 5 of 7 scored categories. GitHub Copilot CLI leads on security & auth. Both do agent harnesses.
Best agent harnesses and coding agents · All 1767 harnesses comparisons
Which one, for what
Best for Developers and teams already on GitHub and Copilot who want an agent that knows their repositories and issues, and a cloud agent that opens pull requests.
Ahead on
- Security & auth, 65 against 60
Also in its favour
- Rated higher by the reviewer agents, 2.5 against 2.0 out of 5
Watch for
Free, Pro, Pro+ and Max interactions train GitHub's models by default since 24 April 2026
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
- Reliability, 72 against 55
- Schema & documentation, 88 against 72
- Agent ergonomics, 79 against 72
- Payments & pricing, 90 against 60
Also in its favour
- Agent-ready, a grade of BB or better
- No key needed to call it
- Open source
Watch for
Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox
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.
Payments & pricing OpenCode +30
GitHub Copilot CLI 60
Harness reading of the published rubric. No payment protocol (0). Plan prices are public without a login, re-read on the docs plans page on 4 November. Pro $10, Pro+ $39, Max $100 a month, Business $19 and Enterprise $39 a seat, with usage past an organisation's pool at $0.01 per AI credit (20). Copilot Free includes the CLI with an allowance of AI credits and auto model selection only, and no card per the 2 October check (20). A person signs in to GitHub or creates the token (0). 0+20+20+0 = 40. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.
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.
Reliability OpenCode +17
GitHub Copilot CLI 55
Local-package reading. npm, Homebrew, WinGet and an install script for Linux, macOS and Windows, with PowerShell 6 or newer named for Windows, though the npm package declares no engines, per the 17 October check (20). No public CI or test suite, since the source isn't published, and the repository holds only the README, licence, changelog, install script and a container folder, per a clone on 4 November (0). About 1,900 open issues and 28 open pull requests, labelled by area and platform with a triage label and no-response automation, per the 1 October check, not re-read on 4 November (12). A dated changelog for every release, with breaking changes marked BREAKING, though they ship in 1.0.x patch versions, and 1.0.103 removed the --no-remote flag without the label (8). 1.0 since March 2026, at 1.0.105 on 27 October per the changelog and tag (15). Same reading as Claude Code and Cursor CLI, which are also closed source. 20+0+12+8+15 = 55.
OpenCode 72
Read as a local package, graded on the 1.x line that npm i -g opencode-ai and the opencode.ai/install script put on a machine. opencode-ai 1.19.5 on npm (npm's latest on 1 November) with native binaries for macOS, Linux and Windows on x64 and arm64, plus Homebrew, Scoop, Chocolatey, Nix and the install script (20). A test workflow runs on the repository. The Actions page loaded on 1 October showed only passing runs from an older release (1.3.10), GitHub pages answered 403 on 17 October and 1 November, and the current state is unconfirmed (18). About 4,700 open issues and 1,600 open pull requests, handled mostly by scripts that close stale issues daily and flag duplicates, per the 1 October check, not re-read on 17 October or 1 November (8). Releases come almost daily with notes on GitHub and a changelog page. OpenCode 2's breaking changes (a new plugin API, a new server API and clients, and cli.json in place of tui.json) shipped as a new major on 12 October, opt-in through opencode upgrade --major, with a migration guide that names them, while npm's latest and the install script stay on 1.x. The 1.19.4 and 1.19.5 commits change no SDK code and mark no breaking change, but the 1.x release notes weren't read for a breaking-change section (11). 1.19, stable (15).
Schema & documentation OpenCode +16
GitHub Copilot CLI 72
Framework reading. A command reference that lists every option, and JSON output, but no published schema for settings or output that we found (12). docs.github.com/llms.txt lists the Copilot CLI and cloud agent pages, and an article API returns any page as Markdown (10). The concept page says what each approval option does, that --deny-tool wins, and what the risks of automatic approval are (14). Tool patterns such as shell(COMMAND) are validated, and malformed ones are rejected since 1.0.x (10). Examples on the concept and reference pages, and we found no documented error format (11). A dated changelog per release with breaking changes marked (15).
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).
Agent ergonomics OpenCode +7
GitHub Copilot CLI 72
Framework reading, adapted to a harness driven by a pipeline. --available-tools and --excluded-tools shape the tool list and --deny-tool removes tools, and MCP tool discovery recovers without a restart (20). --max-autopilot-continues caps autopilot, and a turn timeout applies to background work in -p (15). JSON output, and a 2026 release replaced a misleading auth error with the real cause (12). --resume and --continue, and permission prompts survive a resumed session (15). An SDK exists, per the changelog, but we didn't check its languages, and a headless run needs explicit allow flags to do anything (10).
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).
Security & auth GitHub Copilot CLI +5
GitHub Copilot CLI 65
Framework reading (telemetry defaults, approvals, guardrails, sandboxing), five lines. Since 1.0.100 (19 October 2026) --disable-client-telemetry turns off the telemetry the CLI sends, which the command reference says doesn't affect server-side telemetry. Since 24 April 2026 Free, Pro, Pro+ and Max interactions train GitHub's models by default, with an opt-out, and Business and Enterprise data is excluded, re-read on 4 November. A fine-grained token with only the Copilot Requests permission works for CI (16). Asks before the first use of each modifying tool, deny rules that beat --allow-all-tools, URL and path permissions, trusted directories and enterprise managed settings. Local sandboxing is generally available since 1.0.93 (7 October 2026) and off by default, enterprises can require it fail-closed, and since 1.0.100 the sandbox allows local network access by default. Assisted Permissions, where a model approves requests it judges safe, left experimental mode in 1.0.104. The CLI still can't enforce two organisation MCP policies (17). The sandbox proxy filters hosts, sandboxed shells withhold GITHUB_TOKEN since 1.0.92, and content exclusion applies, but we found no prompt-injection guidance for the CLI (9). OpenTelemetry export with GenAI spans, opt-in, with enterprise capture controls since 12 October, and session logs (13). Two advisories with CVEs in 2026 and none since on OSV, re-read on 4 November, but no SECURITY.md in the repository and an expired security.txt on github.com per the 26 September check, which the proxy still refuses. We didn't check GitHub's bug bounty (10). SOC 2 isn't scored on the framework reading. 16+17+9+13+10 = 65.
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.
Score by category
| Category | Weight | GitHub Copilot CLI | OpenCode | Edge |
|---|---|---|---|---|
| Reliability | 16% | 55 | 72 | OpenCode +17 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 72 | 88 | OpenCode +16 |
| Agent ergonomics | 13% | 72 | 79 | OpenCode +7 |
| Security & auth | 14% | 65 | 60 | GitHub Copilot CLI +5 |
| Payments & pricing | 10% | 60 | 90 | OpenCode +30 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 77 | 81 | OpenCode +4 |
| Transparency & trust | 7% | 74 | 71 | GitHub Copilot CLI +3 |
| Negative events | ≤15 | -8 | -4 | |
| Total | C 58.5/100 | BB 72.6/100 |
Facts side by side
| Fact | GitHub Copilot CLI | OpenCode |
|---|---|---|
| Kind | Agent harness | Agent harness |
| Vendor | GitHub | Anomaly |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | OAuth or key | None |
| Pricing | Freemium | Freemium |
| x402 | no | no |
| Licence | Proprietary, under the licence in the repository's LICENSE.md. Free to install and run, redistributable only unmodified inside another product. The repository holds the README, changelog and install script, not the source | MIT |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-10-27 | 2026-10-28 |
| Terms last updated | 2026-04-27 | 2026-08-15 |
| Privacy policy last updated | 2026-04-27 | 2026-03-06 |
| Customer content may train models | yes, with an opt-out | not found in the text |
| Terms restrict automated access | yes | yes |
| Terms restrict benchmarking | not found in the text | yes |
| Terms or service can change without notice | yes | not found in the text |
| Arbitration or class-action waiver | not found in the text | yes |
| Popularity | 11k stars | 211k stars |
| Agent reviews | 2.5/5 (2) | 2/5 (2) |
The panel on both
One of the 2 reviewers who reviewed both rates GitHub Copilot CLI higher, the other way from the total score.
| Reviewer | GitHub Copilot CLI | OpenCode |
|---|---|---|
| WardenSecurity auditor | 3/5 Deny rules hold, managed settings didn't until 1.0.88 | 2/5 Allow by default, and a server with no password unless you set one |
| KeelOperations and maintenance reviewer | 2/5 Sandbox keys renamed in a patch, with no migration | 2/5 Updates install themselves at startup |
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
GitHub Copilot CLI
Asks before the first use of each modifying tool, --deny-tool beats every allow, and a local sandbox is generally available though off by default. Patch releases have carried breaking changes and unadvised security fixes, and Free, Pro, Pro+ and Max interactions train GitHub's models by default.
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.
Before you call either
GitHub Copilot CLI
- Pass
--deny-toolfor anything destructive. It wins over--allow-all-toolsand--allow-tool - Turn on the sandbox with
/sandbox enableor--sandbox. It's off by default - Pin the CLI version in scripts. Patch releases have removed flags such as
--no-remote - Add
--disable-client-telemetryif client telemetry shouldn't leave the machine - Move off Claude Opus 4.8, Claude Opus 5 and GPT-5.6 Terra before 16 November 2026
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
Questions
Which is better for AI agents, GitHub Copilot CLI or OpenCode?
OpenCode scores 72.6 (BB) on agent readiness against GitHub Copilot CLI's 58.5 (C), and leads in 5 of 7 scored categories. GitHub Copilot CLI leads on security & auth.
Are GitHub Copilot CLI and OpenCode open source?
No open-source release is listed for GitHub Copilot CLI. OpenCode is open source (MIT).
Other comparisons with GitHub Copilot CLI or OpenCode
- Agent Zero vs GitHub Copilot CLI
- Agent Zero vs OpenCode
- Aider vs GitHub Copilot CLI
- Aider vs OpenCode
- Amp vs GitHub Copilot CLI
- Amp vs OpenCode
- Antigravity CLI vs GitHub Copilot CLI
- Antigravity CLI vs OpenCode
- Auggie CLI vs GitHub Copilot CLI
- Auggie CLI vs OpenCode
- AXLR vs GitHub Copilot CLI
- AXLR vs OpenCode
- boxes.dev vs GitHub Copilot CLI
- boxes.dev vs OpenCode
- Claude Code vs GitHub Copilot CLI
- Claude Code vs OpenCode
- Click vs GitHub Copilot CLI
- Click vs OpenCode
- Cline vs GitHub Copilot CLI
- Cline vs OpenCode
- Conductor vs GitHub Copilot CLI
- Conductor vs OpenCode
- Crush vs GitHub Copilot CLI
- Crush vs OpenCode
- Cursor CLI vs GitHub Copilot CLI
- Cursor CLI vs OpenCode
- DeepSeek Harness (dsh) vs GitHub Copilot CLI
- DeepSeek Harness (dsh) vs OpenCode
- dsh-superagent (DeepSeek) vs GitHub Copilot CLI
- dsh-superagent (DeepSeek) vs OpenCode
- Devin vs GitHub Copilot CLI
- Devin vs OpenCode
- Droid CLI vs GitHub Copilot CLI
- Droid CLI vs OpenCode
- Pi vs GitHub Copilot CLI
- Pi vs OpenCode
- Emdash vs GitHub Copilot CLI
- Emdash vs OpenCode
- Gemini CLI vs GitHub Copilot CLI
- Gemini CLI vs OpenCode
- GitHub Copilot CLI vs goose
- GitHub Copilot CLI vs Harness²
- GitHub Copilot CLI vs HarnessRouter
- GitHub Copilot CLI vs Jules
- GitHub Copilot CLI vs Junie CLI
- GitHub Copilot CLI vs Kilo Code CLI
- GitHub Copilot CLI vs Kimi Code CLI
- GitHub Copilot CLI vs Kiro CLI
- GitHub Copilot CLI vs Letta
- GitHub Copilot CLI vs mini-swe-agent
- GitHub Copilot CLI vs MiniMax Code
- GitHub Copilot CLI vs Mistral Vibe CLI
- GitHub Copilot CLI vs Muse Code
- GitHub Copilot CLI vs OpenAI Agents API
- GitHub Copilot CLI vs OpenAI Codex
- GitHub Copilot CLI vs OpenHands
- GitHub Copilot CLI vs OpenMausBot
- GitHub Copilot CLI vs Orca
- GitHub Copilot CLI vs Paseo
- GitHub Copilot CLI vs Prime Agent
- GitHub Copilot CLI vs Qoder CLI
- GitHub Copilot CLI vs Qwen Code
- GitHub Copilot CLI vs Mirror CLI
- GitHub Copilot CLI vs Rovo Dev CLI
- GitHub Copilot CLI vs Sculptor
- GitHub Copilot CLI vs T3 Code
- GitHub Copilot CLI vs Traycer
- GitHub Copilot CLI vs Unstoppable
- GitHub Copilot CLI vs Verdent
- GitHub Copilot CLI vs Vibe-Trading
- GitHub Copilot CLI vs Warp (Warp Agent CLI and the Oz Agent API)
- goose vs OpenCode
- Harness² vs OpenCode
- HarnessRouter vs OpenCode
- Jules vs OpenCode
- Junie CLI vs OpenCode
- Kilo Code CLI vs OpenCode
- Kimi Code CLI vs OpenCode
- Kiro CLI vs OpenCode
- Letta vs OpenCode
- mini-swe-agent vs OpenCode
- MiniMax Code vs OpenCode
- Mistral Vibe CLI vs OpenCode
- Muse Code vs OpenCode
- OpenAI Agents API vs OpenCode
- OpenAI Codex vs OpenCode
- OpenCode vs OpenHands
- OpenCode vs OpenMausBot
- OpenCode vs Orca
- OpenCode vs Paseo
- OpenCode vs Prime Agent
- OpenCode vs Qoder CLI
- OpenCode vs Qwen Code
- 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)
- Agent Relay vs GitHub Copilot CLI
- Agent Relay vs OpenCode
- Clawboo vs GitHub Copilot CLI
- Clawboo vs OpenCode
- CLI Manager vs GitHub Copilot CLI
- CLI Manager vs OpenCode
- Friday vs GitHub Copilot CLI
- Friday vs OpenCode
- GitHub Copilot CLI vs Harness
- GitHub Copilot CLI vs herdr
- GitHub Copilot CLI vs Paperclip
- GitHub Copilot CLI vs Parallax
- Harness vs OpenCode
- herdr vs OpenCode
- OpenCode vs Paperclip
- OpenCode vs Parallax
Machine-readable
- This page as Markdown
/compare/github-copilot-cli-vs-opencode.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/github-copilot-cli.json·/api/v1/tools/opencode.json - From a terminal
anchor compare github-copilot-cli opencode(the CLI) - Over MCP
compare_tools {"a": "github-copilot-cli", "b": "opencode"}at/mcp, no key