Antigravity CLI: The agy Command Guide for Builders
Antigravity CLI (the agy command) is Google's terminal agent that replaced Gemini CLI on June 18, 2026. What it is, how to install it, the core commands, and how it stacks up against Claude Code.
Antigravity CLI is Google's terminal coding agent, invoked with the agy command. It shipped as the replacement for Gemini CLI, which Google shut down for free, Pro, and Ultra users on June 18, 2026. If you typed gemini in your terminal, agy is what Google wants you typing now.
This is the practical guide to the tool itself: what it is, how to install it, the commands that matter, and the honest comparison against Claude Code. If your goal is specifically moving off the dead Gemini CLI, read the Gemini CLI shutdown and migration guide first, then come back here for the day-to-day usage.
What Is Antigravity CLI?
Antigravity CLI is a Go-based binary that brings Google's agent-first workflow into the terminal. It's the command-line sibling of Google Antigravity, the agent IDE - same multi-agent model, no editor window.
Three things define it:
- Single Go binary. It ships as one compiled executable - install is a one-line script, no Node or Python runtime to manage. It defaults to Gemini 3.5 Flash and auto-selects the model (no
--modelflag). - Multi-agent by default. Like the Antigravity IDE,
agyis built to dispatch and coordinate multiple agents rather than run one linear chat. It shares the same agent harness and settings as Antigravity 2.0. - A Google-led product, not a community project. Gemini CLI was open source and took 6,000+ community pull requests before Google wound it down.
agyis built and controlled by Google around that shared harness - don't expect the same community-extension flow.
One caveat worth knowing before you commit: at launch, Antigravity CLI does not have full 1:1 feature parity with Gemini CLI. Google kept the critical pieces (Agent Skills, Hooks, Subagents, and Extensions-now-plugins), but if you depended on a specific flag, check it works in agy before you rewrite your scripts.
How to Install Antigravity CLI
Install is a one-line script. On macOS or Linux:
curl -fsSL https://antigravity.google/cli/install.sh | bash
On Windows (PowerShell):
irm https://antigravity.google/cli/install.ps1 | iex
Then start it and authenticate:
agy
agy authenticates through your system keyring, falling back to Google Sign-In (pick "Use a Google Cloud project" when prompted). Check your setup with /config, then smoke-test it non-interactively:
agy -p "summarize this repo"
Both agy and the old gemini command can coexist on the same machine, which makes a gradual cutover easier if you still have a paid API key keeping Gemini CLI alive.
The Slash Commands That Run It
agy is driven by slash commands in the TUI. These are the ones you'll actually use:
| Command | What it does |
|---|---|
/goal | Run autonomously to completion - use when you trust the plan |
/grill-me | Agent asks clarifying questions first - use for ambiguous or destructive work |
/agent / /agents | Dispatch a named background subagent / monitor all running subagents |
/browser | Opt in to browser use for this run (scraping, JS-heavy sites, OAuth) |
/schedule | One-off (capped at 15 min out) or recurring cron-style runs |
/usage | Quota and rate-limit status across models - check this constantly |
/context | Token usage by category + checkpoint management |
/model | Switch models mid-session |
/config | Settings: model, theme, MCP servers, Pro upgrade |
/export | Push the session into Antigravity 2.0 to continue in the GUI |
Two design changes worth flagging if you're coming from Gemini CLI. Browser use is now opt-in via /browser - Google moved it behind a command because the agent kept reaching for the browser when it shouldn't. And subagents are dynamic: you hand the orchestrator a goal in plain English and it decides what specialized subagents to spawn and runs them in parallel, no orchestration code from you.
On models, agy defaults to Gemini 3.5 Flash but /model also exposes Gemini 3.1 Pro, Claude Sonnet, Claude Opus, and GPT-OSS 120B (subject to your plan). Skills work like Gemini CLI: drop a markdown file at .agents/skills/lint.md and it becomes /lint. Hooks are JSON lifecycle interceptors (before tool call, after file edit, on session start), with workspace hooks overriding global ones. Sandboxing uses nsjail on Linux and sandbox-exec on macOS.
Free AI Builder Newsletter
Weekly guides on AI tools & builder strategies.
Migrating from Gemini CLI

