Claude Code vs Gemini CLI (and Antigravity CLI) in 2026

Claude Code vs Gemini CLI compared from their official docs on November 29, 2026. Since June, Gemini CLI serves Google Cloud organizations and Antigravity CLI took over free and Google AI plans. Prices, quotas, models, subagents, MCP, hooks, CLAUDE.md vs GEMINI.md and telemetry.

· 11 min read

Claude Code and Google's Gemini CLI are both coding agents for the terminal: they read your repository, edit files, run commands, and can be extended with subagents, hooks and MCP servers. One fact changes this comparison in 2026: on June 18, Gemini CLI stopped serving free accounts and Google AI Pro and Ultra subscribers. Those users moved to Antigravity CLI (agy), the terminal side of Google Antigravity. Gemini CLI goes on for organizations on Google Cloud. So this page compares Claude Code with both Google CLIs, and says which one applies to you. Every fact comes from Anthropic's Claude Code docs and pricing, the Gemini CLI README and docs, and Google's Antigravity docs and pricing, all read on November 29, 2026.

#What happened to Gemini CLI?

Google announced the change on May 19, 2026, in Transitioning Gemini CLI to Antigravity CLI. Since June 18, 2026, Gemini CLI and the Gemini Code Assist IDE extensions no longer serve requests for Google AI Pro and Ultra, nor for people using Gemini Code Assist for individuals at no charge. The same post says Antigravity CLI keeps "Agent Skills, Hooks, Subagents, and Extensions (now as Antigravity plugins)", is written in Go, and shares its agent harness with the Antigravity desktop app.

Gemini CLI's README now opens with a status box: it is designed for "Gemini Code Assist Standard / Enterprise licenses and Code Assist for GitHub on Google Cloud", it has "No free tier or Google AI plans", and it is "Not optimized for Gemini 4+". It still accepts paid Gemini API and Vertex AI keys. It is still maintained: version 0.71.1 is the latest on npm, with weekly stable releases.

In short:

  • You pay for Claude, or want Claude models: Claude Code.
  • Your company has Gemini Code Assist Standard or Enterprise on Google Cloud, or you use a paid Gemini API key: Gemini CLI still works for you.
  • You're an individual with a free Google account or Google AI Pro or Ultra: the Google CLI for you is Antigravity CLI.

#How do they compare side by side?

