Skip to content

How to Install Google Antigravity CLI (Gemini CLI Replacement)

· 3 min read

What Is Antigravity CLI?

Antigravity CLI (agy) is Google’s terminal AI coding agent — the successor to Gemini CLI, announced at Google I/O on May 19, 2026. It shares its agent harness with the Antigravity 2.0 desktop app, bringing plugins, MCP servers, skills, hooks, and subagents to the command line.

It’s free for all Google account holders. No API key setup, no billing — just sign in and code.

I’ve been running it on a remote server for a week. Fast for daily Q&A and small refactors. Struggles a bit with complex multi-file tasks compared to Claude Code.

How to Install Antigravity CLI

macOS / Linux

curl -fsSL https://antigravity.google/cli/install.sh | bash

The binary installs to ~/.local/bin/agy. If it’s not in your PATH:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc

Windows (PowerShell)

irm https://antigravity.google/cli/install.ps1 | iex

No WSL required — runs natively on Windows.

Verify

agy --version

How to Authenticate

agy

First run opens your browser for Google sign-in. On SSH/remote servers, it prints a URL — open it on any device to complete auth.

For GCP project billing:

agy --project=my-gcp-project

What Commands Does Antigravity CLI Have?

CommandPurpose
/configView/edit settings (model, theme, permissions)
/permissionsManage tool and file access
/goalDefine a multi-step objective for the agent
/scheduleQueue background tasks
/artifactExport generated files

How Does It Compare to Claude Code and Codex CLI?

Antigravity CLIClaude CodeCodex CLI
PriceFree$20-200/mo$20/mo
Default modelGemini 3.5 FlashClaude Sonnet 4GPT-4o
Installcurl one-linercurl one-linercurl one-liner
AuthGoogle accountAnthropic API keyOpenAI account
SubagentsNativeVia tool useVia tool use
MCP supportYesYesYes
Plugins/SkillsBuilt-in systemCommunity hooksPlugins
Windows nativeYesYesYes
SSH remote authYesYesNo
Open sourceNoNoYes

Tips

  • Use /goal for complex tasks. Define the end state and let the agent plan, instead of chatting step-by-step.
  • Pin your model. If you have Ultra access: /config set model gemini-3.5-ultra
  • Pre-approve directories. /permissions grant read ~/projects avoids repeated prompts.
  • Migrate from Gemini CLI. Your ~/.gemini config isn’t auto-imported — copy tool definitions to ~/.config/agy/ manually.

Troubleshooting

agy: command not found

PATH doesn’t include ~/.local/bin. Fix:

export PATH="$HOME/.local/bin:$PATH"

Auth fails on remote server

Make sure you can open the printed URL in a browser with your Google account. Behind a proxy? Try agy --no-browser.

Rate limit errors

Free-tier users hit limits during sustained sessions. Options:

  • Wait a few minutes (limits reset quickly)
  • Upgrade to AI Pro ($20/mo) for higher quotas
  • Attach a GCP billing project

FAQ

Is Antigravity CLI free?
Yes. Free for all Google account holders. AI Pro/Ultra users get higher rate limits. Enterprise users can bill to a GCP project.
What happened to Gemini CLI?
Google deprecated Gemini CLI on May 19, 2026 at Google I/O. It still works until June 18, 2026, then stops serving requests. Antigravity CLI is the official replacement.
Does Antigravity CLI work on Windows?
Yes, natively via PowerShell. No WSL required. Run: irm https://antigravity.google/cli/install.ps1 | iex
What model does Antigravity CLI use?
Gemini 3.5 Flash by default. You can switch to Gemini 3.5 Ultra or other models via /config.
Can I use Antigravity CLI over SSH?
Yes. It detects headless environments and prints an auth URL you can open on any local browser.

Related Posts