Skip to content

Antigravity CLI Getting Started — Gemini CLI Replacement

Google announced Antigravity CLI at I/O 2026 as the successor to Gemini CLI. Gemini CLI stops serving on June 18, 2026 for non-enterprise users. Here’s everything you need to know about the transition.

Antigravity CLI (agy) is Google’s agent-first development tool, built in Go, powered by Gemini 3.5 Flash. It replaces Gemini CLI with a more capable agent framework that supports:

  • Headless execution (-p mode)
  • Workspace management (--add-dir)
  • Session resume (--conversation)
  • Plugin system
  • Auto-permissions in headless mode
Terminal window
# macOS / Linux
curl -fsSL https://antigravity.google/cli/install.sh | bash
# Windows PowerShell
irm https://antigravity.google/cli/install.ps1 | iex
# Verify
agy --version
# Expected: 1.0.0
Terminal window
agy

Opens an interactive session. Type your prompt, agy responds. Like a chat.

Terminal window
agy -p "explain what this function does" --add-dir ./src

Runs a single prompt, prints the response to stdout, and exits. This is the mode used for automation and multi-model workflows.

Terminal window
# Add a directory to the workspace
agy -p "list all TypeScript files and count lines" --add-dir /path/to/project
# agy can read, create, and modify files in the workspace
agy -p "create a README.md with project documentation" --add-dir .
Terminal window
# Continue the most recent conversation
agy -c
# Resume a specific conversation by ID
agy --conversation <conversation-id>
Gemini CLIAntigravity CLINotes
gemini -p "prompt"agy -p "prompt"Same flag
gemini -r session_idagy --conversation idDifferent flag name
gemini --include-directories /pathagy --add-dir /pathDifferent flag name
gemini -yAuto in -p modeNo flag needed
gemini -m model-nameNot availableFixed to Gemini 3.5 Flash
gemini -o stream-jsonNot availablePlain text output only

Key difference: Antigravity CLI outputs plain text (no JSON streaming). This affects tools that parse Gemini’s JSON event stream.

CCG Workflow v3.1.0+ has native Antigravity CLI support. It’s the default frontend model.

Terminal window
# Install CCG with Antigravity as frontend
npx ccg-workflow
# Select "Antigravity" as frontend model in Step 2
# Use it
/ccg:go build a responsive navbar component
# CCG automatically routes frontend tasks to Antigravity CLI

The codeagent-wrapper binary handles the Antigravity CLI integration transparently — including plain text output parsing, workspace passthrough, and session management.

DateEvent
May 19, 2026Antigravity CLI 1.0 launched at Google I/O
June 18, 2026Gemini CLI stops serving (free/Pro/Ultra users)
Post June 18Enterprise users retain Gemini CLI access

Q: Do I need to migrate immediately? A: No. Gemini CLI works until June 18. But setting up Antigravity CLI now gives you time to test.

Q: Is Antigravity CLI free? A: Same pricing model as Gemini CLI — free tier available, Pro/Ultra for higher usage.

Q: Can I use Antigravity CLI with other AI tools? A: Yes. CCG Workflow orchestrates Antigravity alongside Claude and Codex. Learn more →

Q: What about enterprise Gemini CLI users? A: Enterprise licenses (Gemini Code Assist Standard/Enterprise) retain Gemini CLI access with continued model updates.


Guide based on Antigravity CLI 1.0.0 released May 19, 2026.