Google Antigravity (ACP)
Google Antigravity (agy) can serve as an LLM and agent provider in Blitz using the Agent Client Protocol (ACP). This lets Blitz communicate with your local Antigravity installation to leverage your existing subscription or license with zero per-token API charges.
Blitz connects to Antigravity as an ACP client. Communication occurs either by spawning the CLI process (agy or antigravity) over standard input/output (stdio), or by connecting to an active daemon over a Unix domain socket (socket).
Available models through Antigravity include Google’s Hydrogen and Flash tiers (e.g., gemini-4-hydrogen-high, gemini-3.8-flash-high) as well as Antigravity-hosted models (such as claude-sonnet-4-6 or claude-opus-4-6-thinking).
- Open Settings › Providers & keys.
- Select the Google tab.
- Switch between Gemini and Google Antigravity (ACP) using the segmented control.
- Set the CLI or Binary Path (
agyby default, or an absolute path such as/usr/local/bin/agy). - Choose the Transport:
- Process stdio (
agy serve --acp): Spawns the binary on demand. - Unix Domain Socket: Connects to a running daemon at the specified socket path.
- Process stdio (
- Choose the Default model (e.g.,
gemini-4-hydrogen-highordefault). - Click Use to activate Google Antigravity as your primary provider, or click Deactivate to disable Antigravity and return to Google Gemini.
In ~/.blitz/.env.toml:
[llm]
provider = "antigravity"
providers = ["gemini", "antigravity"]
[llm.antigravity]
path = "agy" # CLI binary name or absolute path
transport = "stdio" # "stdio" or "socket"
# socket_path = "/path/to/agy.sock" # required when transport = "socket"
model = "gemini-4-hydrogen-high" # default model
To switch back to Gemini from the CLI:
blitz providers use gemini
When using Antigravity via ACP rather than direct API providers (such as the Gemini API or Claude API), several behavioral differences apply:
- Native Root Persona: When connected via ACP, you are communicating directly with the Antigravity runtime’s root coordinator agent. Its style, tone, and system prompts are controlled by the Antigravity engine.
- Subagent Definitions: Custom subagents defined in
.agents/agents/*.md(e.g.,qa.md,cluster-test-engineer.md) are treated as specialized subagent worker roles that Antigravity can invoke for specific sub-tasks. They do not replace the persona of the root agent talking in the main chat. - Personality Directives: Tone and persona directives specified in Blitz’s workspace instructions (e.g.,
AGENTS.mdor.agents/) are treated by the underlying model as workspace guidelines and constraints rather than complete identity overrides.
- No Built-in
/setupCommand: Commands like/setupare not built-in slash commands in Antigravity. Typing/setupwill be unrecognized unless a custom skill is specifically registered with that name. - Skills as Commands: Antigravity maps workspace skills into slash commands. For a slash command to work, a corresponding skill must exist in
.agents/skills/<name>/SKILL.md(project-scoped) or~/.gemini/antigravity-cli/skills/<name>/SKILL.md(global). - Listing Commands: Type
/helpor/in the chat to see all currently active slash commands and registered skills.
- Hierarchical Discovery: Antigravity discovers project configuration,
.agents/definitions, custom skills, and repository rules relative to the working directory where the ACP bridge is initialized. - Parent Directory Pitfall: If Blitz launches the ACP bridge or opens a session in a parent directory (such as
~or a general workspace folder) instead of the specific repository root (such as~/Projects/my-app), Antigravity will not locate or load the project-specific.agents/folder. Always ensure the workspace root matches the repository being worked on.
- In
stdiomode, the Antigravity process runs on the host machine. Ensure binary permissions and command execution policies match your security expectations. - In socket mode, the external Antigravity daemon must be started and listening before Blitz initiates sessions.