Short answer: Qwen Code wins for most individual developers and mixed-model teams: it works with OpenAI, Anthropic, Gemini, Qwen and local models and keeps adding interfaces. Gemini CLI wins for enterprises already licensed for Gemini Code Assist that want an Apache-2.0 terminal agent with a ready GitHub Action, on Gemini models only.

You want an open-source agent in your terminal. Two names keep coming up, and they share the same roots.
One camp says Gemini CLI is the original, backed by Google. The other says Qwen Code took that base and moved faster. Both camps are partly right, and 2026 changed the facts under both. This page is the referee, with sources checked in November 2026.
In this comparison:
- Qwen Code and Gemini CLI at a glance
- Feature comparison
- Where Qwen Code wins
- Where Gemini CLI wins
- Where Devfab fits
The status changes come first, because they decide a lot.
Qwen Code and Gemini CLI at a glance
Gemini CLI is in transition. On May 19, 2026 Google announced that Gemini CLI is "transitioning" to Antigravity CLI. Since Jun 18, 2026 it no longer serves Google AI Pro or Ultra users or free Gemini Code Assist for individuals. Gemini Code Assist Standard and Enterprise customers and paid API-key users keep access (Google Developers Blog). The repo is not archived; its README says it is maintained for enterprise workflows, and the latest release notes are v0.64.0 from Oct 13, 2026 (GitHub; release notes). Google also says Antigravity CLI will not have "1:1 feature parity right out of the gate", and FOSS Force noted that Antigravity CLI "won't be open source" (FOSS Force).
Qwen Code lost its free tier. Decrypt reported on Apr 15, 2026 that Alibaba ended the Qwen OAuth free tier (Decrypt). The project itself is active, with a 1.0 Preview out and docs updated Nov 9, 2026.
Shared roots. Qwen Code was based on Gemini CLI v0.8.2 and has developed on its own since v0.1 (Qwen Code README).
Who each is for now. Gemini CLI: enterprises with Code Assist licenses and developers on paid Gemini API keys. Qwen Code: developers who want one agent for any model, and teams on Alibaba Cloud or Qwen models.
Picture a utility outage reporter: residents report outages from a phone, crews see them on a map, and the status page updates. Either agent can help a developer write that code. Neither plans it, tests it in a browser or deploys it.
Feature comparison
| Aspect | Qwen Code | Gemini CLI | Source |
|---|---|---|---|
| Where it runs | Terminal CLI; VS Code, Zed and JetBrains; desktop app; experimental web UI; Telegram, DingTalk, WeChat, Feishu | Terminal (npx, npm, Homebrew, MacPorts, Anaconda); headless mode with text, JSON or stream-JSON | Qwen Code README; Gemini CLI |
| Planning | Plan Mode and approval modes | Autonomous plan execution in non-interactive mode (v0.63.0) | Qwen Code README; release notes |
| Agent features | SubAgents; experimental Agent Teams and Arena; scheduled tasks; Skills | Checkpointing to save and resume; GEMINI.md context files | Same as above |
| Extensibility | MCP, hooks, Skills, experimental LSP; SDKs for TypeScript, Python, Java | MCP; run-gemini-cli GitHub Action for PR reviews and issue triage | Same as above |
| Safety | Sandboxing, approval modes, Git worktrees | Sandboxing | Same as above |
| Model choice | OpenAI, Anthropic, Gemini, Qwen, third-party, local via Ollama or vLLM | Gemini models only; 1M-token context cited for Gemini 3 | Same as above |
| License | Open source | Apache-2.0, about 109k GitHub stars | Gemini CLI |
| Pricing model | Free tool; pay for models via Qwen plans, Alibaba Cloud plans or any API key | Free tool; paid Code Assist license, Gemini API key or Vertex AI | Qwen Code auth; Gemini CLI |
Neither tool's docs describe deploying an app or running end-to-end UI tests.
Cost model by team size
| Team size | Qwen Code | Gemini CLI | Devfab |
|---|---|---|---|
| 1 person | Free tool; a Qwen Plus or Pro subscription, a pay-as-you-go key, or local models | Free tool; paid Gemini API key (individual plans moved to Antigravity CLI) | Cost logged per task and per project (Beta) |
| 5 people | Alibaba Cloud Coding Plan (fixed monthly fee) or keys per developer | Gemini API keys or Code Assist Standard licenses | Cost logged per task and per project (Beta) |
| 25 people | QwenCloud or Alibaba Token Plans, or any third-party key | Code Assist Enterprise or Vertex AI | Cost logged per task and per project (Beta) |
Neither tool has its own pricing page with prices. See Qwen Code authentication and the Gemini CLI README. Devfab is in Beta and offers predictable cost: cost is logged after each run, per task and per project.
Where Qwen Code wins
- You don't have a Code Assist license. Individuals on Google AI plans lost Gemini CLI access; Qwen Code takes any key.
- You mix models or run them locally. OpenAI, Anthropic, Gemini, Qwen, Ollama and vLLM, switchable at runtime.
- You want more places to work. IDE integrations, a desktop app, a web UI and chat channels.
- You want to embed the agent. SDKs for TypeScript, Python and Java.
- You want a tool that keeps growing. Weekly updates in 2026 added phone handoff and longer goal tasks (Qwen Code update).
Where Gemini CLI wins
- You already pay for Gemini Code Assist Standard or Enterprise. Nothing changed for you, and TechRadar notes business users need not change anything (TechRadar).
- You want a ready GitHub Action. run-gemini-cli handles PR reviews, issue triage and
@gemini-climentions. - You need very large context on Gemini. The repo cites a 1M-token window for Gemini 3.
- Your legal team wants Apache-2.0 and a large community. About 109k stars as of Nov 27, 2026.
- You run Vertex AI. Enterprise teams can route through it.
Switching from one to the other
Gemini CLI to Qwen Code. Install Qwen Code with npm (Node 22+) or Homebrew, then sign in with a Qwen plan or add an API key. Because Qwen Code grew from Gemini CLI, commands will feel familiar, but check MCP and context-file setups again; it has developed on its own since v0.1.
Qwen Code to Gemini CLI. Install Gemini CLI, sign in with an organizational Code Assist license or set a Gemini API key, and move project context into GEMINI.md files. Expect Gemini models only.
Where Devfab fits
Both tools help a developer write code faster. Neither runs the project around that code. For the outage reporter, someone still has to research how utilities report outages, agree a plan with the client, test that a resident's report reaches the crew map, and ship it.
Coding agents automate the developer. Devfab automates the development lifecycle. Its Researcher maps the domain before the Planner writes a plan, and a person approves it. ChainFlow maps which functions and APIs call each other, so changing outage status shows its effect on the map, the public status page and resident alerts. The QA agent runs UI, flow and logic tests, and code stays in your GitHub. Devfab is in Beta and is not an editor. See Devfab vs Qwen Code and Devfab vs Gemini CLI.
FAQ
Is Qwen Code a fork of Gemini CLI?
It started as one. The Qwen Code README says it was based on Gemini CLI v0.8.2 and has been developed independently since v0.1, with no syncing from upstream. The two have since grown apart in interfaces, features and model support.
Can I still use Gemini CLI with a Google AI Pro account?
No. Since Jun 18, 2026 Gemini CLI no longer serves requests for Google AI Pro or Ultra users or free Gemini Code Assist for individuals. Google points those users to Antigravity CLI. Gemini Code Assist Standard or Enterprise customers and paid API-key users keep access.
Which one is free?
Both tools are free, open-source software, but neither gives free cloud model access any more. Qwen Code's OAuth free tier ended in April 2026, and Gemini CLI's free individual access moved to Antigravity CLI in June 2026. Qwen Code can run local models through Ollama or vLLM.
Which is better for CI pipelines?
Gemini CLI has a headless mode with JSON output and a run-gemini-cli GitHub Action for PR reviews and issue triage. Qwen Code offers SDKs for TypeScript, Python and Java, and its docs say to use an API key rather than account login for CI runs.
Read next
- Qwen Code alternatives
- Gemini CLI alternatives
- Best open-source AI coding agents
- What is an AI software factory?
Need more than a terminal agent for the next client app? Try Beta
Sources (checked November 2026): Qwen Code README (GitHub); Qwen Code docs: Authentication; Qwen Code weekly update, Aug 13, 2026; Decrypt (Apr 15, 2026); google-gemini/gemini-cli on GitHub; Gemini CLI release notes; Google Developers Blog: Transitioning Gemini CLI to Antigravity CLI (May 19, 2026); TechRadar (May 20, 2026); FOSS Force (May 22, 2026).
Frequently asked questions
Is Qwen Code a fork of Gemini CLI?
It started as one. The Qwen Code README says it was based on Gemini CLI v0.8.2 and has been developed independently since v0.1, with no syncing from upstream. The two have since grown apart in interfaces, features and model support.
Can I still use Gemini CLI with a Google AI Pro account?
No. Since Jun 18, 2026 Gemini CLI no longer serves requests for Google AI Pro or Ultra users or free Gemini Code Assist for individuals. Google points those users to Antigravity CLI. Gemini Code Assist Standard or Enterprise customers and paid API-key users keep access.
Which one is free?
Both tools are free, open-source software, but neither gives free cloud model access any more. Qwen Code's OAuth free tier ended in April 2026, and Gemini CLI's free individual access moved to Antigravity CLI in June 2026. Qwen Code can run local models through Ollama or vLLM.
Which is better for CI pipelines?
Gemini CLI has a headless mode with JSON output and a run-gemini-cli GitHub Action for PR reviews and issue triage. Qwen Code offers SDKs for TypeScript, Python and Java, and its docs say to use an API key rather than account login for CI runs.



