Comparison

Gemini CLI vs Claude Code: Who Can Still Use Gemini CLI, and What You Get

Published
Reading time
11 min read

Gemini CLI vs Claude Code after Google cut off free and AI Pro logins on June 18, 2026: who can still run it, pricing, sandboxing, context files and CI.

Gemini CLI and Claude Code were the two default answers for “AI agent in my terminal” through 2025. Gemini CLI is Google’s Apache-2.0 agent with about 109,000 GitHub stars. Claude Code is Anthropic’s proprietary agent, sold with Claude subscriptions. In November 2026 the comparison has a twist most older articles miss: on June 18, 2026, Google stopped serving Gemini CLI for free and Google AI Pro or Ultra accounts.

So the first question is no longer “which is smarter” but “can I still log in”. We checked both tools on November 18, 2026, against their docs, GitHub repositories and Google’s own deprecation notices.

Quick answer: Gemini CLI or Claude Code?

Pick Claude Code if you are an individual developer. It works with a Claude Pro plan from $17 a month on annual billing, and Gemini CLI no longer serves personal Google logins. Pick Gemini CLI if your company already pays for Gemini Code Assist Standard or Enterprise, or you want an Apache-2.0 agent billed per token on a paid Gemini API key.

If you liked Gemini CLI on a personal account, Google’s own path is Antigravity CLI, not Claude Code.

Gemini CLI vs Claude Code at a glance

The table covers the points that change the choice. Gemini CLI details come from its GitHub repository and geminicli.com docs; Claude Code details come from Anthropic’s docs and pricing page.

Gemini CLIClaude Code
LicenseApache-2.0, open sourceProprietary
Personal Google or Claude loginNo longer served since June 18, 2026Claude Pro, Max or Ultra
Other ways inPaid Gemini API key, Code Assist Standard or EnterpriseAnthropic API key, Bedrock, Vertex AI, Team, Enterprise
ModelsGemini onlyClaude only
Entry pricePer token on a paid API key$17 a month (Pro, annual) or $20 monthly
Project context fileGEMINI.md, file name configurableCLAUDE.md
SandboxOpt-in: Seatbelt, Docker, Podman, gVisor, Windows nativeOpt-in (/sandbox): OS sandbox on macOS, Linux and WSL2
ExtensionsExtensions, skills, hooks, MCP, subagents (experimental)Plugins, skills, hooks, MCP, subagents
Headless modegemini -p, JSON and stream-JSON outputclaude -p, JSON output
Telemetry exportOpenTelemetry, off by defaultOn by default, opt-out variables
Release cadenceWeekly stable, preview and nightlyFrequent npm releases

Who can still use Gemini CLI

Gemini CLI still works, but only for some accounts. Google’s deprecation page says that since June 18, 2026 “you can no longer use the Login with Google option” for the individuals, AI Pro and AI Ultra tiers, and that Code Assist Standard and Enterprise subscriptions follow a separate deprecation schedule.

For who keeps access, the other two sources are clearer. The Google Developers blog post from May 19, 2026 says organizations on a Code Assist Standard or Enterprise license keep their access “unchanged”, and that Gemini CLI stays available with paid Gemini and Gemini Enterprise Agent Platform API keys. The June 18 GitHub announcement says enterprise Code Assist users and API key sign-ins “remain completely unaffected.”

The same blog post explains the move: Google is putting its effort into Antigravity CLI, written in Go, which keeps skills, hooks, subagents and extensions (now called plugins). The GitHub announcement adds that the Antigravity installer copies your skills, MCP servers, agent profiles and GEMINI.md files.

Two things we noticed while checking on November 18:

  • The Gemini CLI README now warns that there is no free tier, that the tool is “Not tuned for the Gemini 4 series” or later releases, and asks people not to use it to benchmark Gemini models.
  • The quotas page on geminicli.com still opens with “a generous free tier” and lists 1,000 requests a day for Code Assist for individuals. That page is out of date on the free tier; the deprecation notice is the one to trust. It is also the only page we found with daily request limits for Standard and Enterprise.

What this means for you: if you are on a personal Google account, Gemini CLI is effectively closed to you. Comparisons written before June 2026 that call it “the free option” no longer apply.

Models: Gemini only vs Claude only

