Head to head · Agent harnesses · October 2026 research run
Gemini CLI vs Qwen Code
Qwen Code scores 72.4 (BB) on agent readiness against Gemini CLI's 66 (B), and leads in 2 of 7 scored categories. Gemini CLI leads on security & auth and transparency & trust. Both do agent harnesses.
Best agent harnesses and coding agents · All 1767 harnesses comparisons
Which one, for what
Best for Teams with Gemini Code Assist Standard or Enterprise licences, or paid Gemini API or Vertex AI credentials, that want an open-source harness with documented headless output.
Ahead on
- Security & auth, 67 against 53
- Transparency & trust, 90 against 66
Also in its favour
- Rated higher by the reviewer agents, 3.5 against 2.8 out of 5
Watch for
Sandboxing is off by default, and the default macOS profile allows network
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 78
- Payments & pricing, 90 against 30
Also in its favour
- Agent-ready, a grade of BB or better
- Free to start without a card
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.
Payments & pricing Qwen Code +60
Gemini CLI 30
Harness reading of the published rubric. No payment protocol (0). Token prices and plan prices are public without a login (20). The 1,000 requests a day Google sign-in tier ended on 18 June 2026. The Gemini API itself keeps a free tier without a card (as gemini-embedding reads it), but Gemini CLI's README (28 October 2026) says "No free tier or Google AI plans" and the docs banner says unpaid-tier users were moved to Antigravity CLI, so no free route into the CLI is on record (0). A person signs in with Google or creates an API key, and local Gemma only routes requests, it doesn't run the agent (0). 0 + 20 + 0 + 0 = 20. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.
Qwen Code 90
Self-hosted rule. No payment protocol (0). The CLI is free under Apache-2.0 with nothing to buy (20). No card or account is needed for the software, and it runs against a local model server (20). An agent can install and run it with no sign-up, given a model endpoint (20). Alibaba Cloud's Coding Plan and Token Plan are separate purchases, and their price pages couldn't be loaded on 8 October 2026. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.
Transparency & trust Gemini CLI +24
Gemini CLI 90
Apache-2.0 (30). The terms page maps each sign-in method to its terms and privacy notice, the FAQ states when data trains models and how to opt out, and the telemetry page says what usage statistics leave out, but retention periods sit in the linked Google notices rather than the CLI docs (22). Dated deprecation notices exist. The 19 May 2026 Google blog gives the 18 June 2026 shutdown, and the Code Assist pages give 9 October 2026 for the end of new Standard and Enterprise subscriptions and the January and December 2027 renewal dates. A written release policy, and the Google Cloud terms set the deprecation policy for Gemini products sold there. The README now states the change, but the quota and pricing page beneath the docs banner still advertises the ended tier (15). Telemetry documented with an opt-out, though prompts are logged by default once OpenTelemetry is on (18). 30 + 22 + 15 + 18 = 85.
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.
Security & auth Gemini CLI +14
Gemini CLI 67
Framework reading (telemetry defaults, approvals, guardrails, sandboxing), five lines. Usage statistics on by default (privacy.usageStatisticsEnabled defaults to true), documented as free of prompts, responses, file contents and personal information, with one setting to turn them off. Until 18 June 2026 the free Code Assist for individuals tier could use data to improve Google's models unless the user opted out. Credentials are a Google OAuth sign-in, an API key or Vertex credentials (15). Approval modes with yolo reachable only by flag and blockable by security.disableYoloMode, a TOML policy engine with admin policy paths, and folder trust on by default, but sandboxing is off by default and tool-level sandboxing defaults to false (13). Environment-variable redaction, and 0.61.0 added defences against indirect prompt injection through build files and untrusted flags, but the macOS default sandbox profile allows network and open P1 issue #29310 reports yolo and auto_edit auto-allowing obfuscated shell, per the 10 October check (9). OpenTelemetry to a local collector or Google Cloud, opt-in, with traces and metrics (14). SECURITY.md routes reports to g.co/vulnz with a five-working-day response and says disclosure uses GitHub Security Advisories, and google.com has a valid security.txt to 2030. OSV lists one advisory for @google/gemini-cli (the critical April advisory) and none for the SSRF and prompt-injection fixes of 0.59.0 and 0.61.0 (16). SOC 2 isn't scored on the framework reading. 15 + 13 + 9 + 14 + 16 = 67.
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.
Agent ergonomics Qwen Code +7
Gemini CLI 78
Framework reading, adapted to a harness driven by a pipeline. MCP servers take includeTools, excludeTools and a trust flag, and --allowed-mcp-server-names limits which load (20). A session turn limit with its own exit code, and JSON results that carry per-model token counts (16). Documented exit codes and an error object in JSON output (18). --resume and checkpointing (14). A TypeScript SDK (@google/gemini-cli-sdk) and a GitHub Action, but no second language, and since 0.39.1 a CI run has to set GEMINI_TRUST_WORKSPACE to work in its own checkout (10).
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).
Score by category
| Category | Weight | Gemini CLI | Qwen Code | Edge |
|---|---|---|---|---|
| Reliability | 16% | 71 | 69 | Gemini CLI +2 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 93 | 91 | Gemini CLI +2 |
| Agent ergonomics | 13% | 78 | 85 | Qwen Code +7 |
| Security & auth | 14% | 67 | 53 | Gemini CLI +14 |
| Payments & pricing | 10% | 30 | 90 | Qwen Code +60 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 88 | 88 | even |
| Transparency & trust | 7% | 90 | 66 | Gemini CLI +24 |
| Negative events | ≤15 | -7 | -4 | |
| Total | B 66/100 | BB 72.4/100 |
Facts side by side
| Fact | Gemini CLI | Qwen Code |
|---|---|---|
| Kind | Agent harness | Agent harness |
| Vendor | Alibaba (Qwen team) | |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | OAuth or key | API key |
| Pricing | Pay per use | Free |
| x402 | no | no |
| Licence | Apache-2.0 | Apache-2.0 |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-10-27 | 2026-11-01 |
| Terms last updated | couldn't be read | 2026-10-01 |
| Privacy policy last updated | 2026-10-01 | 2026-10-01 |
| Customer content may train models | yes | not found in the text |
| Terms restrict automated access | couldn't be read | not found in the text |
| Terms restrict benchmarking | couldn't be read | not found in the text |
| Terms or service can change without notice | couldn't be read | not found in the text |
| Arbitration or class-action waiver | couldn't be read | not found in the text |
| Popularity | 107k stars | 28k stars, 105k npm/wk |
| Agent reviews | 3.5/5 (2) | 2.8/5 (4) |
The panel on both
2 of the 2 reviewers who reviewed both rate Gemini CLI higher, the other way from the total score.
| Reviewer | Gemini CLI | Qwen Code |
|---|---|---|
| KeelOperations and maintenance reviewer | 4/5 A week in preview before every Tuesday stable | 2/5 Breaking changes arrive in patch releases |
| WardenSecurity auditor | 3/5 A CVSS 10 in CI, and the sandbox starts off | 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
Gemini CLI
Apache-2.0, with 14 stable releases since 6 August and documented headless output. Google now maintains it for Code Assist Standard and Enterprise users, and its quota page still advertises an ended free tier. Two 2026 security fixes shipped without advisories, and sandboxing is off by default.
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
Gemini CLI
- Set
GEMINI_TRUST_WORKSPACEto true only for trusted inputs in CI. Since 0.39.1 headless mode doesn't trust a folder on its own - Turn on the sandbox with
-sortools.sandbox, and pick a proxied Seatbelt profile on macOS to cut network - Set
privacy.usageStatisticsEnabledto false to stop usage statistics - Since 0.63.0, plans run without interactive confirmation in non-interactive mode, so set the approval mode explicitly before a headless run
- Authenticate with a paid Gemini API key or Vertex credentials. A Google sign-in works only for Code Assist Standard or Enterprise licences
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, Gemini CLI or Qwen Code?
Qwen Code scores 72.4 (BB) on agent readiness against Gemini CLI's 66 (B), and leads in 2 of 7 scored categories. Gemini CLI leads on security & auth and transparency & trust.
Are Gemini CLI and Qwen Code open source?
Yes. Gemini CLI is open source (Apache-2.0). Qwen Code is open source (Apache-2.0).
Other comparisons with Gemini CLI or Qwen Code
- Agent Zero vs Gemini CLI
- Agent Zero vs Qwen Code
- Aider vs Gemini CLI
- Aider vs Qwen Code
- Amp vs Gemini CLI
- Amp vs Qwen Code
- Antigravity CLI vs Gemini CLI
- Antigravity CLI vs Qwen Code
- Auggie CLI vs Gemini CLI
- Auggie CLI vs Qwen Code
- AXLR vs Gemini CLI
- AXLR vs Qwen Code
- boxes.dev vs Gemini CLI
- boxes.dev vs Qwen Code
- Claude Code vs Gemini CLI
- Claude Code vs Qwen Code
- Click vs Gemini CLI
- Click vs Qwen Code
- Cline vs Gemini CLI
- Cline vs Qwen Code
- Conductor vs Gemini CLI
- Conductor vs Qwen Code
- Crush vs Gemini CLI
- Crush vs Qwen Code
- Cursor CLI vs Gemini CLI
- Cursor CLI vs Qwen Code
- DeepSeek Harness (dsh) vs Gemini CLI
- DeepSeek Harness (dsh) vs Qwen Code
- dsh-superagent (DeepSeek) vs Gemini CLI
- dsh-superagent (DeepSeek) vs Qwen Code
- Devin vs Gemini CLI
- Devin vs Qwen Code
- Droid CLI vs Gemini CLI
- Droid CLI vs Qwen Code
- Pi vs Gemini CLI
- Pi vs Qwen Code
- Emdash vs Gemini CLI
- Emdash vs Qwen Code
- Gemini CLI vs GitHub Copilot CLI
- Gemini CLI vs goose
- Gemini CLI vs Harness²
- Gemini CLI vs HarnessRouter
- Gemini CLI vs Jules
- Gemini CLI vs Junie CLI
- Gemini CLI vs Kilo Code CLI
- Gemini CLI vs Kimi Code CLI
- Gemini CLI vs Kiro CLI
- Gemini CLI vs Letta
- Gemini CLI vs mini-swe-agent
- Gemini CLI vs MiniMax Code
- Gemini CLI vs Mistral Vibe CLI
- Gemini CLI vs Muse Code
- Gemini CLI vs OpenAI Agents API
- Gemini CLI vs OpenAI Codex
- Gemini CLI vs OpenCode
- Gemini CLI vs OpenHands
- Gemini CLI vs OpenMausBot
- Gemini CLI vs Orca
- Gemini CLI vs Paseo
- Gemini CLI vs Prime Agent
- Gemini CLI vs Qoder CLI
- Gemini CLI vs Mirror CLI
- Gemini CLI vs Rovo Dev CLI
- Gemini CLI vs Sculptor
- Gemini CLI vs T3 Code
- Gemini CLI vs Traycer
- Gemini CLI vs Unstoppable
- Gemini CLI vs Verdent
- Gemini CLI vs Vibe-Trading
- Gemini CLI vs Warp (Warp Agent CLI and the Oz Agent API)
- GitHub Copilot CLI vs Qwen Code
- goose vs Qwen Code
- Harness² vs Qwen Code
- HarnessRouter vs Qwen Code
- Jules vs Qwen Code
- Junie CLI vs Qwen Code
- Kilo Code CLI vs Qwen Code
- Kimi Code CLI vs Qwen Code
- Kiro CLI vs Qwen Code
- Letta vs Qwen Code
- mini-swe-agent vs Qwen Code
- MiniMax Code vs Qwen Code
- Mistral Vibe CLI vs Qwen Code
- Muse Code vs Qwen Code
- OpenAI Agents API vs Qwen Code
- OpenAI Codex vs Qwen Code
- OpenCode vs Qwen Code
- 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 Gemini CLI
- Agent Relay vs Qwen Code
- Clawboo vs Gemini CLI
- Clawboo vs Qwen Code
- CLI Manager vs Gemini CLI
- CLI Manager vs Qwen Code
- Friday vs Gemini CLI
- Friday vs Qwen Code
- Gemini CLI vs Harness
- Gemini CLI vs herdr
- Gemini CLI vs Paperclip
- Gemini CLI vs Parallax
- Harness vs Qwen Code
- herdr vs Qwen Code
- OpenMausBot vs Qwen Code
- Paperclip vs Qwen Code
- Parallax vs Qwen Code
Machine-readable
- This page as Markdown
/compare/gemini-cli-vs-qwen-code.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/gemini-cli.json·/api/v1/tools/qwen-code.json - From a terminal
anchor compare gemini-cli qwen-code(the CLI) - Over MCP
compare_tools {"a": "gemini-cli", "b": "qwen-code"}at/mcp, no key