This guide walks you through everything you need to go from zero to your first working session with Antigravity CLI. By the end, you will haveDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/google-antigravity/antigravity-cli/llms.txt
Use this file to discover all available pages before exploring further.
agy installed, authenticated, and running on a real task in your codebase.
Install the CLI
Run the one-line installer for your platform. On macOS or Linux, open a terminal and run:On Windows PowerShell:On Windows Command Prompt:After the installer finishes, open a new terminal window so the
agy command is available on your PATH. See Installation for platform-specific details and verification steps.Authenticate with your Google account
Launch the CLI from your terminal:Antigravity CLI authenticates through the system keyring. On your first launch — or whenever no saved session exists — it starts a Google Sign-In flow:
- Local machine: Your default browser opens automatically to the Google Sign-In page. Complete sign-in there and return to the terminal.
- Remote / SSH session: The CLI detects that no browser is available and prints an authorization URL instead. Open that URL in a browser on any device, complete sign-in, and the terminal session will resume automatically.
Start your first session
Once authenticated, you are in an interactive chat session. Navigate to a project directory before launching, or start from any directory and reference paths explicitly in your prompt.Type a task in plain language and press Enter. For example:The agent reads the relevant files, reasons through the changes needed, and presents a diff for your review before applying anything. You approve or reject each proposed change.
The agent will never apply edits or run commands without your explicit approval. You remain in control of every action.
Use slash commands
Slash commands give you direct control over the CLI from within a session. Type
/ to see a list of available commands. Commonly used commands include:/resume— Open a previous session and continue where you left off./logout— Sign out and clear saved credentials./usage— View real-time model usage and remaining quota./quota— Check your current quota limits./settings— Open Settings to adjust preferences and permissions.
Next steps
You are ready to use Antigravity CLI. Here are useful places to go from here:- Authentication — Learn about the full auth flow, enterprise GCP access, and managing credentials.
- Command reference — Browse every slash command available in the CLI.
- Remote SSH guide — Configure Antigravity CLI for headless and remote environments.
- Export to GUI — Continue a terminal session in the Antigravity 2.0 interface.