Each tool is tied to its vendor’s models. Gemini CLI routes between Gemini models and has a model routing feature, but it has no official setting for Claude, OpenAI or local models. Claude Code runs Claude models only: Opus 5.5, Sonnet 5.5, Haiku 5.5 and the Fable 5 line, depending on your plan.

Claude Code can be pointed at local models through Ollama’s Anthropic-compatible endpoint, but Anthropic does not support it. We covered the trade-offs in our guide to running Claude Code with a local LLM.

What this means for you: pick the model family first. Gemini CLI also flags that it is not tuned for Gemini 4, so if you want the newest Gemini models in a terminal, Google points you to Antigravity CLI instead.

Context files: GEMINI.md vs CLAUDE.md

Both tools load project instructions from a Markdown file. Gemini CLI reads a global ~/.gemini/GEMINI.md, files in your workspace and its parents, and “just in time” files in folders the agent touches, as its GEMINI.md docs describe. Claude Code reads CLAUDE.md files in a similar hierarchy, as covered in its memory docs.

Gemini CLI lets you rename the file: setting context.fileName to ["AGENTS.md", "CLAUDE.md", "GEMINI.md"] makes it read all three. It also supports @file.md imports and a /memory show command that prints the combined context.

What this means for you: a team can keep one instructions file. Point Gemini CLI at your existing CLAUDE.md or AGENTS.md instead of maintaining two copies.

Sandboxing and approvals

Both sandboxes are opt-in. Gemini CLI’s is more flexible; Claude Code’s is built on OS features and covers fewer platforms. Gemini CLI enables it with -s or GEMINI_SANDBOX, and supports macOS Seatbelt, Docker, Podman, gVisor on Linux and a native Windows mode, per its sandbox docs.

The default macOS Seatbelt profile in Gemini CLI limits writes to the project folder but allows network access. The Docker and Podman options run the agent inside the ghcr.io/google/gemini-cli image. Gemini CLI also has trusted folders and a policy engine for tool rules.

Claude Code does not ask before every step by default. Per its permission modes docs, interactive terminal and VS Code sessions on v2.1.283 or later start in auto mode, where a separate classifier model reviews actions before they run instead of prompting you. claude -p and Agent SDK runs start in Manual mode, which denies calls that need approval unless a rule, hook or callback allows them. Its sandboxing is off by default: you turn it on with /sandbox, and it then isolates shell commands on macOS, Linux and WSL2. Hooks and local MCP servers run outside it. It has no native Windows sandbox; on Windows you use WSL2.

What this means for you: if you need container isolation or a native Windows sandbox, Gemini CLI has more options. If you want fewer prompts out of the box, Claude Code’s auto mode does that, and you can switch to Manual mode to approve each step yourself.

Extensions, skills, hooks and subagents

Feature for feature, the two tools have converged. Both support MCP servers, skills, hooks and headless runs. Gemini CLI packages add-ons as extensions and marks subagents and plan mode as experimental. Claude Code ships subagents, plugins and plan mode as stable features documented in its subagents and hooks guides.

Gemini CLI also has checkpointing and rewind to undo agent changes, and token caching for long sessions. Claude Code has checkpoints and rewind too.

What this means for you: the extension model will not decide this for most people. If your team depends on subagents daily, Claude Code’s are the more mature of the two.

Automation and CI

Both tools run without a chat window. Gemini CLI’s headless mode takes a prompt with -p and returns --output-format json or stream-json. Claude Code’s claude -p does the same with its own JSON formats. Both can run inside GitHub Actions with an API key.

What this means for you: pick by billing, not syntax. In CI you will use an API key either way, so the per-token price of the model you choose matters more than the command line.

Pricing: paid Gemini API vs Claude plans

With personal logins gone, Gemini CLI has no flat monthly plan for individuals. You pay per token on a paid Gemini API key, or your company pays for a Code Assist Standard or Enterprise seat. Claude Code starts with Claude Pro at $17 a month on annual billing or $20 monthly; Claude Free does not include it.

PlanWhat you payNotes
Gemini CLI, paid API keyPer tokenNo subscription; price depends on the Gemini model
Gemini CLI, Code Assist Standard or EnterprisePer seat, set by Google Cloud1,500 (Standard) or 2,000 (Enterprise) requests per user per day, per the older quotas page above
Claude Pro$17 a month annual, $20 monthlyEntry plan with Claude Code
Claude Max$100 a month5x Pro usage
Claude Ultra$200 a month10x weekly usage, no 5-hour limit for verified accounts
Claude APISonnet 5.5 at $2 in and $10 out per million tokensPay per token, no plan

