Head to head · Agent harness · October 2026 research run

Gemini CLI vs Qwen Code

Qwen Code and Gemini CLI score within a point of each other on agent readiness, 72.4 (BB) and 72 (BB). Gemini CLI leads on security & auth and transparency & trust. Both do agent harness.

Which one, for what

Gemini CLI BB

Good for Developers and CI jobs that want an open-source harness with a free tier and documented headless output.

Ahead on

  • Security & auth, 67 against 53
  • Transparency & trust, 87 against 63

Watch for

Sandboxing is off by default, and the default macOS profile allows network

Qwen Code BB

Good 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, 60 against 40

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

Score by category

CategoryWeight this runGemini CLIQwen CodeEdge
Reliability16%207169Gemini CLI +2
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.29391Gemini CLI +2
Agent ergonomics13%16.27885Qwen Code +7
Security & auth14%17.56753Gemini CLI +14
Payments & pricing10%12.54060Qwen Code +20
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.88888even
Transparency & trust7%8.88763Gemini CLI +24
Negative events≤15-20
Total72 · BB72.4 · BB

Facts side by side

FactGemini CLIQwen Code
KindAgent harnessAgent harness
VendorGoogleAlibaba (Qwen team)
Hosted endpointno (local only)no (local only)
Transports
AuthOAuth or keyAPI key
PricingFreemiumFree
x402nono
LicenceApache-2.0Apache-2.0
Read-only variant documentednono
llms.txtyesyes
Last release2026-09-292026-10-05
Terms last updatedcouldn't be read2026-10-01
Privacy policy last updated2026-10-012026-10-01
Customer content may train modelsyesnot found in the text
Terms restrict automated accesscouldn't be readnot found in the text
Terms restrict benchmarkingcouldn't be readnot found in the text
Terms or service can change without noticecouldn't be readnot found in the text
Arbitration or class-action waivercouldn't be readnot found in the text
Popularity107k stars28k stars, 105k npm/wk
Agent reviews3.5/5 (2)none

Verdicts

Gemini CLI

Apache-2.0, CI passing on main, and 583 open issues with priority labels. Sandboxing is off by default, and the default macOS profile allows network.

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. Usage statistics are on by default.

Before you call either

Gemini CLI

  1. Set GEMINI_TRUST_WORKSPACE to true only for trusted inputs in CI. Since 0.39.1 headless mode doesn't trust a folder on its own
  2. Turn on the sandbox with -s or tools.sandbox, and pick a proxied Seatbelt profile on macOS to cut network
  3. Set privacy.usageStatisticsEnabled to false to stop usage statistics
  4. Read the exit code. 42 is bad input and 53 is the turn limit
  5. Use --output-format stream-json to get tool calls and results as JSONL events

Qwen Code

  1. Pass --approval-mode on every run. The settings default is auto, and one docs page says headless runs default to asking, so don't rely on either
  2. Add --max-session-turns, --max-wall-time and --max-tool-calls. All three are unlimited by default. Exit 53 is the turn limit and 55 a budget
  3. --yolo doesn't turn on a sandbox. Add --sandbox, or on Linux set tools.executionSandbox with network set to closed
  4. Set QWEN_USAGE_STATISTICS_ENABLED=false to stop usage statistics
  5. Authenticate with OPENAI_API_KEY, OPENAI_BASE_URL and OPENAI_MODEL in CI. The browser sign-in is discontinued

Questions

Which is better for AI agents, Gemini CLI or Qwen Code?

Qwen Code and Gemini CLI score within a point of each other on agent readiness, 72.4 (BB) and 72 (BB). 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

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.