Gemini CLI vs Claude Code: which terminal agent to use
AutoRouterUpdated 9 min read
Use AutoRouter, the Mac app for all your coding agents, to run Gemini 4 models inside Claude Code: it adds Gemini 4 Carbon, Gemini 4 Neon, Gemini 4 Hydrogen and 20+ other models to /model with no keys or endpoints to set up, uses the AI subscriptions you already pay for first, and shows each request's model and cost. If you are choosing a terminal agent, most comparisons of the two are out of date. Gemini CLI is Google's Apache 2.0 terminal agent, and since June 18, 2026 it is maintained for Gemini Code Assist Standard and Enterprise licenses on Google Cloud, with "no free tier or Google AI plans"; personal Google accounts moved to Antigravity CLI. Claude Code is Anthropic's agentic coding tool for the terminal, IDEs, a desktop app and the web, included in Claude Pro at $20 a month ($17 billed annually), Max at $100 and Ultra at $200 (Anthropic).
AutoRouter wrote this post, and AutoRouter doesn't work inside Gemini CLI. Every claim about both tools comes from Google's and Anthropic's own pages, read on November 18, 2026.
What changed with Gemini CLI in 2026?
On June 18, 2026, Gemini CLI stopped serving personal accounts. Google's notice says Gemini Code Assist's IDE extensions and Gemini CLI stopped serving requests for Gemini Code Assist for individuals, Google AI Pro and Google AI Ultra, and "Login with Google" no longer reaches them on those tiers (Google). Gemini CLI's README now says free individual access and Google AI Pro and Ultra "moved to Antigravity CLI on June 18, 2026", and that the tool is "not tuned for the Gemini 4 series" (Gemini CLI README).
So the comparison depends on your account. With a Gemini Code Assist Standard or Enterprise license, Gemini CLI still works and stays open source. With a personal Google account, Google's terminal agent is now Antigravity CLI (agy), and Google Antigravity vs Claude Code compares that platform.
What is the difference between Gemini CLI and Claude Code?
Gemini CLI is an open-source terminal agent for Google Cloud teams, and Claude Code is Anthropic's agent for the terminal and several other surfaces. Gemini CLI signs in with Google for Code Assist license holders, or takes a Gemini API key or Vertex AI, connects MCP servers and reads project context from GEMINI.md (Gemini CLI README). Claude Code reads CLAUDE.md, connects MCP servers, and adds skills, hooks and subagents (Anthropic). As of November 18, 2026:
| Gemini CLI | Claude Code | |
|---|---|---|
| Made by | Anthropic | |
| License | Apache 2.0, open source | All rights reserved |
| Who it's for | Gemini Code Assist Standard and Enterprise, Code Assist for GitHub on Google Cloud | Anyone with a Claude plan or an Anthropic API key |
| Sign-in | Google sign-in with a Code Assist license, a Gemini API key, or Vertex AI | A Claude plan, an API key, or Bedrock, Google Cloud or Microsoft Foundry |
| Surfaces | Terminal | Terminal, VS Code, JetBrains, desktop app, web |
| Models | Gemini models, chosen with -m | Claude models, starting on Claude Opus 5.5 |
| Project context | GEMINI.md | CLAUDE.md, or AGENTS.md |
| Free tier | None | None; Claude Code isn't on Claude's Free plan |
How much do Gemini CLI and Claude Code cost?
Gemini CLI costs nothing to install, and you pay for the model through a Code Assist license, Vertex AI or a Gemini API key. On a paid Gemini API key, as of November 18, 2026, Gemini 4 Carbon costs $2 per million input tokens and $10 per million output tokens through November 30, 2026, then $4 and $20 from December 1; Gemini 4 Neon costs $3 and $15; and Gemini 4 Hydrogen $1.50 and $7.50 (Google). Claude Code comes with Claude Pro at $20 a month ($17 billed annually), Max at $100 and Ultra at $200 (Anthropic), or bills every token on an API key, where Claude Opus 5.5 costs $4 and $20 per million (Anthropic).
Gemini 4 Carbon's price doubles on December 1, 2026, so a task that costs $0.10 on it in November costs $0.20 in December at the same token counts. On Claude plans, the five-hour period starts with your first message and resets in full five hours later, weekly limits apply across all models, and Claude Code shares those limits with your chats in Claude; verified Ultra accounts have no five-hour limit (Anthropic). Claude Code pricing covers each plan.
Should you move to Antigravity CLI or Claude Code?
Move to Antigravity CLI if you want to stay on Google's models with a personal account; move to Claude Code if you want Anthropic's agent and Claude models on a Claude plan. Antigravity CLI is in every Antigravity plan, including the $0 individual plan with a weekly quota (Google). On first run, agy offers to convert Gemini CLI extensions into plugins, moves MCP servers into mcp_config.json, and still reads GEMINI.md and AGENTS.md; workspace skills must move from .gemini/skills/ to .agents/skills/ (Antigravity docs).
For Claude Code, rename GEMINI.md to CLAUDE.md, or keep an AGENTS.md, which Claude Code can read in its place (Anthropic). Its MCP servers are configured with claude mcp add; Claude Code MCP servers covers the details.
How do you use Gemini models in Claude Code?
Install AutoRouter and pick a Gemini model with /model. AutoRouter adds Gemini 4 Carbon, Gemini 4 Neon, Gemini 4 Hydrogen and Gemini 4 Argon to Claude Code's model picker beside the Claude models and 20+ others; the full list, with each model's maker and price, is on AutoRouter's models page. Gemini models are pay-per-use on AutoRouter Pro, at the provider's price plus 10%, and choosing one sends your requests straight to it.
- Download AutoRouter for macOS from autorouter.com.
- Open it, sign in or create a free account, sign in to your plans, allow Accessibility, and click Enable for Claude Code.
- Start a new Claude Code session, run
/model, and choose AutoRouter or any model in the list.
Choosing AutoRouter instead of a specific model lets it pick for each task: your rules first, then how hard the task is, with hard work on the strongest model your plans cover and quick work on the model that costs you least. Your plans come first, and every request shows its model, what it cost and why.
AutoRouter Free costs $0 a month and routes across the AI subscriptions you already pay for; it connects two of them. Pro costs $50 a month with $20 of included usage each month, connects any number of subscriptions and adds every other model at the provider's price plus 10%. New accounts get a week of Pro, or until $20 of usage is spent, whichever comes first. Natively, Claude Code reaches another maker's model only through a gateway: you set ANTHROPIC_BASE_URL to the gateway and ANTHROPIC_AUTH_TOKEN to its key, which replaces your claude.ai login, so those requests bill per token and your plan's limits don't apply (Anthropic). Its gateway model discovery keeps only model IDs that contain claude or anthropic, so other models must be named with --model or ANTHROPIC_MODEL (gateway protocol). How to use Gemini in Claude Code and Codex walks through that gateway route with LiteLLM.
The trade-offs are real. AutoRouter runs only on macOS 14 or later, Claude Code needs Node 22.18 or later to use it, and it is in beta. Requests pass through AutoRouter's servers on their way to each provider; AutoRouter doesn't store transcripts, but keeps the message that opens each request, up to 4,000 characters, to review routing (AutoRouter privacy). Paid models through Pro cost 10% more than the same model on your own key.
Should you pick Gemini CLI or Claude Code?
Pick by the account you have and the models you want:
- Pick Gemini CLI if your organization has Gemini Code Assist Standard or Enterprise on Google Cloud, or you want an open-source agent you can read and fork, on a Gemini API key or Vertex AI.
- Pick Antigravity CLI if you have a personal Google account or Google AI plan and want Google's terminal agent.
- Pick Claude Code if you want Claude models on a Claude plan with no per-token charge, and an agent that also runs in your IDE, a desktop app and the web.
- Or keep Claude Code and add Gemini, with AutoRouter: Gemini 4 models and 20+ others sit in
/modelon a Mac, and your plans pay first.
Claude Code alternatives compares the other agents people try, and which model for which coding task covers when a Gemini model fits the work.
Questions
Is Gemini CLI still free?
No. Since June 18, 2026, Gemini CLI's README says it has "no free tier or Google AI plans" and serves Gemini Code Assist Standard and Enterprise licenses, or a Gemini API key or Vertex AI, which bill per use (Gemini CLI README). Google's no-cost individual access moved to Antigravity CLI.
Is Gemini CLI open source?
Yes. Gemini CLI is licensed under Apache 2.0 (GitHub). Claude Code's repository carries an "All rights reserved" notice from Anthropic (LICENSE), so it isn't open source.
Can Claude Code use Gemini models?
Yes. With AutoRouter on a Mac, pick Gemini 4 Carbon, Neon, Hydrogen or Argon in /model with no keys. Without it, run a gateway such as LiteLLM with your Gemini API key, point ANTHROPIC_BASE_URL at it and pass the model with --model; those requests bill to your Gemini key (Anthropic).
Does AutoRouter work with Gemini CLI?
No. AutoRouter works with Codex (the app and the CLI), the Claude Code CLI, Cursor, Claude Desktop, T3, OpenCode, Pi and Terminal, on macOS 14 or later. Gemini CLI isn't on that list.
Sources
- AutoRouter
- AutoRouter models, checked November 18, 2026
- AutoRouter privacy
- Gemini CLI README, checked November 18, 2026
- Gemini Code Assist for individuals deprecation, Google, checked November 18, 2026
- Gemini API pricing, Google, checked November 18, 2026
- Antigravity: getting started, Google, checked November 18, 2026
- Antigravity: migrating from Gemini CLI, Google, checked November 18, 2026
- Antigravity pricing, Google, checked November 18, 2026
- Claude Code LICENSE, checked November 18, 2026
- Claude Code: enterprise deployment overview
- Claude API pricing, Anthropic, checked November 18, 2026
- Plans and pricing, Anthropic, checked November 18, 2026
- Claude Code overview, Claude Code docs, checked November 18, 2026
- Model configuration, Claude Code docs, checked November 18, 2026
- LLM gateways, Claude Code docs
- Gateway protocol, Claude Code docs
- Understanding usage and length limits, Claude Help Center, checked November 18, 2026