Skip to content

Providers

Google Antigravity

Set up Google Antigravity in Octant with your own Google sign-in, a Gemini API key or Agent Platform, what each supports, and how Octant keeps to Google's terms.

  • 9 min read
  • 6 sections

Google Antigravity ​

Google Antigravity's command-line agent, agy, runs in Octant over the Agent Client Protocol (ACP). Octant starts Google's own CLI, unmodified, the way Google's guide tells an ACP client to: agy acp in your project folder. The agent, its tools and your settings come from the CLI; it signs in the way you choose (see Choose how it signs in).

Set up Google Antigravity ​

  1. Install the Antigravity CLI, version 1.5.0 or later, so agy is on your PATH. Check with agy --version.
  2. Open Settings → Providers & Models. A detected Antigravity is added switched off, on your personal Google sign-in.
  3. Choose its sign-in under Authentication (below), and sign in that way.
  4. Turn it on. Octant runs Check connection first.
  5. Wait for Ready, then pick a model.

Choose how it signs in ​

Each Antigravity provider has one of three sign-ins. Change it under Authentication on the provider's card in Settings → Providers & Models, or pick it when you add the provider.

  • Personal Google sign-in (the default). Sign in once in a terminal with your Google account: run agy, or agy acp --login on a machine without a browser. Octant reuses the sign-in the CLI keeps for you and never reads, copies or replaces it. Google supports this sign-in only for turns you send yourself, so Octant keeps it to interactive use.
  • Gemini API key. Paste a key from Google AI Studio. Octant keeps it in your Keychain (or the host's credential store) and never shows it again, and passes it to agy acp as GEMINI_API_KEY when the CLI starts.
  • Agent Platform (Google Cloud project). Enter your Google Cloud project and location (such as us-central1). The CLI signs in with this computer's Application Default Credentials, so run gcloud auth application-default login first. Octant passes the project and location as GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION and never reads the credentials.

With a Gemini API key or Agent Platform, Octant also tells the CLI to use that sign-in each time it starts, so a personal sign-in the CLI has cached is not used for these runs. If your agy does not offer that sign-in, Check connection says so; update the CLI.

A Gemini API key works everywhere Antigravity runs. With Agent Platform, Work and Code outside Strict start the CLI without Octant's sandbox, so it signs in as it would on its own. Where Octant does sandbox it outside Strict (Check connection, Chat and Plan), the sandbox lets the CLI read one file, ~/.config/gcloud/application_default_credentials.json, and nothing else in ~/.config/gcloud. Octant reads only that default location, not a folder set with CLOUDSDK_CONFIG. Under Strict, or in a thread that keeps the sandbox at Full access, an Agent Platform turn is refused with a sentence saying so: turn Strict off and Keep the sandbox off for that thread, or switch the provider to a Gemini API key. A Gemini Enterprise browser sign-in is not offered: Octant cannot tell it apart from a personal sign-in.

Interactive use on a personal sign-in ​

Google supports Antigravity on a personal sign-in for one person, on their own computer, driving the CLI themselves. Octant keeps a provider on the personal Google sign-in to that: its threads run only the turns you send. A provider signed in with a Gemini API key or Agent Platform has none of these limits; routines and outside agents work on it as on any provider, and so do helpers with a Gemini API key (not on Agent Platform, below). Whatever the sign-in, Antigravity runs only as its built-in provider, never as an added ACP agent.

  • Your own turns run. Messages you send, messages you queue, and steering a turn while it runs all work as in any thread, whether you send them on the host or from one of your own paired devices.

  • Every turn you did not send is refused. That includes routines (scheduled, triggered, Run now and follow-ups, refused before any thread is created, and a routine saved earlier is refused at its next run), wake-ups, goal rounds, a pull request's Auto-fix, usage-limit retries, continuing after a restart, and a helper's result delivered back into the thread. Each refusal says:

    Google doesn't support unattended runs of Google Antigravity on a personal Google sign-in, so Octant did not start this run. Switch this provider to a Gemini API key or Agent Platform in Settings, or choose another provider.

  • No helper runs. Antigravity cannot be a subagent of another thread, and an Antigravity thread cannot start helpers on any provider. Antigravity's own built-in subagents inside agy still work. A refused helper run says:

    Google doesn't support Google Antigravity as a helper agent, or starting helpers from it, on a personal Google sign-in. Switch this provider to a Gemini API key or Agent Platform in Settings, or use another provider for helper work.

  • No outside agents. An agent you gave a grant cannot send prompts or answers to an Antigravity thread:

    Google doesn't support another agent driving Google Antigravity on a personal Google sign-in. Continue this thread yourself in Octant, or switch this provider to a Gemini API key or Agent Platform in Settings.

  • Only the built-in provider. Adding Antigravity as a plain ACP agent, from the registry's antigravity-acp entry or as a local agy command, is refused, and one added earlier never starts:

    Google Antigravity runs only as its built-in provider, which keeps it to the use its vendor supports on a personal sign-in. Add Google Antigravity in Settings › Providers & Models instead.

These limits apply to a provider on the personal Google sign-in whatever login the CLI has cached, because Octant cannot tell which method a cached sign-in uses. For routines or outside agents, switch the provider to a Gemini API key or Agent Platform, and for helpers to a Gemini API key: Octant passes those itself, so it knows which sign-in a run uses.

On Agent Platform, Antigravity cannot be a helper either, because a helper can't read the computer's Application Default Credentials. A thread on it can still start helpers on other providers. A refused helper run says:

Google Antigravity can't run as a helper on Agent Platform: helpers can't read your Application Default Credentials. Use a Gemini API key account for helper work.

Google's terms ​

Google's Antigravity terms and FAQ forbid reaching the service through third-party software with your personal Antigravity sign-in, and Google's documentation names the supported way for other apps: an ACP client that launches agy acp. A Gemini API key or Agent Platform falls under Google's API and Cloud terms instead. Octant stays on that path, and keeps a personal sign-in to interactive use:

  • It runs only agy acp, with flags Google's ACP guide lists.
  • It identifies itself as Octant. Google offers models from other vendors only to some named editors, so in Octant Antigravity offers Gemini models.
  • It never runs the CLI's headless mode (agy -p), which Google supports for your own scripts and CI, not inside other apps on consumer plans. For the same reason Octant does not show Antigravity's 5-hour and weekly limits, which the CLI reports only through /usage.
  • It never switches or rotates Antigravity accounts by itself.

What works natively ​

FeatureGoogle Antigravity
Reopen the thread's own sessionYes, without replaying its history
Start from one of its sessionsYes, from the sessions it lists for the folder
Approval prompts from the runtimeYes
Questions from the agentYes
Reasoning shownIf the agent sends it
Token usage countedYes, from each turn's reply
Plan limits shownNo (see Google's terms)
File changes and diffsNo
Attachments sent nativelyImages, files and audio, as the agent advertises them
Octant tools (Browser, Computer)When the agent offers MCP over HTTP
Its own commands (/plan and so on)Yes, at the start of a prompt
Compact sessionNo
Auto-review of approvals in CodeNo

Approvals and access ​

Antigravity runs in its own asking mode, so it asks before every edit and command, and Octant answers for the thread's access level. Full access answers yes for you. Where the agent offers Always allow and you keep approvals for the session, Octant chooses it, so the agent remembers your answer, as it does for every ACP agent.

In Work and Code outside Strict, Octant starts Antigravity the way your own terminal would, at every access level: no Octant sandbox, your environment, your real home folder, your network, and its own setup. Its approvals hold the access level. Chat, Plan, Strict, a sandbox you chose, and a Full access thread that keeps the sandbox start it inside Octant's sandbox instead. On a Mac, that sandbox still lets the CLI read its own keychain sign-in.

Octant starts Antigravity with its telemetry and self-update turned off unless you turn on the matching provider switch. A provider terminal starts it without the telemetry opt-out. See Provider telemetry and updates.

Its own setup ​

Antigravity loads your instructions and skills from ~/.gemini, and a Project's .agents/skills and .gemini/skills, as it does on its own, under Strict too.

Sessions ​

Octant keeps the CLI running between turns, so a follow-up does not wait for it to start again. A subagent on Antigravity takes your Steer note into its running turn, as Google's guide describes, and a running Antigravity turn takes a finished subagent's result the same way. A plain-text message you send from your own window while a Work or Code turn runs goes into that turn too, shown as Sent while the turn ran; see Send while a reply is running. An empty Work or Code thread can start from one of Antigravity's own sessions for its folder.

A Code thread's terminal actions, and a Work task's Project terminal card in Zen, can open Antigravity's own terminal: agy in its own interface in the thread's folder, with the thread's sign-in and environment. Only you can open or type into it, and what happens there stays outside the thread's record. See Open a provider terminal.

Troubleshooting ​

  • Not signed in. On the personal sign-in, run agy (or agy acp --login) in a terminal and sign in with your Google account, then run Check connection again. With a Gemini API key, check the key on the provider's card. With Agent Platform, run gcloud auth application-default login and check the project and location; see the sandbox note in Choose how it signs in.
  • Your agy doesn't offer this sign-in. Your agy does not list the Gemini API key or Agent Platform method, so checking the key or project will not help. Update the Antigravity CLI, or choose another sign-in.
  • Version too old. Update the Antigravity CLI to 1.5.0 or later.
  • A turn stops with a usage limit message. Your account's quota for that model may be used up. Check your plan, then retry.

Octant documentation · local-first by design