# 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. Category scores, facts, verdicts and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/gemini-cli-vs-qwen-code - Markdown: https://www.anchorterminal.com/compare/gemini-cli-vs-qwen-code.md (~2,300 tokens) - Slim: https://www.anchorterminal.com/compare/gemini-cli-vs-qwen-code.min.md (~580 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/gemini-cli-vs-qwen-code.json (this page as data, same URL with Accept: application/json) - Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt) - API: https://www.anchorterminal.com/api/v1/index.json - Updated: 2026-10-08 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. - Gemini CLI: grade BB, 72/100, rank #99 of 722. Markdown https://www.anchorterminal.com/tools/gemini-cli.md · JSON https://www.anchorterminal.com/api/v1/tools/gemini-cli.json - Qwen Code: grade BB, 72.4/100, rank #93 of 722. Markdown https://www.anchorterminal.com/tools/qwen-code.md · JSON https://www.anchorterminal.com/api/v1/tools/qwen-code.json ## 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 | Category | Weight | Gemini CLI | Qwen Code | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 71 | 69 | Gemini CLI +2 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 93 | 91 | Gemini CLI +2 | | Agent ergonomics | 13% (16.2 this run) | 78 | 85 | Qwen Code +7 | | Security & auth | 14% (17.5 this run) | 67 | 53 | Gemini CLI +14 | | Payments & pricing | 10% (12.5 this run) | 40 | 60 | Qwen Code +20 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 88 | 88 | even | | Transparency & trust | 7% (8.8 this run) | 87 | 63 | Gemini CLI +24 | | Negative events | ≤15 | -2 | 0 | | | **Total** | | **72 · BB** | **72.4 · BB** | | ## Facts side by side | Fact | Gemini CLI | Qwen Code | | --- | --- | --- | | Kind | Agent harness | Agent harness | | Vendor | Google | Alibaba (Qwen team) | | Hosted endpoint | no (local only) | no (local only) | | Transports | | | | Auth | OAuth or key | API key | | Pricing | Freemium | Free | | x402 | no | no | | Licence | Apache-2.0 | Apache-2.0 | | Read-only variant documented | no | no | | llms.txt | yes | yes | | Last release | 2026-09-29 | 2026-10-05 | | 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) | 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). ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/gemini-cli-vs-qwen-code.json, and with the fewest tokens: https://www.anchorterminal.com/compare/gemini-cli-vs-qwen-code.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "gemini-cli", "b": "qwen-code"}`. From a terminal: `anchor compare gemini-cli qwen-code` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/gemini-cli.json and https://www.anchorterminal.com/api/v1/tools/qwen-code.json ## Other comparisons with Gemini CLI or Qwen Code - [Aider vs Gemini CLI](https://www.anchorterminal.com/compare/aider-vs-gemini-cli.md) - [Aider vs Qwen Code](https://www.anchorterminal.com/compare/aider-vs-qwen-code.md) - [Amp vs Gemini CLI](https://www.anchorterminal.com/compare/amp-vs-gemini-cli.md) - [Amp vs Qwen Code](https://www.anchorterminal.com/compare/amp-vs-qwen-code.md) - [Claude Code vs Gemini CLI](https://www.anchorterminal.com/compare/claude-code-vs-gemini-cli.md) - [Claude Code vs Qwen Code](https://www.anchorterminal.com/compare/claude-code-vs-qwen-code.md) - [Cline vs Gemini CLI](https://www.anchorterminal.com/compare/cline-vs-gemini-cli.md) - [Cline vs Qwen Code](https://www.anchorterminal.com/compare/cline-vs-qwen-code.md) - [Cursor CLI vs Gemini CLI](https://www.anchorterminal.com/compare/cursor-cli-vs-gemini-cli.md) - [Cursor CLI vs Qwen Code](https://www.anchorterminal.com/compare/cursor-cli-vs-qwen-code.md) - [Devin vs Gemini CLI](https://www.anchorterminal.com/compare/devin-vs-gemini-cli.md) - [Devin vs Qwen Code](https://www.anchorterminal.com/compare/devin-vs-qwen-code.md) - [Pi vs Gemini CLI](https://www.anchorterminal.com/compare/earendil-pi-vs-gemini-cli.md) - [Pi vs Qwen Code](https://www.anchorterminal.com/compare/earendil-pi-vs-qwen-code.md) - [Gemini CLI vs GitHub Copilot CLI](https://www.anchorterminal.com/compare/gemini-cli-vs-github-copilot-cli.md) - [Gemini CLI vs goose](https://www.anchorterminal.com/compare/gemini-cli-vs-goose.md) - [Gemini CLI vs Kiro CLI](https://www.anchorterminal.com/compare/gemini-cli-vs-kiro-cli.md) - [Gemini CLI vs OpenAI Codex](https://www.anchorterminal.com/compare/gemini-cli-vs-openai-codex.md) - [Gemini CLI vs OpenCode](https://www.anchorterminal.com/compare/gemini-cli-vs-opencode.md) - [Gemini CLI vs OpenHands](https://www.anchorterminal.com/compare/gemini-cli-vs-openhands.md) - [Gemini CLI vs Prime Agent](https://www.anchorterminal.com/compare/gemini-cli-vs-prime-agent.md) - [GitHub Copilot CLI vs Qwen Code](https://www.anchorterminal.com/compare/github-copilot-cli-vs-qwen-code.md) - [goose vs Qwen Code](https://www.anchorterminal.com/compare/goose-vs-qwen-code.md) - [Kiro CLI vs Qwen Code](https://www.anchorterminal.com/compare/kiro-cli-vs-qwen-code.md) - [OpenAI Codex vs Qwen Code](https://www.anchorterminal.com/compare/openai-codex-vs-qwen-code.md) - [OpenCode vs Qwen Code](https://www.anchorterminal.com/compare/opencode-vs-qwen-code.md) - [OpenHands vs Qwen Code](https://www.anchorterminal.com/compare/openhands-vs-qwen-code.md) - [Prime Agent vs Qwen Code](https://www.anchorterminal.com/compare/prime-agent-vs-qwen-code.md) - [Gemini CLI vs Paperclip](https://www.anchorterminal.com/compare/gemini-cli-vs-paperclip.md) - [Paperclip vs Qwen Code](https://www.anchorterminal.com/compare/paperclip-vs-qwen-code.md)