Antigravity CLI — Getting Started

Install, authenticate, and run your first Antigravity CLI session. Covers curl and Homebrew installs, OAuth, API key auth, and essential commands.

October 20, 2026
antigravityagyinstallationauthenticationgetting-started

Antigravity CLI — Getting Started

Antigravity CLI (agy) replaces Gemini CLI for individual consumers. This guide covers installation, authentication, and your first session.

Installation

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

The script detects your OS and architecture, downloads the Go binary, verifies the checksum, and installs to ~/.local/bin/agy.

Homebrew (macOS/Linux)

brew install --cask antigravity-cli

Verify

agy --version

If the command isn't found, add ~/.local/bin to your PATH:

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

Authentication

Antigravity CLI supports three authentication methods:

agy

Choose "Sign in with Google" and follow the browser flow. Your token is cached in the system keyring.

Option 2: Gemini API key

Set modelProvider to gemini in ~/.gemini/antigravity-cli/settings.json, then export the key:

{
  "modelProvider": "gemini"
}
export GEMINI_API_KEY="your-api-key"
agy

Get a key at Google AI Studio. GEMINI_API_KEY on its own has no effect; the CLI reads the key only from the environment and does not load .env files.

Option 3: Enterprise (Vertex AI / Code Assist)

gcloud auth application-default login --project your-project-id
export AGY_ADC_AUTH=true
agy

First Session

cd your-project
agy

You'll see the Antigravity CLI prompt:

⚡ Antigravity CLI
  Model: Gemini 3.8 Flash (High)
  Context: 1,048,576 tokens
  Sandbox: off (enable with --sandbox)

  Type /help for commands.

>

Essential Commands

| Command | What it does | |---|---|---| | /help | Show all commands | | /model | Switch AI model | | /config | Open configuration settings | | /clear | Clear conversation | | /mcp | Manage MCP servers | | /skills | Manage installed skills and plugins | | /agents | List and monitor active agents |

Quick Examples

# Analyze your codebase
> Explain the architecture of this project

# Generate code
> Create a REST API endpoint for user authentication

# Debug
> Why is this test failing?

# Refactor
> Rename `User` to `Account` across all files

Model Selection

Switch models during a session:

/model

Available models:

Display nameModel
Gemini 4 Argon (High)Frontier reasoning, Google AI Pro and Ultra
Gemini 3.8 Flash (High)Fast, general-purpose coding
Gemini 3.8 Flash (Medium)Cheapest, fastest
Gemini 3.1 Pro (High)Deep reasoning, architecture
Claude Sonnet 5.5 (Thinking)Balanced reasoning
Claude Opus 5.5 (Thinking)Maximum reasoning depth
GPT-OSS 120B (Medium)Open-source alternative

Run agy models to list the exact slugs. The --model flag takes a slug, not the display name:

agy models
agy --model gemini-3.8-flash-high

Next Steps

Sources