Antigravity CLI is designed to work from a fresh clone. The repo-local command is ./ag; after setup, the installed product commands are ag, ag-cli, and antigravity-cli.
./ag doctor
./ag models
./ag sessions listThe launcher bootstraps itself. If .venv is missing it looks for uv, installs uv with the official installer when needed, creates .venv, and installs this package in editable mode before running the command.
./setup-ag.shThis does four things:
- Finds or installs
uv. - Creates
.venvwith Python 3.11. - Runs
uv pip install -e .. - Symlinks
./agto~/.local/bin/ag,~/.local/bin/ag-cli, and~/.local/bin/antigravity-cli.
After setup:
export PATH="$HOME/.local/bin:$PATH"
ag doctor
ag-cli models
antigravity-cli sessions listUse these only when you need to force a specific runtime:
ANTIGRAVITY_CLI_PYTHON=/path/to/python ag sessions list
AG_PYTHON=/path/to/python ag sessions list
AG_NO_BOOTSTRAP=1 ag sessions list
AG_NO_UV_INSTALL=1 ag sessions listModel overrides:
ANTIGRAVITY_MODELS_JSON='[{"id":1037,"label":"Gemini 3.1 Pro (High)","default":true}]' ag modelsor:
~/.config/antigravity-cli/models.json
- macOS with Antigravity installed for live runtime features.
- Python 3.11+ recommended.
uvis used for automatic dependency bootstrap;./agcan install it when missing unlessAG_NO_UV_INSTALL=1is set.
Without Antigravity running, static/help commands still work, but doctor, live model discovery, session refresh, runtime send, and UI control may report unavailable services.