How to run Google Antigravity inside OpenBot safely OpenBot by Nightly Labs connects to Google Antigravity by spawning the official, unmodified Antigravity CLI over the Agent Client Protocol (ACP) rather than extracting OAuth tokens, keeping the setup within Google's December 2026 rewrite of clause 6 of the Antigravity Terms of Service, according to a guide by Flavio. The guide says OpenBot's Gemini provider disables account pooling, avoids Google's internal Code Assist endpoints (cloudcode-pa, daily-cloudcode-pa, v1internal), and on CLI 1.5.16 and newer checks remaining quota via the headless command `agy -p /usage --output-format json --print-timeout 20s`. The setup targets macOS 13 or newer on Apple Silicon arm64 or Intel x64, and recommends switching unattended routines to a Gemini API key. How to run Google Antigravity inside OpenBot safely By Flavio https://flaviocopes.com/about/ Tagged: AI https://flaviocopes.com/tags/ai/ Set up OpenBot with Google Antigravity over ACP without breaking Google's Terms of Service, switch unattended routines to a Gemini API key, and trigger agents from openbot-cli or webhooks. If you want persistent AI teammates that have their own workspace, browser, history and scheduled routines, Grok Bot https://flaviocopes.com/grok-bot/ is the turnkey option, and T3 Code https://flaviocopes.com/t3-code/ is great as a coding workbench. OpenBot https://openbot.run sits right in the middle. One quick note on the name before we start: this guide is about OpenBot by Nightly Labs nightly-labs/openbot https://github.com/nightly-labs/openbot , not CopilotKit’s workspace at open.bot that shares the same name. It’s a local-first desktop app with an optional Linux server, Docker container, and mobile apps where you run persistent agents backed by the AI tools you already pay for: Codex, Claude Code, Grok, OpenCode, and Google Antigravity. The big question everyone asks before they connect their Google AI Pro or Google AI Ultra https://flaviocopes.com/google-ai-ultra/ plan to a third-party bot workspace is simple: will this get my account flagged? Let’s see how OpenBot talks to Google Antigravity, why it stays inside Google’s updated Terms of Service, how to set it up on macOS, and where the line sits between your Google sign-in and a Gemini API key. Why OpenBot stays inside Google’s Terms of Service In December 2026 Google rewrote clause 6 of the Antigravity Terms of Service https://antigravity.google/terms/ . I broke down the full policy change in what gets Google Antigravity accounts banned https://flaviocopes.com/google-ai-account-bans/ . The rule is simple. You can wrap the official, unmodified Antigravity CLI agy in a third-party interface over the Agent Client Protocol ACP , run it in headless mode agy -p , or call it as a subagent from another harness I covered calling agy -p as a subagent https://flaviocopes.com/antigravity-subagent/ . What stays banned is extracting Antigravity OAuth tokens to hit Google’s private endpoints directly, making the harness a raw completions proxy for an external loop, or pooling personal subscriptions across users. OpenBot’s Gemini provider antigravity in nightly-labs/openbot https://github.com/nightly-labs/openbot is built around those boundaries: - It spawns the official, unmodified Antigravity CLI over ACP acp instead of implementing its own OAuth shim. - It never calls Google’s internal Code Assist endpoints cloudcode-pa , daily-cloudcode-pa , or v1internal for usage or verification links. - It disables account pooling for Gemini, so OpenBot will never rotate turns across multiple personal Google accounts behind your back. - On CLI 1.5.16 and newer, it checks remaining quota by running the unmodified headless command agy -p /usage --output-format json --print-timeout 20s , and stops if the CLI tries to bill that command as a regular turn. Here’s how requests flow through OpenBot, depending on whether you run an interactive teammate on your Google plan, or an unattended routine on an API key: If you’re just starting to set up Antigravity on your Mac, I recommend starting with the complete guide to Google Antigravity https://flaviocopes.com/antigravity/ . You can also download the free Antigravity Handbook https://flaviocopes.com/ebooks/antigravity-handbook/ to read it offline. Install OpenBot and pick the right Antigravity CLI Download the macOS disk image from openbot.run https://openbot.run or the GitHub Releases page https://github.com/nightly-labs/openbot/releases Apple Silicon arm64 or Intel x64 , macOS 13 or newer and drag OpenBot.app into /Applications . On first launch, you pick a language and sign in to an OpenBot account using a one-time email code. Even though the account sign-in is required before you reach the workspace, your chats, files and browser sessions are all local to the computer running OpenBot. Next is a detail that might trip you up if you already have the Antigravity IDE installed. OpenBot never searches your PATH for a binary named antigravity , because the Antigravity editor installs its own antigravity launcher, which is not the ACP CLI. You have 2 clean options: 1. Click Download on the Gemini row inside OpenBot’s Settings Providers screen. OpenBot downloads Google’s official Antigravity CLI from google-antigravity/antigravity-cli into its own managed folder Google’s license does not allow OpenBot to bundle the binary inside the DMG and checks for updates automatically. 2. Point OpenBot at the agy CLI you already installed on your Mac version 1.5.3 or newer by setting OPENBOT ANTIGRAVITY PATH before launching OpenBot. Let’s check the agy version and models already available on my Mac: agy --version agy models With agy 1.5.17 installed at ~/.local/bin/agy , you can launch OpenBot against that exact binary from a terminal: OPENBOT ANTIGRAVITY PATH="$HOME/.local/bin/agy" open -a OpenBot If you prefer clicking Download inside OpenBot instead, you don’t need the environment variable at all. OpenBot will keep its managed copy updated, without touching your system agy . Sign in with Google vs. saving a Gemini API key Inside OpenBot’s Gemini provider settings, clicking Connect will run an ACP authenticate call with oauth-personal and will open accounts.google.com in your browser. Once you sign in, OpenBot asks the CLI for model/list and keeps Google’s own ordering. On my Mac, OpenBot downloaded Antigravity CLI v1.5.25 and exposed all 8 models from my plan, starting with Gemini 4 Neon https://flaviocopes.com/gemini-4-neon-review/ and Gemini 4 Carbon: Notice the green circular Gemini quota indicator in the left sidebar next to Codex and Grok, and the Add key button right under Accounts . You can save a Gemini API key GEMINI API KEY on that same Gemini provider page. This single toggle changes how OpenBot routes turns, and is the cleanest way to separate interactive work from unattended proactive bots. | Setting | Google sign-in oauth-personal | Saved Gemini API key GEMINI API KEY | |---|---|---| | Best for | Interactive personal teammates you prompt yourself | 24/7 scheduled routines, webhook bots, and heavy queues | | Billing | Your Google AI Pro or Ultra subscription | Pay-as-you-go or Google AI Ultra monthly API credits https://flaviocopes.com/google-ai-ultra-api-credits/ | | Models listed | Full plan catalog Gemini 4 Neon, Carbon, Hydrogen, plus Claude/GPT | API key Gemini models only no Carbon, Claude, or GPT | | Quota reading | agy -p /usage --output-format json 5-hour and weekly buckets | None returns API rate-limit errors directly | | Priority when both are set | Overridden while a key is saved | Always takes precedence apiKeyInUse | One practical quirk to know upfront: if you save a Gemini API key on the default Gemini row, OpenBot will route turns through the key instead of your Google sign-in, and will move agents off any model the key does not serve. Removing the key will put your Google plan back in charge. How OpenBot checks Antigravity quota and fails over Since the Antigravity ACP server does not push the plan usage, OpenBot checks the remaining 5-hour and weekly buckets using the unmodified headless CLI: agy -p /usage --output-format json --print-timeout 20s | jq '{ status, num turns, groups: .command.data.groups | { name, buckets: .buckets | { id, window, remaining: .remaining fraction 100 | round | tostring + "%" , reset time } } }' When I ran this on agy 1.5.17, it returned immediately with num turns: 0 and 0 billed tokens: Notice the 1970-01-01T00:00:00Z reset time on the untouched Claude and GPT pool. OpenBot ignores resets before year 2000 so untouched buckets stay clean in the UI. Even better is what happens when you actually hit a limit. If Google replies with a timed quota lock “Individual quota reached” or “Third-party quota reached” followed by a reset timer , OpenBot parses that reset delay, pauses turns against that bucket, and automatically moves the agent to a backup model on another provider say Codex or Claude Code while keeping the same chat and workspace. Context length works cleanly too. Antigravity has no explicit ACP compaction command, so when a long-running teammate fills its context window, OpenBot rotates the underlying Antigravity session in handoff mode. It saves the work steps, starts a fresh session behind the same thread, and passes the handoff summary across so you never lose the agent’s workspace or history. Create a Gemini 4 Neon teammate With Gemini connected, click the + button in the sidebar to create a persistent agent. Pick a name, an avatar, and set Model to Gemini 4 Neon · High : Click Create agent and OpenBot spins up a dedicated workspace folder on disk ~/OpenBot/Agents/agent-... and starts a fresh Antigravity ACP session behind that thread: Making agents proactive: routines, webhooks, and openbot-cli Once your teammate is up, you don’t have to sit in the window and chat with it by hand. To make it proactive, OpenBot gives you 3 mechanisms: 1. Scheduled and webhook routines In any agent’s routine editor, you can set When to run to a schedule or to Webhook up to 64 webhook routines per host . A webhook routine will generate a unique URL and a Standard Webhooks https://www.standardwebhooks.com/ signing secret whsec ... . Every incoming POST request will have 3 headers X-OpenBot-Timestamp , X-OpenBot-Delivery-Id and X-OpenBot-Signature where the signature is sha256= followed by the lowercase hex HMAC-SHA256 of