Skip to main content

Documentation 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.

Antigravity CLI is a terminal-first AI coding agent that understands your codebase, proposes edits with your approval, and executes commands — all without leaving your terminal. It runs on the same core agent engine as Antigravity 2.0, so every improvement to the engine benefits both interfaces automatically.

Installation

Install Antigravity CLI on macOS, Linux, or Windows in under a minute.

Quickstart

Authenticate and start your first AI-assisted coding session.

Command Reference

Browse all slash commands — session, account, settings, and more.

Authentication

Sign in locally or over SSH, including enterprise GCP access.

What Antigravity CLI does

Antigravity CLI brings Antigravity’s core agent capabilities to your terminal:
  • Multi-step reasoning — The agent breaks down complex tasks and works through them step by step, asking for your approval before making changes.
  • Multi-file editing — Edit across files and directories in a single session, with diffs shown before any change is applied.
  • Tool calling — Run terminal commands, search code, and interact with external tools — all from within a single chat session.
  • Persistent history — Resume previous sessions at any time with /resume.

Get started in three steps

1

Install the CLI

Run the one-line installer for your platform. See Installation for all options including Windows.
curl -fsSL https://antigravity.google/cli/install.sh | bash
2

Sign in

Launch the CLI and authenticate with your Google account. The CLI opens your browser automatically, or prints an authorization URL for SSH sessions.
agy
3

Start coding

Describe what you want to build or fix. The agent reads your codebase, proposes changes, and waits for your approval before applying them.
Antigravity CLI shares settings and session data with Antigravity 2.0. If you already use the GUI, your preferences carry over automatically.

Explore the docs

Core concepts

Understand the agent engine, session model, and tool permission system.

Remote SSH guide

Use Antigravity CLI on remote machines and headless environments.

Plugins & skills

Extend the CLI with custom skills and specialized agents.

Export to GUI

Continue a terminal session in the Antigravity 2.0 interface.

Build docs developers (and LLMs) love