Gemini CLI
Published
At a glance
- What it is
- Gemini CLI is Google's open-source command-line agent for working with Gemini models in the terminal.
- Price from
- Open source, usage-based pricing Details
- Best for
- Organisations already licensed for Gemini Code Assist or using Vertex AI; Teams with existing Gemini CLI scripts and CI workflows
- Official site
- github.com
- Last checked
- November 2026
- Watch out for
- No free tier for individuals any more; Google points free users to Antigravity CLI.
Gemini CLI is Google's open-source command-line agent for working with Gemini models in the terminal. It is licensed under Apache 2.0, is one of the most-starred developer tools on GitHub, and is still actively maintained. Like other coding agents, it can read and write files, run shell commands and fetch or search the web, and it can be extended with MCP servers and custom extensions.
Its position changed significantly in 2026. Google has consolidated its developer tools under the Antigravity brand, and the Gemini CLI README now says that free individual access moved to the Antigravity CLI on June 18, 2026. Gemini CLI itself is now presented as a tool for enterprise users: there is no free tier for personal Google accounts or Google AI plans, and Google's own documentation says Gemini CLI is not optimised for the latest Gemini models and recommends Antigravity CLI for the best coding experience. Paid access through a Gemini API key, Vertex AI or an organisational Gemini Code Assist licence continues to work.
For teams that already use it, the feature set remains solid. A GEMINI.md file gives the agent persistent project context, MCP servers configured in settings add custom tools, extensions package shared commands, and headless mode with the -p flag and JSON or streaming JSON output makes it easy to use in scripts and CI. If you are starting fresh as an individual developer, though, Google is clearly pointing you elsewhere.
Key features
- Built-in tools
- File operations, shell commands and web fetch and search, so it can explore a codebase and make changes.
- GEMINI.md context
- Persistent project instructions and context, read at the start of each session.
- MCP and extensions
- Add custom tools through MCP servers in ~/.gemini/settings.json, and share commands as extensions.
- Headless mode
- Run non-interactively with -p and --output-format json or stream-json for automation and CI.
- Flexible authentication
- Sign in with Google under an organisational Code Assist licence, use a Gemini API key, or use Vertex AI.
Pricing
As of November 2026, the Gemini CLI tool itself is free and open source, but Google no longer offers free model usage through it for personal Google accounts or Google AI plans; that moved to Antigravity CLI on June 18, 2026. You can use Gemini CLI with a Gemini API key on usage-based billing, through Vertex AI, or under a paid organisational Gemini Code Assist licence, each with its own quotas. Install it with npm install -g @google/gemini-cli, Homebrew or MacPorts, or run it without installing using npx @google/gemini-cli.
Best for
- Organisations already licensed for Gemini Code Assist or using Vertex AI
- Teams with existing Gemini CLI scripts and CI workflows
- Developers who want an open-source agent they can inspect and extend
- Automation that needs JSON output from an LLM agent
Limitations
- No free tier for individuals any more; Google points free users to Antigravity CLI.
- Google says it is not optimised for the latest Gemini models.
- Older tutorials describing generous free daily limits are out of date.
- Its future role is uncertain now that Antigravity is Google's main developer brand.
Verdict
Gemini CLI is a capable, open-source agent with good automation features, but in late 2026 it is mainly a tool for organisations that already have Gemini licences or Vertex AI. Individual developers who want Google's agent should look at Antigravity instead, which is where Google is putting its newest models and free access. Keep using Gemini CLI if it is already part of your workflows; do not pick it as a new personal tool.
Sources
Written from the vendor's own site and documentation, checked November 2026. We have no paid relationship that affects what this page says.
- github.com /google-gemini/gemini-cli
- docs.cloud.google.com /gemini/docs/codeassist/overview
- antigravity.google
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.