If you're coming straight off Gemini CLI, the move is mostly mechanical and agy ships an importer:
- Import your extensions:
agy plugin import geminiconverts installed Gemini CLI extensions into Antigravity plugins. - Move workspace skills:
mv .gemini/skills/ .agents/skills/- Antigravity looks for them under.agents/skills/. - MCP config: Antigravity uses a dedicated
mcp_config.json(workspace path:.agents/mcp_config.json). For remote servers, rename theurlfield toserverUrl. - Context files stay put:
GEMINI.mdkeeps working - no rename needed.agyreads bothGEMINI.mdandAGENTS.md. New projects increasingly standardize onAGENTS.md, but that's optional. - Update automation: swap every
geminicall in CI/CD, shell scripts, and cron jobs foragy.
The one that bites people is automation. Any pipeline calling gemini -p "..." broke on June 18 with no grace period. Audit your scripts first - that's where the silent failures hide. Full checklist in the migration guide.
The Quota Trap (Read This Before You Commit)
This is the single biggest complaint from early agy users, and it's not a bug - it's how the tool works. Subagents burn quota in parallel. One plain-English goal can spin up a nested loop of 10+ model calls without asking, and the meter runs the whole time.
The numbers from the field are brutal. One paid Google AI Pro user reported being locked out with an "Individual quota reached" error after exactly two prompts in agy - the same Pro quota that survived 1,000+ code modifications in the old Gemini CLI. The quota is also shared across the Antigravity desktop app, CLI, and SDK, so running agents in parallel across projects drains it even faster.
Three habits keep you out of the lockout:
- Watch
/usageconstantly. Unlike Gemini CLI, the agent can't see its own remaining quota and won't throttle itself. You are the governor. - Don't over-parallelize. Pro/Ultra quotas comfortably support 3 to 5 parallel subagents. Past that you hit the ceiling before lunch. Less parallelism often means more total throughput across the day.
- Reach for
/grill-meon expensive work so the agent plans before it spends, instead of looping autonomously on a vague goal.
If you're on the free tier, expect aggressive throttling and queued subagents that never start. For real throughput, connect a billing-enabled Google Cloud project.
Scripting and CI Gotchas
If you automate agy, three traps will cost you a debugging session each:
- Non-TTY hangs silently. In GitHub Actions or any non-interactive shell, a plain
agycall waits forever for an approval prompt that never renders. The old--yolosailed through; now you express approval explicitly with--headlessplus an--approvepolicy.--approve allauto-approves file writes and command execution, so keep it inside a sandbox. agy -pcan drop stdout. Early versions silently dropped stdout when--print/-pran under a pipe, subprocess, or redirect. If a script readsagy's output, verify you actually get bytes back before trusting it.GEMINI_API_KEYis ignored. Local auth uses theagy auth logintoken; CI usesANTIGRAVITY_TOKEN. Leave the old variable set and you'll burn time wondering why it has no effect.
None of these are dealbreakers, but they're the difference between a clean cutover and a broken Monday pipeline. Test on a throwaway workflow first.
Antigravity CLI vs Claude Code
This is the comparison most builders are actually searching for, because Claude Code is the closest terminal-native analog. Here's the honest split:
Antigravity CLI (agy) | Claude Code | |
|---|---|---|
| Install | One-line curl / PowerShell script | npm install -g @anthropic-ai/claude-code |
| Runtime | Single Go binary | Node.js |
| Default model | Gemini 3.5 Flash (auto-selected) | Claude Sonnet / Opus |
| Core strength | Multi-agent orchestration | Complex multi-file reasoning |
| Pricing | Google account / Cloud project tiers | Pro $20 / Max $100-$200 per month |
| Maturity | New, no full Gemini CLI parity | Mature, large ecosystem |
| Best for | Google-stack builders, parallel runs | Day-to-day terminal shipping |
Short version: if you live in the Google ecosystem and want parallel agents from the terminal, agy is the natural pick. If you want the most mature terminal coding agent today and don't care which cloud it talks to, Claude Code is still the safer bet. Many builders will run both - agy for Gemini-backed tasks, Claude Code for everything else.
For the full field including Cursor and the Antigravity IDE, see our best AI coding agent comparison.
Should You Switch?
- You were on Gemini CLI free/Pro/Ultra: You have to move - the tool is dead.
agyis the path of least resistance if your work is Google-centric. - You hold an enterprise Gemini Code Assist license: You keep both tools, so there's no rush. Test
agyon a side project before you standardize on it. - You're tool-shopping fresh: Don't pick
agypurely because it's new. The missing Gemini CLI parity and the quota trap are real trade-offs - if you run high-volume agent loops, the per-prompt cost ceiling will bite. Weigh it against Claude Code and Cursor on the work you actually do.
The smart play right now is to install agy, port one real workflow, and keep your fallback alive until the CLI proves it covers your cases. New tools earn trust by surviving your actual pipeline, not a toy demo.
Sources & Verification
Built from Google's official Antigravity docs and the Google Developers Blog announcement transitioning Gemini CLI to Antigravity CLI (June 18, 2026), the Antigravity I/O 2026 feature deep-dive, and the public antigravity-cli GitHub issue tracker. The quota and CI gotchas are drawn from a June 2026 scan of the GitHub issues, Hacker News, and the Google AI Developers forum. Command syntax reflects Google's published guidance as of June 2026; the tool is new and changing fast, so verify against the official docs before you script against it.
- Transitioning Gemini CLI to Antigravity CLI (Google Developers Blog) - Official announcement of the agy CLI and the June 18, 2026 transition
- Antigravity CLI Overview (official docs) - Official install, auth, and Gemini CLI migration reference
- Google I/O 2026 Feature Deep Dive (Antigravity Blog) - Official source for the new slash commands (/schedule, /browser) and hooks
- antigravity-cli GitHub issues - Community-reported quota lockouts (#56) and non-TTY stdout drop (#76)
- Bye-bye Gemini CLI (The Register) - Independent reporting on the transition
Join AI Builder Club
$37/mo
Get the free newsletter
Weekly deep-dives on AI tools, automation workflows, and builder strategies. Join 5,000+ readers.
No spam. Unsubscribe anytime.