What this means for you: a flat subscription is easier to budget. If you only run an agent a few times a week, a pay-per-token Gemini API key can cost less than Claude Pro, but you only know after you measure your own workload.

A third option: Atomic Agent

Atomic Agent is an MIT-licensed, local-first terminal and desktop agent. Unlike Gemini CLI and Claude Code, it is not tied to one model vendor, and its default model runs on your own machine, so you can start with no API key and no account.

What matters for this comparison:

  • Any model family. The default provider is a local llama-server on 127.0.0.1, and the Ollama and LM Studio presets need no key. You can add Gemini, Claude or other cloud keys alongside them.
  • Imports from Claude Code. Skills, memory, MCP servers, sessions and, if you opt in, your Anthropic API key. There is no Gemini CLI importer.
  • Keys stay local. Cloud keys go into files under ~/.atomic-agent with 0600 permissions. Since v0.8.0, atomic-agent config secrets keychain moves them to the OS keychain, but it is off by default.
  • Telemetry is on by default. Events carry provider, model, token and cost data without message content. Turn it off with analytics.enabled: false or the Privacy toggle in the desktop app.

To try it, download Atomic Agent here.

Frequently asked questions

FAQ

Gemini CLI vs Claude Code, answered.

  • Can I still use Gemini CLI for free?

    No, not with a personal Google login. Since June 18, 2026, Gemini CLI stopped serving requests for free Gemini Code Assist for individuals, Google AI Pro and Google AI Ultra accounts, and the Login with Google option no longer works for those tiers. Google says it stays available with paid Gemini API keys and with Gemini Code Assist Standard or Enterprise licenses.

  • Is Gemini CLI being replaced by Antigravity CLI?

    Yes, for individual users. Google announced Antigravity CLI on May 19, 2026 as the terminal product it will focus on, and its installer copies Gemini CLI skills, MCP servers, agents and GEMINI.md memory. Google says Gemini CLI stays supported for enterprise Code Assist customers and paid API keys, so it is not shut down.

  • Can Claude Code use Gemini models?

    No, not officially. Claude Code is built for Claude models, and Anthropic does not support routing it to other model families. Gemini CLI, in turn, only talks to Gemini models. If you want one terminal agent across both, you need a third-party, multi-provider tool.

  • Does Gemini CLI read CLAUDE.md or AGENTS.md?

    Yes, if you tell it to. Gemini CLI loads GEMINI.md by default, and the context.fileName setting accepts a list such as AGENTS.md, CLAUDE.md and GEMINI.md. Claude Code reads CLAUDE.md files, so a team can keep one instructions file and point both tools at it.

  • Which one is better for CI and scripts?

    Neither wins outright. Both have a headless print mode with JSON output: gemini -p with --output-format json or stream-json, and claude -p with its own JSON output formats. Gemini CLI with a paid API key bills per token with no seat, while Claude Code in CI usually runs on an Anthropic API key, also per token.

Where this leaves you

If your employer pays for Gemini Code Assist, Gemini CLI is a capable, open-source agent with more sandbox options than Claude Code, and nothing about the June change affects you. Keep it.

If you used Gemini CLI on a personal account, you have two realistic moves: follow Google to Antigravity CLI, or switch model families and try Claude Code. For more choices, including open-source agents that run local models, see our list of open-source Claude Code alternatives and the OpenCode vs Claude Code comparison.


Gemini CLI access rules, features and sandbox options were checked against Google’s deprecation page, the Google Developers blog, the gemini-cli GitHub repository and announcement, and geminicli.com docs on November 18, 2026. Claude Code plans and features were checked against claude.com/pricing and Anthropic’s docs on the same day. Atomic Agent claims were checked against its source at v0.8.0 and Desktop v0.0.9 (November 17, 2026). We did not run either agent for this comparison and have no cost measurement yet.


Get new posts
by email

One email when we post something new.

Share
Written by
Nadya Dudka Product, Atomic Agent
Andrew Dyuzhov SEO and growth

Run your local agent
in one click