Gemini CLI in 2026: Is It Still Free? Install, Commands and Antigravity CLI

Gemini CLI is Google's open-source AI agent that brings Gemini directly into your terminal: it reads and edits files, runs shell commands, searches the web and connects to other tools, all from a prompt. Google launched it on June 25, 2025 with a generous free allowance, and by May 2026 Google said it had over 100,000 GitHub stars and 6,000 merged pull requests.
A lot has changed since. Since June 18, 2026, Gemini CLI no longer has a free tier for individuals: Google moved free and Google AI Pro/Ultra users to a new tool, Antigravity CLI. Gemini CLI itself is still maintained, with weekly releases, but it is now aimed at organizations with Gemini Code Assist licenses and developers with paid API keys. Here's what it does, who can still use it, how to install it and how it compares with Claude Code, checked against Google's own docs on November 20, 2026.
Gemini CLI at a Glance
| Gemini CLI | |
|---|---|
| What it is | An open-source AI agent that brings Gemini into your terminal |
| Launched | June 25, 2025 (as a preview) |
| License | Apache License 2.0 |
| Latest release | v0.70.0, November 19, 2026 (new stable release each week) |
| GitHub | google-gemini/gemini-cli, 108.9k stars |
| Requirements | Node.js 20.0.0 or later; macOS 15+, Windows 11 24H2+ or Ubuntu 20.04+ recommended |
| Free for individuals? | No, since June 18, 2026: individuals were moved to Antigravity CLI |
| Who can still use it | Gemini Code Assist Standard/Enterprise organizations and paid Gemini API or Agent Platform keys |
Is Gemini CLI Free in 2026?
Not for individual users. When it launched, signing in with a personal Google account gave you Gemini 2.5 Pro with its 1 million token context window, plus 60 model requests per minute and 1,000 requests per day at no charge. On May 19, 2026, Google announced that Gemini CLI was transitioning to Antigravity CLI, and since June 18, 2026 Gemini CLI no longer serves requests for free Gemini Code Assist for individuals, Google AI Pro or Google AI Ultra users.
Who can still use Gemini CLI:
- Organizations with Gemini Code Assist Standard or Enterprise, which keep their access. Standard allows 1,500 Gemini CLI and agent mode requests per user per day; Enterprise allows 2,000. Google stopped selling new Code Assist subscriptions on October 9, 2026; annual plans can renew until January 31, 2027 and monthly plans until December 31, 2027, and Google says organizations' agentic coding will move to Antigravity, included in Gemini Enterprise editions.
- Developers with a paid Gemini API key, billed by usage, with your choice of model.
- Gemini Enterprise Agent Platform (formerly Vertex AI) users, billed by model and token usage. New Google Cloud users can try Agent Platform express mode free for up to 90 days within quotas.
Google's quota documentation for Gemini CLI still lists older daily allowances for personal accounts and unpaid API keys, but it now carries a banner saying Gemini CLI was replaced by Antigravity CLI for unpaid tier and Google One users, so don't rely on those older figures. The Gemini Developer API itself still has a free tier, with limits shown in Google AI Studio.
What Is Antigravity CLI?
Antigravity CLI is Google's successor to Gemini CLI for individual users. It became available to everyone on May 19, 2026, and you launch it with the agy command. If you built or installed Gemini CLI extensions, agy plugin import gemini converts them into Antigravity plugins. Google's migration guide explains the move.
How to Install Gemini CLI
Gemini CLI needs Node.js 20.0.0 or later; Google recommends macOS 15+, Windows 11 24H2+ or Ubuntu 20.04+. Install it with any of these:
- npm:
npm install -g @google/gemini-cli - No install:
npx @google/gemini-cli - Homebrew (macOS and Linux):
brew install gemini-cli - MacPorts (macOS):
sudo port install gemini-cli
It also comes pre-installed in Google Cloud Shell and Cloud Workstations. Start it with gemini and choose an authentication method: Sign in with Google, a Gemini API key (Gemini CLI reads it from the GEMINI_API_KEY environment variable) or Vertex AI. Organization users with a paid Code Assist license must set their Google Cloud project first. See the official installation guide.
Which Models Does Gemini CLI Use?
Gemini CLI's /model menu offers an Auto (Gemini 3) option that picks the best Gemini 3 model for each task, and Gemini 3.1 Pro Preview is rolling out as gemini-3.1-pro-preview. Its current source code sets gemini-3.5-flash as the base Flash model. Older models are going away: Google lists Gemini 3 Pro Preview as shut down on the Gemini API, and from December 1, 2026 Gemini API requests to gemini-2.5-pro will route to gemini-3.8-flash. Google announced Gemini 4 Argon on September 30, 2026, but Gemini CLI is not tuned for the Gemini 4 series, and Code Assist model support will be limited to Gemini 3.x.
Key Features
- Built-in tools: file tools such as read_file (text, images, audio and PDF), run_shell_command (which needs your confirmation), web_fetch for up to 20 URLs in one prompt, and google_web_search for Google Search grounding.
- Context: type @ and a path to include a file or folder, and add GEMINI.md files to give the model project-specific instructions.
- MCP servers: connect Model Context Protocol servers, configured in ~/.gemini/settings.json, to add external tools and data.
- Extensions: launched in October 2025, they package prompts, MCP servers, custom commands, themes, hooks, sub-agents and agent skills.
- Agent features: Agent Skills, hooks that run scripts at points in the agent loop, subagents, and a read-only Plan Mode for planning changes before code is modified.
- Safety nets: checkpointing saves a snapshot before AI tools change files (undo with /restore), sandboxing isolates shell commands and file changes, and Trusted Folders asks before loading a folder's configuration.
- Automation: headless mode with
-p(or in a non-interactive environment) reads piped input, and Gemini CLI GitHub Actions, in beta since August 2025, triage issues and review pull requests. - IDE: the Gemini CLI Companion extension integrates it with VS Code.
Useful Gemini CLI Commands
| Command | What it does |
|---|---|
/help | Shows help and available commands |
/model | Picks the model, including Auto (Gemini 3) |
/stats model | Shows token usage and quota information |
/mcp | Lists and manages connected MCP servers |
/extensions | Manages extensions; /extensions install adds one from a git repo or local path |
/restore | Reverts files to a checkpoint saved before AI tools changed them |
/setup-github | Sets up GitHub Actions to triage issues and review pull requests with Gemini |
@path | Includes a file or folder's content in your prompt |
gemini -p "..." | Runs a single prompt in headless mode (also reads piped input) |
Custom commands let you save reusable prompts as your own slash commands. The full list is in the commands reference.
Security: Update to a Fixed Version
GitHub advisory CVE-2026-12537 rates a Gemini CLI remote code execution issue as critical; versions before 0.39.1 are affected. After the fix, headless mode requires folders to be explicitly trusted before loading their configuration. If you still run an older copy, update it, and keep the default prompts that make Gemini CLI ask before modifying files or running shell commands.
Gemini CLI vs. Claude Code
| Gemini CLI | Claude Code | |
|---|---|---|
| License | Apache 2.0 (open source) | Proprietary; Anthropic's license says all rights are reserved |
| Cost for individuals | No free or Google AI plan access since June 18, 2026; paid API keys or Code Assist licenses | Included in all paid Claude plans: Pro $20 a month (monthly billing), Max $100 a month |
| Install | npm install -g @google/gemini-cli, npx, Homebrew or MacPorts | Native installer (curl -fsSL https://claude.ai/install.sh | bash) or npm |
| Node.js (npm install) | 20.0.0 or later | 22 or later |
| Successor / status | Google points individuals to Antigravity CLI | Actively sold |
The biggest practical difference in 2026 is access. Gemini CLI is open source and free to install, but individuals now need a paid API key to use it, while Google steers personal users to Antigravity CLI. Claude Code is closed source and comes with paid Claude plans. Both read and edit code, run commands and support MCP servers. For a wider comparison of the assistants behind them, see ChatGPT vs Claude vs Gemini.
Frequently Asked Questions
Is Gemini CLI free?
Not for individuals any more. At launch in June 2025, Google offered 60 model requests per minute and 1,000 a day at no charge, but since June 18, 2026 Gemini CLI no longer serves free Gemini Code Assist for individuals, Google AI Pro or Google AI Ultra users. Google moved them to Antigravity CLI. Gemini CLI still works with paid Gemini API keys, Agent Platform (formerly Vertex AI) keys, and Gemini Code Assist Standard or Enterprise licenses.
Does Gemini AI have a CLI?
Yes. Gemini CLI is Google's open-source command-line agent for Gemini, started with the gemini command. For individual users, Google's current command-line tool is Antigravity CLI, launched with the agy command.
How do I install Gemini CLI?
Install Node.js 20 or later, then run npm install -g @google/gemini-cli (or brew install gemini-cli on macOS and Linux, or npx @google/gemini-cli to run it without installing). Start it with gemini and choose Sign in with Google, a Gemini API key (set GEMINI_API_KEY) or Vertex AI. It's also pre-installed in Google Cloud Shell.
What replaced Gemini CLI?
Antigravity CLI, which Google made available to everyone on May 19, 2026 and which took over free individual access on June 18, 2026. You launch it with agy, and agy plugin import gemini converts Gemini CLI extensions into Antigravity plugins.
Is Gemini CLI open source?
Yes. Gemini CLI is licensed under the Apache License 2.0, and its source code is on GitHub at google-gemini/gemini-cli.
What models does Gemini CLI use?
The /model menu offers an Auto (Gemini 3) option that picks a Gemini 3 model for each task, and Gemini 3.1 Pro Preview is rolling out. Gemini CLI is not tuned for the Gemini 4 series.
What is the Gemini CLI quota?
For organizations, Gemini Code Assist Standard allows 1,500 Gemini CLI and agent mode requests per user per day and Enterprise allows 2,000. Requests are also limited per minute, and /stats model shows your token usage and quota.
Is Gemini CLI safe to use?
Keep it updated. A critical remote code execution flaw, CVE-2026-12537, affected versions before 0.39.1. Gemini CLI asks for approval before running shell commands or changing files, and its Trusted Folders feature asks you to approve a folder before loading its project configuration.
The Bottom Line
Gemini CLI is still a capable, open-source terminal agent with weekly releases, MCP support, extensions and solid safety features. But it is no longer the free tool it was at launch: individuals should look at Antigravity CLI, while Gemini CLI now makes most sense for organizations on Gemini Code Assist and developers who already pay for Gemini API access. The source code and issue tracker are on GitHub.