Agentic AI Tools
Antigravity CLI Setup Guide
Antigravity CLI keeps Google terminal-agent workflows available after the Gemini CLI transition.
The terminal is where your files live, so your agent should live there too.
Overview
Antigravity CLI is Google's terminal interface for the Antigravity agent platform. Google positions it as the successor path for consumer and free Gemini CLI users. Enterprise and API-key Gemini CLI paths remain available for specific Google Cloud and paid Gemini plans.
Info
Currentness note, June 2026: Google announced the transition from Gemini CLI to Antigravity CLI on May 19, 2026. On June 18, 2026, Gemini CLI and Gemini Code Assist IDE extensions stop serving requests for Google AI Pro/Ultra users and free Gemini Code Assist individuals. Enterprise Standard/Enterprise, Gemini Code Assist for GitHub through Google Cloud, and paid Gemini / Gemini Enterprise Agent Platform API-key access remain supported. See Google's transition announcement.
Use Antigravity CLI when you want:
- A terminal agent that shares the Antigravity 2.0 backend
- SSH-friendly, keyboard-first workflows
- Multi-step agent work without living in a desktop IDE
- Google's current consumer/free successor to Gemini CLI
Do not treat Antigravity CLI as a replacement for direct Gemini API access. If a workflow uses Google AI Studio, GOOGLE_API_KEY, GEMINI_API_KEY, Cherry Studio, OpenCode, Vox, or another provider client, keep following the Gemini API setup for that tool.
Install
Use the official installer from the Antigravity CLI repository or the Antigravity CLI docs.
curl -fsSL https://antigravity.google/cli/install.sh | bashThen verify the command:
agy --version
agy --helpIf the installer added files but your shell cannot find agy, check that the install directory is on your PATH. The installer usually places the binary in a standard user location such as ~/.local/bin or ~/bin. Add the relevant path to your shell profile, reload it, and restart the terminal:
# Example for ~/.local/bin on macOS/Linux
export PATH="$HOME/.local/bin:$PATH"Authenticate
Antigravity CLI authenticates through the system keyring and falls back to Google Sign-In when no active session exists.
agyOn a local machine, the first run opens a browser sign-in flow. In an SSH session, it prints an authorization URL that you complete in a local browser.
To clear saved credentials from inside an Antigravity session:
/logoutFor enterprise access, connect the relevant Google Cloud project during onboarding. Do not invent a standalone Antigravity API-key environment variable for normal use. Google's public CLI docs describe Google Sign-In and Google Cloud onboarding, not a standalone API-key flow.
Core commands
These are the commands you need for ordinary setup work:
agy # Start an interactive terminal session
agy -p "Summarize this repo" # Run one prompt and print the response
agy --model <model> # Choose a model for the session
agy models # List available models
agy --continue # Continue the most recent conversation
agy --conversation <id> # Resume a specific conversation
agy update # Update the CLIFor an initial prompt that should continue interactively:
agy --prompt-interactive "Read the project and propose a literature-review workflow"For a one-shot research task:
agy -p "Read the markdown files in this directory and list the unresolved methodological questions."Plugins
Gemini CLI extensions became Antigravity plugins. The current CLI provides plugin management through agy plugin:
agy plugin list
agy plugin import gemini
agy plugin install <target>
agy plugin validate <path>
agy plugin enable <name>
agy plugin disable <name>Use agy plugin import gemini when you are migrating old Gemini CLI extensions. Use agy plugin help to see available commands.
Warning
Antigravity CLI does not currently have a top-level MCP add subcommand. Do not translate old Gemini CLI MCP examples into an Antigravity command by guesswork. Only configure MCP or MCP-like integrations through Antigravity's documented settings or plugin paths, and only after the specific host syntax is known.
Migrating from Gemini CLI
What changes
- The command changes from
geminitoagyfor the terminal agent. - Installation changes from the old Gemini CLI npm package to the official Antigravity installer.
- Authentication changes from Gemini CLI's older flows to Antigravity's Google Sign-In/system-keyring flow.
- Gemini CLI extensions become Antigravity plugins.
- Consumer/free Gemini CLI access is moving to Antigravity CLI.
What does not change
- Direct Gemini API clients still use Google AI Studio and Gemini API keys.
GOOGLE_API_KEYandGEMINI_API_KEYremain valid names in tools that call the Gemini API directly.- Enterprise Gemini CLI access can still exist under Google's paid Gemini / Gemini Enterprise Agent Platform paths.
- Model selection still belongs to the model/provider guide for the tool you are using.
Migration checklist
- Replace old
geminiterminal commands withagyonly where the document is about the CLI tool. - Replace old Gemini CLI setup links with Antigravity CLI docs.
- Remove the old Gemini CLI npm-package install step from new setup instructions.
- Keep Gemini API-key instructions in API-provider pages.
- Review any old Gemini CLI MCP example manually rather than auto-rewriting it.
Research workflow
Use Antigravity CLI as the terminal agent in your research project:
cd ~/Documents/Research-Project
agyKeep research protocols in visible project files that any agent can read:
README.md
AGENTS.md
CLAUDE.md
analysis/protocol.mdA useful first prompt:
Read the project protocol and folder structure. Then identify the safest next three steps for preparing this literature corpus for synthesis.For large-context Gemini model work, use Antigravity CLI when you want Google's agent platform in the terminal. Use Google AI Studio, Cherry Studio, OpenCode, or Vox when the task is direct model comparison or API-backed multi-model work.
Troubleshooting
agy: command not found
Check that the installer path is in PATH. The installer usually places the binary in a standard user location such as ~/.local/bin or ~/bin. Add the relevant directory to your shell profile, reload it, and restart the terminal:
echo $PATHBrowser sign-in does not open
Copy the printed authorization URL into your browser. This is expected in SSH and remote terminal sessions.
Old Gemini CLI commands still appear in notes
Check whether the note is about the Gemini API or the Gemini CLI:
- API/model access: keep
GOOGLE_API_KEY,GEMINI_API_KEY, and Gemini API docs. - Terminal-agent access: migrate to
agy. - MCP examples: do not rewrite unless Antigravity publishes the exact syntax.
What's next
Antigravity CLI now sits alongside Claude Code, OpenCode, and Cherry Studio. For the broader tool choice, see the CLI Tools Overview.
External references
cite this page
Lin, X. (2026). Antigravity CLI Setup Guide. Research Memex. https://research-memex.org/docs/implementation/agentic-ai-tools/antigravity-cli-setup-guide
@misc{docs-implementation-agentic-ai-tools-antigravity-cli-setup-guide-2026,
author = {Xule Lin},
title = {Antigravity CLI Setup Guide},
year = {2026},
howpublished = {\url{https://research-memex.org/docs/implementation/agentic-ai-tools/antigravity-cli-setup-guide}},
note = {ORCID: 0000-0001-7885-4194}
}one renderingthe source remains