Use Antigravity with any AI provider
Google Antigravity IDE with MITM. Pointing Antigravity at kRouter gives it 100+ providers behind a single local endpoint — free tiers, subscriptions you already pay for, and paid APIs — with automatic failover when one runs out. Antigravity is configured through MITM interception.
Why Antigravity needs interception
Antigravity has no setting for a custom endpoint — it talks to daily-cloudcode-pa.googleapis.com and nowhere else. kRouter runs a local proxy with a trusted certificate that intercepts just that host, so the app keeps working exactly as before while its requests are routed to whichever provider you mapped. Nothing leaves your machine except the upstream call.
Setup
Install kRouter
Install globally, then start it in the background.
Connect a provider
Open the dashboard and connect whichever providers you want Antigravity to reach.
Point Antigravity at kRouter
Enable Antigravity interception on the CLI Tools page and map each model to a provider.
Model slots Antigravity exposes
Each slot maps to whichever provider model you choose, so Antigravity keeps its own naming while the request goes wherever you point it.
Gemini 3.5 Flash (Medium) / DefaultGemini 3.5 Flash (High)Gemini 3.5 Flash (Low)Gemini 3.1 Pro (Low)Gemini 3.1 Pro (High)Claude Sonnet 4.6 (Thinking)Claude Opus 4.6 (Thinking)GPT-OSS 120B (Medium)Gemini 3 Flash (Command)
What changes for Antigravity
Nothing about how you use Antigravity changes — same interface, same workflow. What changes is where its requests land. Instead of being tied to one vendor and one bill, every request goes through your own machine first and out to whichever provider you mapped: a free tier for routine edits, a subscription you already pay for on the heavy turns, a paid API only when nothing else fits. When one account hits a limit, the next takes over mid-session rather than failing the task. And because the router runs locally, your prompts are not passing through a third-party service on the way.
Troubleshooting Antigravity
Antigravity shows a certificate warning
The local certificate has not been trusted yet. Run the trust step from the CLI Tools page — it installs kRouter's root certificate so the intercepted host validates normally.
Requests fail after MITM is turned off
Interception writes host entries while it runs. If it was stopped without cleaning up, those entries can point the app at a proxy that is no longer listening. kRouter detects this state and tells you how to clear it.
Antigravity + kRouter FAQ
Can Antigravity use providers other than its default?
Yes — that is the point of routing it through kRouter. kRouter presents one OpenAI-compatible endpoint that fans out to 100+ providers, so Antigravity can reach any of them without knowing they exist.
How is Antigravity pointed at kRouter?
Through MITM interception. Antigravity has no endpoint setting, so kRouter intercepts its traffic locally instead.
Does routing Antigravity through kRouter cost anything?
kRouter is free and MIT-licensed and adds nothing to your bill. What you pay is whatever the provider you routed to charges — which is often nothing, if you route to a free tier or a subscription you already hold.
What happens when a provider runs out of quota mid-session?
kRouter parks that account until its real reset time and fails over to the next one you have connected, so Antigravity keeps working instead of erroring out mid-task.
Get Antigravity routing in two minutes
kRouter is free, MIT-licensed, and runs entirely on your machine — no account, no proxy in the middle.
Install kRouter