Skip to main content
Blitz
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage
Edit page

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.

How it works

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).

Setup

In the Desktop App

  1. Open Settings › Providers & keys.
  2. Select the Google tab.
  3. Switch between Gemini and Google Antigravity (ACP) using the segmented control.
  4. Set the CLI or Binary Path (agy by default, or an absolute path such as /usr/local/bin/agy).
  5. 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.
  6. Choose the Default model (e.g., gemini-4-hydrogen-high or default).
  7. Click Use to activate Google Antigravity as your primary provider, or click Deactivate to disable Antigravity and return to Google Gemini.

In the Settings File

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

Important Differences and Limitations

When using Antigravity via ACP rather than direct API providers (such as the Gemini API or Claude API), several behavioral differences apply:

1. Root Coordinator vs. Custom Subagent Personas

  • 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.md or .agents/) are treated by the underlying model as workspace guidelines and constraints rather than complete identity overrides.

2. Slash Commands and Skills

  • No Built-in /setup Command: Commands like /setup are not built-in slash commands in Antigravity. Typing /setup will 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 /help or / in the chat to see all currently active slash commands and registered skills.

3. Workspace Scope and Working Directory

  • 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.

4. Tool Execution & Approvals

  • In stdio mode, 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.