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.
| Tool | Who it is for now | Price | Source |
|---|---|---|---|
| Gemini CLI | Gemini Code Assist Standard and Enterprise customers | No free tier. Install with npm install -g @google/gemini-cli or brew install gemini-cli | GitHub README |
| Antigravity CLI, Individuals | Free individual use | $0 with basic weekly rate limits and unlimited Tab completions | antigravity.google/pricing |
| Antigravity CLI, Google AI Pro and Ultra | Paying Google AI subscribers | Higher limits. The page lists no price | antigravity.google/pricing |
| Antigravity, Business | Teams | From $30 per seat per month | antigravity.google/pricing |
| Claude Code (Claude Pro) | Individuals | $20 a month ($17 billed annually). Max $100, Ultra $200. No free plan | claude.com/pricing |
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?
| Question | Gemini CLI and Antigravity CLI | Claude Code |
|---|---|---|
| Maker | Anthropic | |
| Models | Gemini | Claude |
| Source code | Gemini CLI is open source | Closed |
| Free to use | Antigravity CLI for individuals, with weekly rate limits | No |
| Context file | GEMINI.md, and AGENTS.md if you set it | CLAUDE.md, or AGENTS.md when there is no CLAUDE.md |
| Good fit if you already use | Google tools and Google AI plans | Claude |
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:
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.| Measure | How to get it | Why it matters |
|---|---|---|
| Interventions | Count each time you had to answer a question or correct course | Fewer means the task description was enough for that tool |
| Approvals | Count the permission prompts | Many prompts for safe commands mean the allow list is not set up |
| Files touched | git status after the run | The task needed one script, one data file and one test. More is a warning |
| Test result | Run the test yourself | Do not trust the summary |
| Correct totals | Add three categories by hand from data/sample.csv | Passing tests can still hide a wrong total |
| Diff you would merge | Read git diff | The 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?
| If | Choose |
|---|---|
| You want a free terminal agent and accept weekly rate limits | Antigravity CLI |
| You have Gemini Code Assist through work | Gemini CLI |
| You want open source you can read | Gemini CLI, or OpenCode |
| You already pay for Claude Pro or Max | Claude Code |
| You want one vendor's docs and support | Claude Code |
Related: OpenCode vs Claude Code, Claude Code alternatives and best vibe coding tools.
What goes wrong with both, and what to type
| Failure | Sign | What to type |
|---|---|---|
| Test edited to pass | A test file shows in git status | Revert the test change. Fix the code so the original test passes. |
| Invented package | npm install fails with 404 Not Found | That package does not exist. Use only packages that are already in package.json, or ask me first. |
| Success without running | The summary has no command output | Run the test command now and paste the full output. |
| Scope creep | Ten files changed for a small fix | Revert 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 →