Gemini CLI in 2026: Who Can Still Use It, How to Install It, and Moving to Antigravity CLI
GeminiQuick answer: Gemini CLI (gemini) still exists, but it’s no longer the free terminal agent for everyone. Since June 18, 2026, it serves organizations with Gemini Code Assist Standard or Enterprise licenses and Code Assist for GitHub on Google Cloud, plus users of paid Gemini API or Vertex keys. Free Google accounts and Google AI Pro/Ultra subscribers were moved to Antigravity CLI (agy), which Google also recommends for Gemini 4 models. Sources: the official README and Google’s transition post, checked November 21, 2026.
What happened to Gemini CLI?
Google announced the change on the Developers Blog on May 19, 2026:
- May 19, 2026: Antigravity CLI became available to everyone.
- June 18, 2026: Gemini CLI and the Gemini Code Assist IDE extensions stopped serving requests for Google AI Pro and Ultra subscribers and for free Gemini Code Assist for individuals.
- Code Assist for GitHub (consumer): no new installs from June 18, with requests stopping in the following weeks.
- Enterprise: Gemini Code Assist Standard/Enterprise and Code Assist for GitHub via Google Cloud are unchanged. Gemini CLI also stays accessible with paid Gemini API keys and Gemini Enterprise Agent Platform keys.
The README adds two warnings: Gemini CLI is not optimized for Gemini 4+ models, and you shouldn’t use it to benchmark Gemini models.
Which Google CLI do you need?
| You have | Use | Command |
|---|---|---|
| A free Google account, or Google AI Pro/Ultra | Antigravity CLI | agy |
| Gemini Code Assist Standard/Enterprise, or Code Assist for GitHub on Google Cloud | Gemini CLI | gemini |
| A paid Gemini API or Vertex key in an existing Gemini CLI setup | Gemini CLI (legacy) or Antigravity CLI | gemini / agy |
| Scripts, CI or another agent calling Gemini models directly | Gemini API CLI, a stateless API CLI, not a coding agent | gemini-api |
Source: the “Which Google CLI do you need?” table in the Gemini CLI README. Not sure which Google AI plan you have? See Google AI Pro vs Ultra.
How to install Gemini CLI (enterprise and API key users)
From the README:
| Method | Command |
|---|---|
| Run without installing | npx @google/gemini-cli |
| npm (global) | npm install -g @google/gemini-cli |
| Homebrew (macOS/Linux) | brew install gemini-cli |
| MacPorts (macOS) | sudo port install gemini-cli |
Releases ship on three channels: stable (@latest, weekly), preview (weekly) and nightly.
Sign-in options listed in the README:
- Google sign-in with a Code Assist license: set
GOOGLE_CLOUD_PROJECTto your Google Cloud project. - Gemini API key: set
GEMINI_API_KEYto a key from Google AI Studio. How to create one: How to get a Gemini API key. - Vertex AI: set
GOOGLE_API_KEYandGOOGLE_GENAI_USE_VERTEXAI=true.
API key use is billed per token. See Gemini API pricing for how the tiers work.
For scripting, Gemini CLI runs non-interactively with gemini -p "your prompt", and --output-format json or stream-json give structured output. Full docs are at geminicli.com/docs.
How to install Antigravity CLI (free, Pro and Ultra users)
From Antigravity’s Get started guide:
| Platform | Command |
|---|---|
| macOS / Linux | curl -fsSL https://antigravity.google/cli/install.sh | bash |
| Windows PowerShell | irm https://antigravity.google/cli/install.ps1 | iex |
| Windows CMD | curl -fsSL https://antigravity.google/cli/install.cmd -o install.cmd && install.cmd && del install.cmd |
On macOS and Linux the binary goes to ~/.local/bin/agy. Check the install with agy --version.
Sign-in (Authenticate guide):
- Personal Google account (Free, Pro or Ultra): run
agyand sign in through the browser. Google notes that Google Workspace plans don’t include Antigravity plans. - Gemini Enterprise or Google Cloud: via your organization’s subscription or pay-as-you-go.
- Gemini API key: set
"modelProvider": "gemini"in~/.gemini/antigravity-cli/settings.jsonand exportGEMINI_API_KEY. The key alone has no effect, and.envfiles andGOOGLE_API_KEYaren’t read. - Over SSH, sign-in uses a URL-and-code flow. Run
/logoutto sign out.
Antigravity CLI shows your AI credits in the status line. Whether it may spend AI credits once your plan’s included usage runs out is a setting (useG1Credits, or “Use AI Credits” in /config), per the credits doc. Plan tiers are on antigravity.google/pricing; we don’t reprint prices.
How to migrate from Gemini CLI to Antigravity CLI
Antigravity’s migration guide covers this:
| Gemini CLI | Antigravity CLI |
|---|---|
| Extensions | Plugins. Convert with agy plugin import gemini |
GEMINI.md, AGENTS.md, ~/.gemini/GEMINI.md |
Still read |
Workspace skills in .gemini/skills/ |
Move to .agents/skills/ |
| MCP servers in Gemini CLI settings | ~/.gemini/config/mcp_config.json (global) or .agents/mcp_config.json (workspace) |
MCP url / httpUrl keys |
Rename to serverUrl |
The first time you launch agy, it detects legacy Gemini CLI configuration and offers a migration checklist. Google’s transition post says Agent Skills, Hooks, Subagents and Extensions carry over, but there’s no 1:1 feature parity at first. The migration guide also notes some custom themes and overlays may not be supported.
Gemini CLI vs Codex CLI vs Claude Code
All three are terminal coding agents tied to a vendor’s plans. If you’re choosing a terminal agent rather than staying on Google, compare Codex CLI and Codex vs Claude Code. Antigravity’s setup can import MCP servers, skills and rules from Claude Code, Codex, Cursor and Gemini CLI (Get started), so switching tools doesn’t mean starting from scratch.
FAQ
Is Gemini CLI still free?
No. The official README says Gemini CLI no longer has a free tier or Google AI plan access. Free individual access and Google AI Pro/Ultra moved to Antigravity CLI on June 18, 2026. Antigravity CLI is open to personal Google accounts on the Free, Pro and Ultra plans.
Can I use Gemini CLI with Google AI Pro or Ultra?
Not anymore. Google's transition post says Gemini CLI stopped serving requests for Google AI Pro and Ultra subscribers on June 18, 2026. Use Antigravity CLI (agy) with the same Google account instead.
Who can still use Gemini CLI?
Organizations with Gemini Code Assist Standard or Enterprise licenses and Code Assist for GitHub on Google Cloud. Google also says Gemini CLI stays accessible with paid Gemini API keys and Gemini Enterprise Agent Platform keys. The README calls these legacy paid API or Vertex keys.
What is the difference between Gemini CLI and Antigravity CLI?
Antigravity CLI (agy) is Google's new terminal coding agent, built in Go on the same harness as Antigravity 2.0, and the one Google recommends for Gemini 4 models. Gemini CLI (gemini) is the older open-source agent, now kept for enterprise Code Assist users and not tuned for Gemini 4+.
Will my GEMINI.md, skills and MCP servers work in Antigravity CLI?
Mostly. GEMINI.md and AGENTS.md still apply. Workspace skills move from .gemini/skills/ to .agents/skills/. MCP config moves to ~/.gemini/config/mcp_config.json or .agents/mcp_config.json, with url/httpUrl renamed to serverUrl. Extensions convert with agy plugin import gemini. Google says there is no 1:1 feature parity at first.
Does Antigravity CLI read my GEMINI_API_KEY automatically?
No. The Antigravity docs say exporting GEMINI_API_KEY alone has no effect. You must also set "modelProvider": "gemini" in ~/.gemini/antigravity-cli/settings.json. Antigravity CLI does not read .env files or GOOGLE_API_KEY.
Sources
- google-gemini/gemini-cli README (GitHub) (accessed 2026-11-21)
- Google Developers Blog: Transitioning Gemini CLI to Antigravity CLI (accessed 2026-11-21)
- Antigravity docs: Migrating from Gemini CLI (accessed 2026-11-21)
- Antigravity docs: Get started (accessed 2026-11-21)
- Antigravity docs: Authenticate (accessed 2026-11-21)
- Antigravity docs: AI credits in the CLI (accessed 2026-11-21)
- Gemini CLI documentation (accessed 2026-11-21)