Skip to content

Antigravity

Run Google's Antigravity CLI (agy) in a box with a Gemini API key or a Google account login in the guest.

Updated

Antigravity is Google’s coding agent CLI, started with abx agy. abx installs the pinned 1.5.21 Linux tarball from storage.googleapis.com, checked against a SHA-512 digest. Use this page to choose between a Gemini API key and a Google account login.

Launch

abx agy <box>

abx runs agy --dangerously-skip-permissions in the guest. A resumed conversation adds --conversation <id>. Arguments after -- go to agy.

An Antigravity box has no default network hosts. A box with no saved google/account or google/api-key selection starts with networking off, unless you pass --access local or --allow. The network cannot be changed after the box is created, so save a login with abx auth set first. See Network policy.

Authentication

Mode Access What it does
google/api-key masked A host-managed Gemini API key for generativelanguage.googleapis.com. abx selects the Gemini provider in the guest.
google/account global, local You sign in with agy inside the box, and the guest stores the credential.
google/enterprise none Not available in a box. Enterprise ADC needs a separate project, IAM identity and renewal integration.

Gemini API key (masked)

This is the recommended mode.

abx auth set agy --provider google --mode api-key --from 'op://Development/Gemini/api-key'
abx auth verify agy
abx agy first-task

See Secret providers.

Google account login (global or local)

The OAuth flow runs in the guest (ANTIGRAVITY_REMOTE_OOB_AUTH=1): open the link on your host and paste the code into the guest terminal. Antigravity refreshes the login itself. The guest stores it in ~/.gemini/antigravity-cli/antigravity-oauth-token.

For a login that stays on one box:

abx auth set agy --provider google --mode account --access local
abx agy google-work

To reuse the login across trusted boxes, save global access, choose a profile when you create the first box, and sign in there. While the saved selection is global, every new agy box needs --auth-profile NAME, or --access local for a box that keeps its own login; without either, creation fails with Global access requires --auth-profile NAME when creating a box. After you exit the agent, stop the box before opening the next one. abx stop refuses with box-busy while agy is still running.

abx auth set agy --provider google --mode account --access global
abx agy task-a --auth-profile personal
abx stop task-a
abx agy task-b --auth-profile personal

A named profile transfers only the antigravity-oauth-token file. Conversations, settings and workspace trust stay with each box. On a clean stop abx writes the latest login back to the profile and removes the file from the guest. Running /logout in agy and stopping the box propagates the logout to the profile. If a return is interrupted, repeat abx stop on the owning box before switching; abx ls --all shows which box that is. Google may ask for consent again on a new VM.

Verification

abx auth verify agy applies to the API key mode, which has a probe. Guest logins need no verification. See Verification.

Notes

  • With a Gemini API key, the box may reach generativelanguage.googleapis.com. With a Google account login, the box may reach accounts.google.com, oauth2.googleapis.com, www.googleapis.com, lh3.googleusercontent.com, aicode.googleapis.com, cloudcode-pa.googleapis.com, daily-cloudcode-pa.googleapis.com, antigravity-unleash.goog and play.googleapis.com.
  • See Access modes for what a guest-readable login means.

Type to search…

↑↓ navigate↵ selectEsc close