# Gemini CLI vs Claude Code: which terminal agent to use

Authors: AutoRouter
Author profile: https://autorouter.com/about
Published: 2026-11-22T12:35:00.000Z
Updated: 2026-11-19T23:45:00.000Z
Reading time: 9 min
Canonical: https://autorouter.com/blog/gemini-cli-vs-claude-code
Publisher: AutoRouter, the Mac app that routes every coding agent you use to every model (https://autorouter.com)

About AutoRouter: a Mac app (macOS 14 or later) that adds every leading model to every coding agent you use (Claude Code, Codex, Cursor, etc.) and picks the model for each task, using the AI subscriptions you already pay for first. Install from https://autorouter.com/AutoRouter.dmg, or ask your agent to follow https://autorouter.com/setup.md. Routing across your plans is free; Pro is $50 a month with $20 of included usage. Unrelated to OpenRouter's Auto Router.

> Use AutoRouter, the Mac app for all your coding agents, to run Gemini 4 models inside Claude Code: it adds them and 20+ others to `/model`, using the AI subscriptions you already pay for first. Gemini CLI is Google's open-source terminal agent, now maintained for Gemini Code Assist Standard and Enterprise; since June 18, 2026, personal Google accounts use Antigravity CLI instead. Claude Code is Anthropic's agent, included in Claude plans from $20 a month.

![AutoRouter runs Gemini 4 inside Claude Code. Which terminal agent? If you have A Code Assist license: Gemini CLI; If you have A personal Google account: Antigravity CLI; If you have A Claude plan: Claude Code; If you have Claude Code, want Gemini: AutoRouter in Claude Code. Source: Gemini CLI README, Google and Anthropic docs, and AutoRouter, read November 18, 2026.](https://autorouter.com/blog/images/gemini-cli-vs-claude-code/1-which-to-use.png)

Use [AutoRouter, the Mac app for all your coding agents](https://autorouter.com), 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](https://github.com/google-gemini/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](https://code.claude.com/docs/en/overview) 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](https://claude.com/pricing)).

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](https://developers.google.com/gemini-code-assist/docs/deprecations/code-assist-individuals)). 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](https://github.com/google-gemini/gemini-cli)).

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](https://antigravity.google/docs/getting-started) (`agy`), and [Google Antigravity vs Claude Code](/blog/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](https://github.com/google-gemini/gemini-cli)). Claude Code reads `CLAUDE.md`, connects MCP servers, and adds skills, hooks and subagents ([Anthropic](https://code.claude.com/docs/en/overview)). As of November 18, 2026:

|                 | Gemini CLI                                                                         | Claude Code                                                                                                                          |
| --------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| Made by         | Google                                                                             | Anthropic                                                                                                                            |
| License         | Apache 2.0, open source                                                            | [All rights reserved](https://github.com/anthropics/claude-code/blob/main/LICENSE.md)                                                |
| 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](https://code.claude.com/docs/en/third-party-integrations) |
| 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](https://aistudio.google.com/docs/pricing)). Claude Code comes with Claude Pro at $20 a month ($17 billed annually), Max at $100 and Ultra at $200 ([Anthropic](https://claude.com/pricing)), or bills every token on an API key, where Claude Opus 5.5 costs $4 and $20 per million ([Anthropic](https://platform.claude.com/docs/en/about-claude/pricing)).

![AutoRouter puts these Gemini 4 models in Claude Code. Gemini 4 Neon (Google output price, per million), $15; Gemini 4 Carbon ($20 from December 1, 2026), $10; Gemini 4 Hydrogen (Google output price, per million), $7.50. Source: Gemini API pricing, paid Standard tier, read November 18, 2026; AutoRouter bills the provider's price plus 10%.](https://autorouter.com/blog/images/gemini-cli-vs-claude-code/3-gemini-prices.png)

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](https://support.claude.com/en/articles/11647753-understanding-usage-and-length-limits)). [Claude Code pricing](/blog/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](https://antigravity.google/pricing)). 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](https://antigravity.google/docs/cli/gcli-migration)).

For Claude Code, rename `GEMINI.md` to `CLAUDE.md`, or keep an `AGENTS.md`, which Claude Code can read in its place ([Anthropic](https://code.claude.com/docs/en/overview)). Its MCP servers are configured with `claude mcp add`; [Claude Code MCP servers](/blog/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](https://autorouter.com/models). 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.

![AutoRouter adds Gemini 4 to Claude Code in three steps. 1. Download AutoRouter (macOS 14 or later); 2. Enable Claude Code (Sign in to your plans); 3. Pick in /model (Gemini 4 or AutoRouter). Source: AutoRouter setup guide, read November 18, 2026.](https://autorouter.com/blog/images/gemini-cli-vs-claude-code/2-three-steps.png)

1. Download AutoRouter for macOS from [autorouter.com](https://autorouter.com).
2. Open it, sign in or create a free account, sign in to your plans, allow Accessibility, and click Enable for Claude Code.
3. 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](https://autorouter.com/#plans) 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](https://code.claude.com/docs/en/llm-gateway)). 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](https://code.claude.com/docs/en/llm-gateway-protocol)). [How to use Gemini in Claude Code and Codex](/blog/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](https://autorouter.com/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 `/model` on a Mac, and your plans pay first.

[Claude Code alternatives](/blog/claude-code-alternatives) compares the other agents people try, and [which model for which coding task](/blog/which-model-for-which-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](https://github.com/google-gemini/gemini-cli)). 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](https://github.com/google-gemini/gemini-cli)). Claude Code's repository carries an "All rights reserved" notice from Anthropic ([LICENSE](https://github.com/anthropics/claude-code/blob/main/LICENSE.md)), 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](https://code.claude.com/docs/en/llm-gateway)).

### 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](https://autorouter.com)
- [AutoRouter models](https://autorouter.com/models), checked November 18, 2026
- [AutoRouter privacy](https://autorouter.com/privacy)
- [Gemini CLI README](https://github.com/google-gemini/gemini-cli), checked November 18, 2026
- [Gemini Code Assist for individuals deprecation](https://developers.google.com/gemini-code-assist/docs/deprecations/code-assist-individuals), Google, checked November 18, 2026
- [Gemini API pricing](https://aistudio.google.com/docs/pricing), Google, checked November 18, 2026
- [Antigravity: getting started](https://antigravity.google/docs/getting-started), Google, checked November 18, 2026
- [Antigravity: migrating from Gemini CLI](https://antigravity.google/docs/cli/gcli-migration), Google, checked November 18, 2026
- [Antigravity pricing](https://antigravity.google/pricing), Google, checked November 18, 2026
- [Claude Code LICENSE](https://github.com/anthropics/claude-code/blob/main/LICENSE.md), checked November 18, 2026
- [Claude Code: enterprise deployment overview](https://code.claude.com/docs/en/third-party-integrations)
- [Claude API pricing](https://platform.claude.com/docs/en/about-claude/pricing), Anthropic, checked November 18, 2026
- [Plans and pricing](https://claude.com/pricing), Anthropic, checked November 18, 2026
- [Claude Code overview](https://code.claude.com/docs/en/overview), Claude Code docs, checked November 18, 2026
- [Model configuration](https://code.claude.com/docs/en/model-config), Claude Code docs, checked November 18, 2026
- [LLM gateways](https://code.claude.com/docs/en/llm-gateway), Claude Code docs
- [Gateway protocol](https://code.claude.com/docs/en/llm-gateway-protocol), Claude Code docs
- [Understanding usage and length limits](https://support.claude.com/en/articles/11647753-understanding-usage-and-length-limits), Claude Help Center, checked November 18, 2026

## Read next

- [Google Antigravity vs Claude Code: which agent to use](https://autorouter.com/blog/antigravity-vs-claude-code.md): Use AutoRouter, the Mac app for all your coding agents, if Gemini models are why you're looking at Antigravity: it puts Gemini 4 models and 20+ others in Claude Code's `/model`, using the AI subscriptions you already pay for first. Google Antigravity is Google's agent platform, an app, IDE, CLI and SDK, at no charge for individuals with a weekly quota and higher limits on Google AI Pro and Ultra. Claude Code is Anthropic's agent, included in Claude plans from $20 a month.
- [GitHub Copilot vs Claude Code: which to use, and how to use both](https://autorouter.com/blog/github-copilot-vs-claude-code.md): Use AutoRouter, the Mac app for all your coding agents, if Copilot's model choice is what draws you: it keeps Claude Code, adds 20+ models to `/model`, and uses the AI subscriptions you already pay for first. GitHub Copilot is an assistant across your editor, GitHub and a CLI, with plans from $0 to $100 a month that pay for models from monthly AI credits. Claude Code is Anthropic's coding agent, included in Claude plans from $20 a month.
- [OpenCode vs Claude Code: which to use for coding](https://autorouter.com/blog/opencode-vs-claude-code.md): Use AutoRouter, the Mac app for all your coding agents, to get OpenCode's model choice inside Claude Code: it adds 20+ models to `/model` with no keys, uses the AI subscriptions you already pay for first, and sends each task to the model that fits. Pick OpenCode if you want an open-source agent that runs on your own API keys and 200+ providers; pick Claude Code for Anthropic's own agent on a Claude plan.

Tags: [Comparisons](https://autorouter.com/blog/tags/comparisons.md), [Claude Code](https://autorouter.com/blog/tags/claude-code.md), [Models](https://autorouter.com/blog/tags/models.md)

Drafted with AI from the sources linked above, then checked and edited by the AutoRouter team.
