Gemini CLI vs Claude Code: the end of the free tier, Google plans, limits and cost

As read on 27 November 2026: pick Gemini CLI if your company already has Gemini Code Assist licences or you want an open-source agent on a paid Gemini API key, and pick Claude Code if you want Claude, on a plan from $20 a month or an API key. Gemini CLI has not been free since 18 June 2026, and Google stopped selling new Code Assist subscriptions on 9 October 2026. Caprock, a free, open-source app, starts Gemini CLI beside Claude Code and shows both sessions' cost in one table.

Dmitriy Solodukha · Updated · 6 min read

Checked against Caprock v0.199.0

Gemini CLI's free tier, 18 June 2026
Ended
Gemini CLI's free tier, 18 June 2026
free, AI Pro and Ultra users moved to Antigravity CLI
Code Assist Standard, a user a month
$22.80
Code Assist Standard, a user a month
1,500 requests a day · no new subscriptions since 9 October 2026
Claude Pro, a month
$20
Claude Pro, a month
$17 billed annually · the entry plan for Claude Code
a median day of my Claude Code at list prices
$153
a median day of my Claude Code at list prices
56 days, 18 Jul – 2 Oct 2026 · Gemini CLI not measured

Google caps Gemini CLI in model requests on a Code Assist licence, and one prompt can make several. Caprock reads Gemini CLI only in sessions it starts, and this machine has none measured, so no Gemini cost here is measured or estimated.

The short answer

Pick Gemini CLI or Claude Code

Pick Gemini CLI if…

  • Your company already has Gemini Code Assist: Standard gives 1,500 requests a day, Enterprise 2,000. Google has sold no new subscriptions since 9 October 2026.
  • You want an open-source agent: Gemini CLI is Apache-2.0 and runs on a paid Gemini API key.
  • You want Gemini only, with Auto picking Pro or Flash for each task.

Pick Claude Code if…

  • You want Claude: Claude Code runs Claude models only, on a plan or an API key.
  • You use it all day: my median Claude Code day came to $153 at list prices, which Max at $100 or Ultra at $200 a month covers inside its limits.
  • You want Claude through Amazon Bedrock, Google Cloud or Microsoft Foundry.

Facts about price, limits and where each runs, read 27 November 2026. Not a verdict on which writes better code.

Your Google plan

Which Google plan still works in Gemini CLI

Since 18 June 2026, a Code Assist licence or a paid API key, and since 9 October 2026 Google sells no new Code Assist subscriptions. Free, Google AI Pro and Ultra users moved to Antigravity CLI.

Google plans and Gemini CLI since 18 June 2026, read 27 November 2026
Plan Price a month Gemini CLI
Google account, no plan $0 Moved to Antigravity CLI
Google AI Pro $19.99 Moved to Antigravity CLI
Google AI Ultra $99.99 or $199.99 Moved to Antigravity CLI
Code Assist Standard $22.80 a user 1,500 a day, existing subscriptions
Code Assist Enterprise $54 a user 2,000 a day, existing subscriptions
Paid Gemini API key Per token Limits vary by tier
Code Assist billed annually is $19 and $45 a user a month. Annual subscriptions renew until 31 January 2027, monthly ones until 31 December 2027. One prompt can make several model requests.

Side by side

Gemini CLI vs Claude Code, side by side

Gemini CLI and Claude Code, from each one's documentation, read 27 November 2026
Gemini CLI Claude Code
Made by Google Anthropic
What it is An agent for the terminal An agent for the terminal and IDEs
Where it runs Terminal; IDEs via extension or ACP Terminal, IDE extensions, desktop app, web
Models Gemini only; Auto picks Pro or Flash Claude only
Open source Yes, Apache-2.0 No
Cheapest way in A paid Gemini API key, per token Claude Pro, $20 a month
Billed Per token, or an existing Code Assist licence Plan fee in usage limits, or per token
Install npm, Homebrew, MacPorts, npx Installer, npm, Homebrew, WinGet, apt, dnf, apk
Read by Caprock Only sessions Caprock starts Yes, every session
Context window Gemini 3.1 Pro: 1M tokens Claude 4.6 and later, except Haiku 5.5: 1M tokens
Free tier Ended 18 June 2026 None; Claude Free leaves it out

Plans, per month

Gemini CLI pricing vs Claude Code pricing

Monthly price of each plan on one axis. Since 18 June 2026 Gemini CLI runs on a Code Assist licence, which Google has not sold to new customers since 9 October 2026, or a paid API key.

Gemini CLI

  • Code Assist Standard $22.80 1,500 a day · $19 billed annually
  • Code Assist Enterprise $54 2,000 a day · $45 billed annually
  • Gemini API key — per token
  • Free, AI Pro, AI Ultra — moved to Antigravity CLI

