The full guide
Gemini CLI vs Claude Code, step by step
Gemini CLI is Google's open-source agent for the terminal, under the Apache-2.0 licence; Claude Code is Anthropic's and runs Claude. Gemini CLI no longer has a free tier: on 18 June 2026 Google stopped serving free, Google AI Pro and Ultra users in it and moved them to Antigravity CLI. It now runs on a Gemini Code Assist Standard or Enterprise licence or a paid API key, and Google has sold no new Code Assist subscriptions since 9 October 2026, so for anyone new it is a paid API key. Claude Code needs a paid Claude plan, from $20 a month or $17 billed annually, or an API key. Caprock, a free, open-source app, starts Gemini CLI beside Claude Code and adds both to one cost table. Every Google fact below was re-read from Google's own pages on 27 November 2026.
Is Gemini CLI still free?
No. Google announced on 19 May 2026 that "on June 18, 2026, Gemini CLI and Gemini Code Assist IDE extensions will stop serving requests for Google AI Pro and Ultra, as well as those using it free of charge". Gemini CLI's own docs now carry the notice that it "was replaced by Antigravity CLI" for unpaid and Google One users.
Until then a personal Google account got 1,000 model requests a day, Google AI Pro 1,500 and Ultra 2,000. Google's own quota table still lists those figures on 27 November 2026, under the banner that says those users moved to Antigravity CLI, so the table describes tiers that are gone, and so does any page that quotes it.
The free route from Google is now Antigravity CLI, agy, on Antigravity's individual plan with a weekly quota: Antigravity vs Claude Code.
Who can still use Gemini CLI
Google keeps Gemini CLI for three groups:
- A paid API key — Gemini API or Gemini Enterprise Agent Platform, billed per token, with limits set by the key's tier. The only way in for someone starting now.
- Code Assist Standard — 1,500 model requests a day, $22.80 a user a month or $19 billed annually, for companies that already have it.
- Code Assist Enterprise — 2,000 a day, $54 a user a month or $45 billed annually, likewise.
Google stopped selling new Code Assist Standard and Enterprise subscriptions on 9 October 2026. Existing ones last to the end of their contract; annual subscriptions can renew until 31 January 2027 and monthly ones until 31 December 2027, and licences can be added until 31 January 2027. Google points those companies at Antigravity inside Gemini Enterprise next, and limits Code Assist to the Gemini 3.x models.
The repository stays Apache-2.0, and releases continue: v0.71.1 came out on 24 November 2026. The limit counts model requests, not prompts: Google's quota page says "one prompt might result in multiple model requests", and the daily limit is shared across Pro and Flash.
Can I use my Google AI Pro or Ultra subscription?
Not in Gemini CLI since 18 June 2026. Sign in to Antigravity CLI with the same Google account instead: Pro and Ultra raise Antigravity's quota, refreshed every five hours up to a weekly limit. Google AI Pro is $19.99 a month in the US, Ultra $99.99 or $199.99.
Moving over keeps most of a setup. Antigravity CLI reads the same GEMINI.md and AGENTS.md files, agy plugin import gemini turns Gemini CLI extensions into Antigravity plugins, and a project's skills move from .gemini/skills/ to .agents/skills/.
Gemini CLI pricing, and what Claude Code costs
Gemini CLI pricing is now per token: the agent is free and open source, and you pay for a paid Gemini API or Gemini Enterprise Agent Platform key. The flat fees are for companies that already hold Code Assist, which Google stopped selling on 9 October 2026: Standard at $22.80 a user a month ($19 billed annually), Enterprise at $54 ($45 billed annually).
Claude Code's cheapest is Claude Pro at $20, or $17 billed annually. They cap use differently. Google counts requests a day. A Claude plan resets on a five-hour window with a weekly limit on top; Max sells 5× Pro's usage at $100, and Ultra 10× Pro's weekly usage at $200, with no five-hour limit once verified. The details: Claude Code pricing.
On an API key both bill per token. Gemini 3.8 Flash costs $0.75 per million input tokens and $3.75 output through 31 December 2026, and twice that from 1 January 2027; Gemini 3.1 Pro Preview $2 and $12 for prompts up to 200K tokens, and $4 and $18 above. From 1 December 2026 Google routes Gemini 2.5 Pro to 3.8 Flash and 2.5 Flash to 3.5 Flash-Lite, at their rates. Claude Sonnet 5.5 is $2 and $10, Opus 5.5 $4 and $20. Google bills cache reads per token and storage by the hour, and has no cache-write rate. Every Claude rate: Claude API pricing.
What a day of Gemini CLI costs in tokens is not on this page. Caprock reads Gemini CLI only in sessions it starts, and this machine has none measured, so there is no Gemini figure here, measured or estimated. On the Claude side, my median active day came to $153 at list prices, over 56 active days from 18 July to 2 October 2026 — a fee a Max plan covers inside its limits.
Which models each runs
Gemini CLI runs Gemini models. Its Auto setting picks between Pro and Flash for each task, Gemini 3 or Gemini 2.5, and you can pick one by hand with /model or --model; sub-agents may still use other models. Google's model page gives Gemini 3.1 Pro a 1M-token context window. Gemini CLI's docs say it "has not been optimized for Gemini 4 Argon" and send you to Antigravity for that model. Claude Code runs Claude models only; Claude 4.6 and later, except Haiku 5.5, run a 1M-token context at the standard price. Neither runs the other's models.
Where each runs
Gemini CLI installs with npm, Homebrew, MacPorts or Anaconda, or runs once with npx, and needs Node.js 20 or later. It runs in a terminal, in VS Code and compatible editors through a companion extension, and in JetBrains and Zed through the Agent Client Protocol. Claude Code runs in a terminal, a desktop app and IDE extensions, and can reach Claude through Amazon Bedrock, Google Cloud or Microsoft Foundry.
Which one to pick
Pick Gemini CLI if your company already has Code Assist Standard or Enterprise, or you want an open-source agent on a paid Gemini API key; a new company cannot buy Code Assist any more. If you wanted Google's agent for free or on Google AI Pro, that is Antigravity CLI now. Pick Claude Code if you want Claude, and on a plan if you use it most of the day. You can run both side by side; each needs its own sign-in.
Antigravity vs Claude Code, Codex vs Claude Code and Cursor vs Claude Code compare the other agents.
Gemini CLI, Claude Code and Amazon's Kiro CLI
Amazon's agent for the terminal is Kiro CLI. It succeeded the Amazon Q Developer CLI from 17 November 2025, and AWS's Q docs now say "The Q CLI has become the Kiro CLI". You install it with one curl line, start it with kiro-cli, and sign in with GitHub, Google, an AWS Builder ID or IAM Identity Center. Where Gemini CLI runs only Gemini and Claude Code only Claude, Kiro CLI lets Auto route each task or lets you pick a model: Claude Opus 5.5, Sonnet 5.5 or Haiku 5.5, OpenAI's GPT-5.6, or an open-weight model such as DeepSeek 3.2 or Qwen3 Coder Next. It ships under the AWS Intellectual Property License, where the Q Developer CLI was Apache 2.0. Kiro's plans, credits and spec-driven workflow against Claude Code: Kiro vs Claude Code.
See both in one place
Caprock reads Claude Code's transcripts from disk, whether or not it started the session, and prices every call, a list-price estimate as Claude Code's own /usage is, beside the plan's dollars and the share of the weekly limit the work used. It also starts Gemini CLI from its New agent sheet, asks it to write its telemetry to a file, and reads that file, so those sessions' turns, tokens and cost land in the same table. Gemini CLI sessions started in your own terminal are not seen. Caprock neither starts nor reads Antigravity CLI.
Free, open source; nothing leaves your machine. Install Caprock and it reads back every Claude Code session still on disk.
Questions people ask
- Is Gemini CLI still free?
- No. On 18 June 2026 Google stopped serving free, Google AI Pro and Ultra users in Gemini CLI and moved them to Antigravity CLI. Gemini CLI stays on Code Assist Standard and Enterprise licences and paid API keys.
- Can I use my Google AI Pro or Ultra subscription with Gemini CLI?
- Not since 18 June 2026. Google AI Pro and Ultra now work in Antigravity CLI, where they raise the quota.
- How much does Gemini CLI cost?
- The agent is free and open source; you pay per token on a paid Gemini API key. Companies that already have Gemini Code Assist pay $22.80 a user a month or $19 billed annually for Standard, with 1,500 model requests a day, or $54 or $45 for Enterprise, with 2,000; Google stopped selling new Code Assist subscriptions on 9 October 2026 and ended free use of Gemini CLI on 18 June 2026.
- Is Gemini CLI cheaper than Claude Code?
- There is no flat fee to compare any more for someone new: Google stopped selling Code Assist on 9 October 2026, so a new Gemini CLI user pays per token on a Gemini API key, while Claude Code starts at Claude Pro, $20 a month. On an API key both bill per token.
- What are Gemini CLI's limits?
- Requests a day: 1,500 on Code Assist Standard, 2,000 on Enterprise. A paid API key has limits set by its tier. One prompt can make several requests.
- Which models does Gemini CLI use?
- Gemini only. Auto picks between Pro and Flash for each task, and /model picks one by hand. Claude Code runs Claude models only.
- Can Caprock track Gemini CLI?
- Yes, for sessions Caprock starts: Caprock, a free, open-source app, starts Gemini CLI from New agent, points GEMINI_TELEMETRY_OUTFILE at a file and reads it, so turns, tokens and cost sit next to Claude Code's sessions. Gemini CLI sessions started in your own terminal are not seen.
- Which is better, Gemini CLI or Claude Code?
- Neither across the board. Gemini CLI suits a team with Gemini Code Assist licences or a paid Gemini API key, and it is open source; Claude Code suits anyone who wants Claude on a plan or a key. This page compares price and limits, not code quality.
Sources
- Google Developers Blog — Transitioning Gemini CLI to Antigravity CLI, 19 May 2026, read 27 November 2026
- Amazon Q Developer docs — The Q CLI has become the Kiro CLI, read 27 November 2026
- Kiro docs — CLI, read 27 November 2026
- Kiro docs — Models, read 27 November 2026
- Kiro docs — Upgrading from Amazon Q Developer CLI: 17 November 2025, AWS Intellectual Property License, read 27 November 2026
- Amazon press release — Kiro, Amazon Web Services' agentic coding environment, September 2026, read 22 October 2026
- Gemini CLI on GitHub — the transition announcement, read 27 November 2026
- Gemini CLI docs — quotas and pricing, still printing the personal-account quotas under its "replaced by Antigravity CLI" banner, read 27 November 2026
- Gemini CLI on GitHub — README, Apache-2.0, read 27 November 2026
- Gemini CLI on GitHub — releases, latest v0.71.1 (24 November 2026), read 27 November 2026
- Gemini CLI docs — model selection, read 27 November 2026
- Gemini CLI docs — installation, read 27 November 2026
- Gemini CLI docs — IDE integration, read 27 November 2026
- Gemini Code Assist — quotas and limits, updated 10 November 2026, read 27 November 2026
- Gemini Code Assist Standard and Enterprise pricing (hourly licence rates x 730), read 27 November 2026
- Gemini Code Assist Standard and Enterprise subscriptions — no new purchases from 9 October 2026, renewals until 31 January 2027 (annual) and 31 December 2027 (monthly), updated 10 November 2026, read 27 November 2026
- Gemini Code Assist consumer accounts — individuals, Google AI Pro and Ultra stopped on 18 June 2026 (where codeassist.google now redirects), read 27 November 2026
- Gemini API pricing: 2.5 Pro and 2.5 Flash routed to 3.8 Flash and 3.5 Flash-Lite from 1 December 2026, read 27 November 2026
- Google Antigravity docs — migrating from Gemini CLI, read 27 November 2026
- Claude plans and prices, read 27 November 2026
- Claude Help Center — What is the Max plan?, read 27 November 2026
- Anthropic API pricing, read 27 November 2026
- Caprock — internal/gemini/telemetry.go, Gemini CLI telemetry for sessions Caprock starts
- Caprock — internal/agents/agents.go, GEMINI_TELEMETRY_OUTFILE set for each Gemini CLI session Caprock starts
- Caprock — internal/agents/binaries.go, Spawnable: the agents New agent starts
Try it
The record of every coding agent you run, the sessions it did not start included. Free, open source; nothing leaves your machine.
Caprock is a desktop app: it installs on your computer, not your phone.
Or email yourself the link:
macOS, Windows and Linux. Your phone pairs with it by QR code. Install options →
Notarized by Apple. One file for Apple silicon and Intel, macOS 13 or later.
Windows 10 22H2 or later, x64. Windows may ask once whether to run it: click More info, then Run anyway.
Paste it into Claude Code, Codex or any coding agent.
See what it says ▾
Install the Caprock desktop app for me. It is open source (Apache-2.0), a local app for my coding agents: https://github.com/dspv/caprock What the install does and how to remove it: https://github.com/dspv/caprock/blob/master/docs/install-agent.md Run the install script for my system: https://caprock.dev/mac.sh, /win.ps1 or /linux.sh. Read it before you run it if you like. Leave my Claude Code settings alone; the app asks me itself. Tell me when it's open.
Or run it yourself:
Paste in Terminal: it installs Caprock and opens it.Or with Homebrew: brew install --cask dspv/tap/caprock-app
Or run it yourself:
Paste in PowerShell: it installs Caprock for you and opens it.
Or run it yourself:
Paste in a terminal: it installs Caprock for you, no sudo. Or download the AppImage