# Engine: Antigravity

Google's coding agent (the `agy` CLI, successor of Gemini CLI for personal accounts), **beta**. Harness runs Antigravity as it is; what differs from Claude Code is listed in the
box **What changes with Antigravity** (Settings -> Engine -> Antigravity). See [Engines](engines.md) for what is common to
every engine.

## Sign-in and providers

A **Gemini API key** (Google AI Studio): put it in Settings -> Keys, then choose it for **Google Gemini API** in
Settings -> Providers. Antigravity runs Gemini models only, so OpenRouter is not used. Signing in with a Google account
(Google AI Pro or Ultra) is not supported yet; Harness never starts that sign-in. **Install** in its panel downloads
the version Harness was tested with from Google's own release files and checks it (271 MB, nothing else needed on the
server); its data stays in Harness's own folder.

## Models

`gemini/<model>-<thinking level>`: the Gemini models Antigravity offers a key are listed
(`gemini/gemini-3.8-flash-medium` by default: fast and cheap on a key; Antigravity's own default, Pro, costs several
times more per turn). The thinking level is part of the model's name (`-low`, `-medium`, `-high`); a model it does not
know is refused.

## What works

Conversation, tools, files and the Changes view, memory, skills, MCP servers, steer, agents, the Sandbox mode of a
topic, sandboxed agents, the small calls, thinking.

## How Harness adapts it

- **Memory**: the folder's CLAUDE.md, its imports and the levels above are given as its instructions (Antigravity does
  not read CLAUDE.md; it also reads an AGENTS.md or GEMINI.md of the folder if there is one). Each session has its own
  Antigravity folder, so two sessions never share instructions.
- **Rules**: Antigravity runs without asking (a flag of its command), and its rules are not ones Harness relies on, so rules hold
  **inside the Sandbox only** (see [Engines](engines.md)): there, Harness's sandbox goes around the whole of it.
  Outside it, a session runs with full access and a note says so once per session.
- **MCP servers**: those of Settings -> MCP and Harness's own are given to it at the start of each message.
- **Off**: its self-update, its telemetry.

## Limits

- **Estimated cost**: Antigravity says the tokens of a turn, not dollars. Harness prices them at the list price of the
  same Gemini model in OpenRouter's catalogue; a model named differently there (Gemini 3.1 Pro) shows no cost, and a
  budget is then refused.
- It has a scheduler of its own and a remote-control mode, with no documented way to switch them off: use Harness's
  scheduled jobs.
- Refused with the reason, never run on another engine: plan mode, the Ask me mode and an agent's approvals, Add to
  task, side questions, an agent's own rules. Pictures attached to a message are given as file paths. It cannot ask
  you questions in the middle of a turn.

## From a terminal

```
maxxing engines install antigravity
maxxing engines provider gemini GEMINI_API_KEY
maxxing engines use antigravity
maxxing engines model antigravity gemini/gemini-3.8-flash-medium
```