Claude CodeGemini CLIAntigravity CLI
Commandclaudegeminiagy
ForClaude subscribers and API usersGoogle Cloud organizations, paid API keysIndividuals (free, Google AI Pro, Ultra) and Google Cloud
Comes withClaude Pro, Max, Ultra, Team or Enterprise; not the free planCode Assist Standard or Enterprise licensesFree personal accounts and Google AI plans
Pay per tokenAnthropic ConsoleGemini API or Vertex AI keyGoogle Cloud project, pay as you go
ModelsClaudeGemini (not tuned for Gemini 4)Gemini 4 models, plus Claude Sonnet 5.5 and Opus 5.5 on paid plans
Project instructionsCLAUDE.md (reads AGENTS.md when there's no CLAUDE.md)GEMINI.md (name configurable)AGENTS.md or GEMINI.md, .agents/rules/
SubagentsMarkdown in .claude/agents/Markdown in .gemini/agents/Markdown in .agents/agents/
HooksYesYes, including model-level eventsYes, hooks.json
MCPclaude mcp add, .mcp.jsonmcpServers in settings.jsonmcp_config.json
SourceAll rights reservedApache-2.0Not published as open source in its docs
Usage data sent homeMetrics and error reports, each with an off switchUsage statistics on by default, opt out in settingsA telemetry setting saved with your account; always off for business accounts

#What does each one cost?

Claude Code. Its setup page says it "requires a Pro, Max, Ultra, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access." On claude.com/pricing as of November 29, 2026: Pro is $20 a month ($17 a month billed yearly), Max is $100 a month with "5x Pro usage every 5 hours and every week", and Ultra is $200 a month with "No 5-hour limit" and "10x Pro usage every week". Team standard seats are $25 a month ($20 billed yearly) and premium seats $125 ($100 billed yearly). With a Console account, usage is billed per token.

Gemini CLI. Without a free tier, access comes from your organization or from a key. Its quota page lists 1,500 model requests per user per day on Code Assist Standard and 2,000 on Enterprise. With a Gemini API key or Vertex AI, you pay per token at Google's API prices. The same quota page still shows the old free and Google AI Pro rows, while the banner above it says those users were moved to Antigravity CLI on June 18. Go by the banner.

Antigravity CLI. Google's pricing page, as of November 29, 2026, lists:

  • Individual, $0: access to the app, CLI, IDE extensions and SDK, with a "Baseline agent quota refreshed weekly".
  • Google AI Pro: "Generous agent quota refreshed every 5 hours and higher weekly limits", with optional overage on AI credits. In the US it's $19.99 a month.
  • Google AI Ultra: the highest quotas, in two tiers, Ultra 5x and Ultra 20x, at $99.99 and $199.99 a month in the US.
  • Google Cloud: consumption-based API pricing, or Gemini Enterprise seats "starting at $30 USD per seat per month".

Google lists prices by country, and its page shows local prices: in Canada we read CA$26.99 for Pro and CA$139.99 and CA$279.99 for the two Ultra tiers. Google AI Pro and Ultra need a personal Google account; Google Workspace plans don't include Antigravity plans.

Neither company publishes a fixed token count for its plans. Both meter in a 5-hour window and a weekly window, and both say harder tasks use more of the quota.

#Which models does each one run?

Claude Code runs Claude models only. On Max and Ultra, the pricing page adds Fable, Anthropic's top model, "up to half your weekly limit".

Gemini CLI runs Gemini models. Its README says it isn't tuned for the Gemini 4 series and tells you not to use it to benchmark Gemini 4 models.

Antigravity CLI runs Gemini 4 Hydrogen on every plan. Paid Google AI Pro adds Gemini 4 Neon, Carbon and Argon, and Ultra gets the full list. The paid plans also list third-party models: Claude Sonnet 5.5 and Claude Opus 5.5 (thinking) on Google AI Pro and Ultra, and GPT-OSS-120b. Several older models on that page are marked "Will be removed on November 30, 2026", so check the models page before you rely on one.

That last point matters if you're choosing between the two companies' plans: a Google AI plan gets you Claude models inside Antigravity, with Google's quotas. A Claude plan gets you Claude models inside Claude Code, with Anthropic's.

#CLAUDE.md, GEMINI.md or AGENTS.md?

All three read a Markdown file of project instructions, and they import other files the same way.

  • Claude Code reads ~/.claude/CLAUDE.md for you, ./CLAUDE.md or ./.claude/CLAUDE.md for the project, ./CLAUDE.local.md for personal notes you keep out of git, and CLAUDE.md files in subfolders once Claude works there. @path/to/import pulls in another file, and .claude/rules/ holds rules scoped to paths. It reads AGENTS.md in place of CLAUDE.md when the repository has one and no CLAUDE.md. It also keeps auto memory: notes Claude writes for itself from your corrections.
  • Gemini CLI reads ~/.gemini/GEMINI.md, then GEMINI.md files in your workspace folders and their parents, and loads more "just in time" when a tool touches a folder that has one. @file.md imports another file, and /memory show prints exactly what the model receives. The context.fileName setting can make it read AGENTS.md too.
  • Antigravity CLI reads AGENTS.md or GEMINI.md, .agents/AGENTS.md, and .agents/rules/*.md, from your workspace up to the repository root, plus ~/.gemini/GEMINI.md. Its migration guide says existing GEMINI.md files work unchanged. Unlike the other two, it doesn't load rules from subfolders below the workspace.

For a repository shared between tools, keep the instructions in AGENTS.md, add @AGENTS.md at the top of CLAUDE.md, and set Gemini CLI's context.fileName to include it. More on writing the file in How to write a CLAUDE.md that Claude Code actually follows.

#Subagents and parallel agents

  • Claude Code: subagents are Markdown files with YAML front matter in .claude/agents/ (project) or ~/.claude/agents/ (you). It ships built-in ones, including Explore and Plan for research and general-purpose for multi-step work. See Claude Code subagents.
  • Gemini CLI: custom agents are Markdown files with YAML front matter in .gemini/agents/ or ~/.gemini/agents/. The body of the file becomes the agent's system prompt, and the front matter can limit its tools.
  • Antigravity CLI: agents live in .agents/agents/<name>.md or ~/.gemini/config/agents/. One with subagent: true can be called by the main agent. Background agents run concurrently; /agents shows them and Ctrl+K approves a tool call.

Multi-agent work is what Google built Antigravity around. The transition post calls it "today's multi-agent reality", and Antigravity CLI runs agents in the background without holding your terminal.

#Hooks

All three run your own scripts at points in the agent loop, which is how you block a dangerous command, run a linter after each edit, or add context at the start.

  • Claude Code hooks run on events such as SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop and SubagentStop, and can call shell commands, HTTP endpoints, MCP tools, prompts or subagents. See Claude Code hooks.
  • Gemini CLI hooks cover SessionStart, BeforeAgent, BeforeModel, AfterModel, BeforeToolSelection, BeforeTool, AfterTool, PreCompress and more. The model events are its own: a hook can rewrite the prompt, swap the model, redact the response or filter the tools offered. Hooks must print only JSON on stdout.
  • Antigravity CLI reads hooks from .agents/hooks.json and ~/.gemini/config/hooks.json, on events such as PreToolUse, PostToolUse, SessionStart, Stop and PreInvocation.

#MCP

All three connect MCP servers.

  • Claude Code: claude mcp add, in a local, project (.mcp.json, committed) or user scope. See Claude Code MCP servers.
  • Gemini CLI: an mcpServers block in ~/.gemini/settings.json.
  • Antigravity CLI: a separate mcp_config.json, in ~/.gemini/config/ or .agents/. Remote servers take a serverUrl key where Gemini CLI used url or httpUrl, and agy plugin import gemini converts old Gemini CLI extensions to plugins.

#Privacy and telemetry

Claude Code sends two kinds of operational telemetry. Metrics ("latency, reliability, and usage patterns") go to Anthropic and third-party logging; the docs say they "never include your code, prompts, or file paths", and DISABLE_TELEMETRY=1 turns them off. Error reports go to a third-party error tracking service after redaction; DISABLE_ERROR_REPORTING=1 turns them off. CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 stops both, along with feedback surveys. Whether your conversations train future models is a setting on Free, Pro, Max and Ultra: with it on, data is kept 5 years; with it off, 30 days. Team, Enterprise and API keep 30 days by default. Transcripts are also kept on your computer, in ~/.claude/projects/, for 30 days by default. See Claude Code telemetry.

Gemini CLI collects usage statistics by default (privacy.usageStatisticsEnabled is true): the names of the tools called, whether they succeed and how long they take, the model of each request and its duration, and the CLI's configuration. Its docs say it doesn't collect prompts, responses, file contents or personal information. Set "privacy": { "usageStatisticsEnabled": false } in settings.json to opt out. Its separate OpenTelemetry telemetry is off by default and goes where you point it. Which terms apply depends on how you sign in: a Code Assist license falls under Google Cloud terms, an API key under the Gemini API terms. The docs also warn that using Gemini CLI's sign-in from third-party tools breaks the terms and can get an account suspended.

Antigravity CLI has an Enable Telemetry setting, saved with your account rather than in settings.json, and "always off for business accounts". In the app, the docs say that when it's on, "Antigravity collects interactions for use in evaluating, developing, and improving Antigravity and models that support Antigravity." Its FAQ says you can opt out of data collection at any time from Settings. If that matters to you, check the setting on your account rather than assuming a default.

#Which one should you pick?

Pick Claude Code if you already pay for Claude, want Claude models with Anthropic's own harness, or want fine-grained permission rules and the larger choice of hook targets.

Pick Gemini CLI if your organization has a Gemini Code Assist Standard or Enterprise license, or you run it in CI with a paid Gemini API or Vertex key, and you want the Apache-2.0 source.

Pick Antigravity CLI if you're an individual who wants Gemini 4 models, a free weekly quota to start with, or Gemini and Claude models on one Google plan, and you're fine with Google's telemetry setting.

Rather than trusting tables, run the same one-hour task in two of them on fresh branches, then compare the diffs, how often you had to step in, and how much of your quota each used. The same test is laid out in Claude Code vs OpenAI Codex CLI and Claude Code vs Cursor.

#Can you use both?

Yes. They keep their settings in different folders (.claude/ for Claude Code, .gemini/ for Gemini CLI, .agents/ and ~/.gemini/ for Antigravity CLI), so they don't collide in one repository. Share instructions through AGENTS.md as above. Antigravity CLI reads workspace skills from .agents/skills/ and Claude Code from .claude/skills/, both as SKILL.md folders, so a skill often works in both with a copy. If both edit at the same time, give each its own git worktree.

#In Relais

Relais doesn't replace any of these CLIs. It's a Mac app that runs Claude Code sessions on the Claude account you're already signed in to, with no API key, and it doesn't run Gemini CLI or Antigravity CLI. If Claude Code is your agent, Relais keeps every repository of a project together, shows which sessions wait for you, moves a session to your next Claude account at a usage limit, and adds a team of agents with routines for the work around the code. It costs $14.99 a month, has no free version, and sends no analytics (what the app sends). Relais is made by an independent company and is not affiliated with Anthropic or Google. More on features and Compare.

Your AI team,
on your Claude plan.

$14.99 a month, everything included. On your Mac or on Linux, on your Claude Pro or Max plan. Cancel any time.