Google's official documentation for Antigravity explicitly states:
"There is currently no support for bring-your-own-key or bring-your-own-endpoint."
Google didn't build a complete fork of VS Code and hand out free/subsidized access to massive frontier models out of pure altruism. They are executing a classic tech platform strategy, and there are a few big reasons why blocking OpenRouter or custom API base URLs serves their goals:
1. Driving Vertex AI & Gemini Adoption
Google is playing catch-up to OpenAI and Anthropic in the developer mindshare space. By building a incredibly powerful "agent-first" IDE that handles the editor, terminal, and browser seamlessly, they want to prove that Gemini 3 and Vertex Model Garden are elite engineering tools. If they let you swap the core brain out for OpenRouter, you'd just use cheaper endpoints or rival models, and Google loses the telemetry and adoption data.
2. Under-the-Hood Heavy Lifting (The Agentic Control Loop)
Antigravity isn't just sending simple chat prompts. When you tell it to build a feature, it spins up an "Agent Manager" that runs deep, multi-step loops: planning, executing code, running terminal commands, and analyzing the UI via a Chrome extension.
- To do this reliably, Google tunes the system heavily around Gemini's native tool-calling, long context windows, and structural output capabilities.
- If they let users plug in random, unstable, or poorly quantized open-source models via external proxies, the complex agent loops would constantly break, making Antigravity look bad.
3. The Subsidized Lock-In
Right now, Google is heavily subsidizing the computational cost of running these intense multi-agent workflows to get developers hooked on the Antigravity workflow. The moment you are locked into their specific system files, ~/.gemini/ configurations, and agent workflows, the friction to leave for Cursor or Windsurf becomes much higher.
The Developer Pushback
Unsurprisingly, developers don't love being locked into a single ecosystem. Because Google is keeping the gates closed, the community has resorted to making unofficial auth bypasses (like the opencode-antigravity-auth project on GitHub) just to extract the models out of Antigravity and use them in open-source CLIs where they actually have endpoint freedom.
The lack of a "Custom API URL" box isn't a missing feature they forgot to code-it's a deliberate fence to keep you in the Google yard.
Comments & Ratings
#
Loading comments...