Claude Code

  • Claude Pro $20 $17 billed annually
  • Team, standard seat $25 $20 billed annually
  • Claude Max $100 5× Pro's usage
  • Team, premium seat $125 $100 billed annually
  • Claude Ultra $200 10× Pro's weekly usage
  • Claude Free — no Claude Code
  • Enterprise — $20 a seat + usage at API rates
  • API key — per token

Both columns share one axis, $0 to $200 a month. Read 27 November 2026 from Google Cloud's Code Assist prices and sunset page, Google's 19 May 2026 notice and claude.com/pricing. Code Assist and Team prices are per user.

Usage limits

Usage limits: requests a day against a five-hour window

How Gemini CLI and Claude Code cap use, read 27 November 2026
Gemini CLI Claude Code
How usage is capped Model requests a day Five-hour window (none on verified Ultra) and a weekly limit
Size published Yes, requests a day Only relative: Max 5× Pro, Ultra 10× a week
Weekly limit None published Yes, across all models
Past the limit A paid API key Wait, usage credits, or an API key
Free Ended 18 June 2026 Claude Free: not included
Entry paid plan Code Assist Standard: 1,500 a day Pro: a five-hour window
Top plan Code Assist Enterprise: 2,000 a day Ultra: 10× Pro's weekly usage
From Google's Code Assist quota page, read 27 November 2026. Google counts model requests across Pro and Flash together, and one prompt can make several.

Per million tokens

Per-token prices on an API key

Per million tokens, paid tier, from each maker's API price list. On an API key both bill per token.

API prices per million tokens, read 27 November 2026
Model Input Cache read Output
Claude Opus 5.5 $4 $0.20 $20
Claude Sonnet 5.5 $2 $0.10 $10
Gemini 3.1 Pro Previewup to 200K tokens a prompt, then over $2.00–4.00 $0.20–0.40 $12.00–18.00
Gemini 3.8 Flashthrough 31 Dec 2026; doubles 1 Jan 2027 $0.75 $0.075 $3.75
Gemini 2.5 Prorouted to 3.8 Flash, at its rates, from 1 Dec 2026 $1.25–2.50 $0.125–0.25 $10.00–15.00
Gemini 2.5 Flashrouted to 3.5 Flash-Lite, at its rates, from 1 Dec 2026 $0.30 $0.03 $2.50
Read 27 November 2026 from ai.google.dev/gemini-api/docs/pricing and Anthropic's API pricing page. Google also bills cache storage by the hour: $0.50 to $4.50 per million tokens an hour on these models through 31 December 2026. Gemini output prices include thinking tokens.

Measured · read 3 October 2026

The Claude Code side, measured

Caprock reads Gemini CLI only in sessions it starts, and has measured none on this machine. These are my Claude Code calls at list prices; the Gemini column stays empty.

Gemini CLI
Not measured — no Gemini CLI sessions measured here.
Claude Code
79,014 calls on 56 active days, 18 Jul – 2 Oct 2026mostly Opus 5 and Opus 4.8

Median cost per call

  • Gemini CLI no Gemini CLI sessions measured here not measured
  • Claude Code 18 Jul – 2 Oct 2026 $0.094
A median Opus 5 call alone: $0.112.

Median active day

  • Gemini CLI no Gemini CLI sessions measured here not measured
  • Claude Code 18 Jul – 2 Oct 2026 $153
56 active days came to $13,922 at list prices.

Median context per call

  • Gemini CLI no Gemini CLI sessions measured here not measured
  • Claude Code 18 Jul – 2 Oct 2026 169K
Almost all of it read from the cache.

Where the money went

  • Gemini CLI no Gemini CLI sessions measured here
  • Claude Code 18 Jul – 2 Oct 2026
Share Claude Code
Cache read 79%
Cache write 16%
Output 5%
Fresh input under 0.1%
Share of the list-price cost. Google bills cached tokens differently: a read rate plus storage by the hour, with no write rate.

Your own machine

Measure both on your machine.

Caprock is a free, open-source desktop app that keeps the ledger of Gemini CLI and Claude Code alike, the sessions you start in your own terminal included: who is waiting on you, who is stuck, how close each plan is to its limit, and each pull request with what it cost, at list price. Run them in its tabs or in your own terminal. Local; no account. It sees the Gemini CLI sessions it starts, not ones started in your own terminal.

Other systems and ways to install ↓

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

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 →

Download on the App StoreDownload on the App Store

On an iPhone, pair it with the app.

Download for Mac

Notarized by Apple. One file for Apple silicon and Intel, macOS 13 or later.

Download for Windows

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:

curl -fsSL https://caprock.dev/mac.sh | sh

Paste in Terminal: it installs Caprock and opens it.Or with Homebrew: brew install --cask dspv/tap/caprock-app

Or run it yourself:

irm https://caprock.dev/win.ps1 | iex

Paste in PowerShell: it installs Caprock for you and opens it.

Or run it yourself:

curl -fsSL https://caprock.dev/linux.sh | sh

Paste in a terminal: it installs Caprock for you, no sudo. Or download the AppImage