Antigravity Pool
Run BB threads on Google Antigravity models through your BB server without a local VPN on client machines. Pool multiple Google accounts with OAuth credentials stored on the server, keep active sessions pinned for prompt caching, and fail over on HTTP 429 or exhausted 5-hour and weekly quotas. Hold turns open across background commands and subagents, auto-retry mid-turn 401 token expirations, and route dangerous subagent commands to BB approval prompts via PreToolUse hooks. Track aggregated 5-hour and weekly quota windows for Gemini and Claude/GPT directly in Settings → Provider usage. Requires the Google Antigravity CLI (`agy`) installed on target hosts and at least one Google account with Antigravity access.
Overview
What you get
- BB Server Relay (
CLOUD_CODE_URL) — tunnels all Antigravity API and SSE streaming requests from enrolled machines through your BB server (/api/v1/plugins/antigravity-pool/http/relay) so client laptops and worktree hosts do not need a local VPN. - Multi-account quota pool & failover — add multiple Google accounts on the BB server from
Settings → Plugins → Antigravityor viabb antigravity account addandbb antigravity account login-complete --code-stdin. The hub pins active sessions to keep prompt caches warm, shifts new sessions once Gemini or Claude 5h/weekly usage crossesswitchThresholdPercent, and automatically fails over on HTTP429. - Embedded background-hold proxy — holds
end_turnwhile Antigravity background commands or subagents are still running, auto-retries mid-turn401expirations, and inlines local image attachments as base64. - Subagent & Claude project hooks — configures
~/.gemini/config/hooks.jsonso irreversible subagent commands prompt for approval in BB and project.claude/settings.jsonPreToolUseguards apply to Antigravity tools. - Native subscription usage & timeline dialect — surfaces 5-hour and weekly quota windows in
Settings → Usageandbb settings usage, and rendersrun_command,edit_file,invoke_subagent,update_steps, andsearch_webas native BB timeline items.
Requirements
- Google Antigravity CLI (
agy) installed on the target host (signed in once viaagy acp --login, plus optional extra accounts added to the server pool viaSettings → Plugins → Antigravityorbb antigravity account add).
More from Polza.AI
More in Agents & Providers 97
Add, choose, configure, route, or coordinate who runs a thread.


