Skip to content

Gemini CLI vs Claude Code

By Mari Luukkainen · 5 min read · Last updated

On this page

Gemini CLI is Google's open source terminal agent for Gemini models. Claude Code is Anthropic's agent for Claude models. Since 18 June 2026 Gemini CLI has no free tier: free individual access and Google AI Pro and Ultra moved to Antigravity CLI, and Gemini CLI is now for Gemini Code Assist Standard and Enterprise.

This page covers that change, what each tool costs as of 1 November 2026, and the differences you notice at work. I have not written about using either Google tool, so what I say about them comes from Google's own pages. Related: what Claude Code is.

Ask AI about this pageChatGPTClaudePerplexityGoogle AI ModeGrok

What changed for Gemini CLI in 2026?

Google announced on 19 May 2026 that Gemini CLI would transition to Antigravity CLI (command: agy). On 18 June 2026 free individual access and the Google AI Pro and Ultra plans moved over (Google Developers Blog). The Gemini CLI repository now says it is for Gemini Code Assist Standard and Enterprise (README). Articles that say Gemini CLI is free with a Google account are out of date.

ToolWho it is for nowPriceSource
Gemini CLIGemini Code Assist Standard and Enterprise customersNo free tier. Install with npm install -g @google/gemini-cli or brew install gemini-cliGitHub README
Antigravity CLI, IndividualsFree individual use$0 with basic weekly rate limits and unlimited Tab completionsantigravity.google/pricing
Antigravity CLI, Google AI Pro and UltraPaying Google AI subscribersHigher limits. The page lists no priceantigravity.google/pricing
Antigravity, BusinessTeamsFrom $30 per seat per monthantigravity.google/pricing
Claude Code (Claude Pro)Individuals$20 a month ($17 billed annually). Max $100, Ultra $200. No free planclaude.com/pricing
Google Antigravity CLI Full Walkthrough · Google Antigravity

How are the two tools alike?

  • You start both in a project folder and give a task in plain language.
  • Both can ask before running commands or changing files. Gemini CLI asks before it acts. Claude Code depends on its permission mode: manual mode asks each time, and the default in interactive sessions can be auto mode, where a classifier approves or blocks actions. See what Claude Code is.
  • Both read a context file from the project: GEMINI.md and CLAUDE.md. Both read AGENTS.md too, with a setting for Gemini CLI.
  • Both can connect to extra tools through the MCP standard.

Where do they differ?

QuestionGemini CLI and Antigravity CLIClaude Code
MakerGoogleAnthropic
ModelsGeminiClaude
Source codeGemini CLI is open sourceClosed
Free to useAntigravity CLI for individuals, with weekly rate limitsNo
Context fileGEMINI.md, and AGENTS.md if you set itCLAUDE.md, or AGENTS.md when there is no CLAUDE.md
Good fit if you already useGoogle tools and Google AI plansClaude

To make Gemini CLI read AGENTS.md, add it to the context file names in its settings: {"context": {"fileName": ["AGENTS.md", "CONTEXT.md", "GEMINI.md"]}} (GEMINI.md docs). Write your rules once in AGENTS.md. For Claude Code, create a CLAUDE.md with the single line @AGENTS.md. Do not use a symlink between CLAUDE.md and GEMINI.md: Claude Code's edit tool refuses symlinks, and they behave badly on Windows.

How should you test them?

Use the same task in a throwaway project and judge the diff. This is a test for you to run; I have not run it. The task has a built-in check, a number you can verify:

a test task for any agent
Create a small command line script, scripts/sum-csv.js, that reads a CSV file with columns date, category, amount and prints the total amount per category, sorted from largest to smallest. Create a sample file data/sample.csv with 12 rows. Add one test. Run the test and show me the output.
MeasureHow to get itWhy it matters
InterventionsCount each time you had to answer a question or correct courseFewer means the task description was enough for that tool
ApprovalsCount the permission promptsMany prompts for safe commands mean the allow list is not set up
Files touchedgit status after the runThe task needed one script, one data file and one test. More is a warning
Test resultRun the test yourselfDo not trust the summary
Correct totalsAdd three categories by hand from data/sample.csvPassing tests can still hide a wrong total
Diff you would mergeRead git diffThe measure that matters in the end

Run each tool on its own branch (git switch -c try-gemini, git switch -c try-claude) so you can compare with git diff try-gemini try-claude. Keep context files short. A markdown file the agent reads first means it builds things your way instead of inventing a new setup each session, which is what my handbook of decisions does (post).

Which should you choose?

IfChoose
You want a free terminal agent and accept weekly rate limitsAntigravity CLI
You have Gemini Code Assist through workGemini CLI
You want open source you can readGemini CLI, or OpenCode
You already pay for Claude Pro or MaxClaude Code
You want one vendor's docs and supportClaude Code

Related: OpenCode vs Claude Code, Claude Code alternatives and best vibe coding tools.

What goes wrong with both, and what to type

FailureSignWhat to type
Test edited to passA test file shows in git statusRevert the test change. Fix the code so the original test passes.
Invented packagenpm install fails with 404 Not FoundThat package does not exist. Use only packages that are already in package.json, or ask me first.
Success without runningThe summary has no command outputRun the test command now and paste the full output.
Scope creepTen files changed for a small fixRevert everything except the files needed for the fix, and list why each remaining file is needed.

Frequently asked questions

Are the old Gemini CLI limits of 60 requests a minute still valid?

I could not confirm them. No current Google page I checked on 1 November 2026 states the 60 requests per minute, 1,000 per day or 1M token context figures that older articles quote, and Antigravity's pricing page lists only basic weekly rate limits.

What context window does Antigravity CLI have?

Google does not state it on the pages I checked. Check the Antigravity documentation before you plan a large codebase around a specific number.

Is Gemini CLI still open source?

Yes. The code is on GitHub at google-gemini/gemini-cli. What changed is who it is for: it now serves Gemini Code Assist Standard and Enterprise customers.

Can Gemini CLI and Claude Code work in the same project?

Yes. Keep the rules in AGENTS.md, point both tools at it, and commit between tools.

Next guideClaude Code alternatives →