Gemini CLI and Claude Code are both terminal-first coding agents that read your codebase, edit files and run commands. When Gemini CLI launched, a big part of its appeal was a generous free tier. That has changed: Google consolidated its developer tools under the Antigravity brand, and the Gemini CLI README says free individual access moved to the Antigravity CLI on June 18, 2026. Google now presents Gemini CLI as a tool for enterprise users and says it is not optimised for the latest Gemini models.
Claude Code, Anthropic's agent, has gone the other way, expanding from the terminal into VS Code and Cursor, JetBrains IDEs, the Claude desktop app, the web and mobile. For a new individual user, the real alternative to Claude Code from Google is now Antigravity CLI rather than Gemini CLI.
Both tools remain easy to try and to automate. Gemini CLI installs with npm, Homebrew or MacPorts, or runs without installing through npx, and its headless mode returns JSON or streaming JSON for scripts. Claude Code runs non-interactively with claude -p, and can split large tasks across subagents or run background and scheduled work in the cloud.
How they compare
| Aspect | Gemini CLI | Claude Code |
|---|---|---|
| Licence | Open source under Apache 2.0. | Proprietary, included with Claude plans. |
| Free use | No free tier for personal accounts any more; free use moved to Antigravity CLI. | Not included on the free Claude plan. |
| Paid access | Gemini API key, Vertex AI or an organisational Gemini Code Assist licence. | Claude Pro ($20), Max ($100) or Ultra ($200), or pay-as-you-go via the API. |
| Surfaces | Terminal, with headless mode for scripts and CI. | Terminal, VS Code and Cursor, JetBrains, desktop, web and mobile. |
| Project context | GEMINI.md file. | CLAUDE.md file, skills, hooks and plugins. |
| Extensibility | MCP servers and extensions. | MCP servers and the Agent SDK. |
| Momentum | Maintained, but Google points users to Antigravity CLI. | Actively expanding across surfaces. |
Price at a glance
| Plan detail | Gemini CLI | Claude Code |
|---|---|---|
| Free option | Open source | Paid only |
| How paid plans charge | Usage (tokens, credits) | Flat subscription |
| Cheapest paid plan | No monthly USD price published | $20 a month per account |
Entry plans differ in what they include, so read the full pricing in the Gemini CLI and Claude Code reviews. From the same data as our AI tool pricing overview, checked November 2026.
Choose Gemini CLI if…
- Your organisation already has Gemini Code Assist licences
- You use Vertex AI or Gemini API keys for billing
- You want an open-source agent you can inspect
- You need a scriptable headless agent within Google Cloud
Choose Claude Code if…
- You want an actively expanding agent across terminal and editors
- You prefer Claude models
- You want hooks, skills and a strong customisation story
- You are an individual developer starting fresh
Researched November 2026 from each product's official documentation and pricing pages. Prices and features change often, so check the vendors' sites before you decide.
Sources
- github.com /google-gemini/gemini-cli
- antigravity.google
- code.claude.com /docs/en/overview
- claude.com /pricing