Skip to content

Antigravity (Google) (BYOK)

How to create an API key for Antigravity (Google) and add it to AnyRouter via Bring Your Own Key.

Antigravity is Google's agentic IDE. Its local credential format isn't publicly documented, so AnyRouter can't tell you exactly where to find it — the anyr byok CLI commands locate likely files on your machine and show you a masked preview so you know exactly what you're uploading before anything is sent.

Get your API key

  1. Run anyr byok locate antigravity on the machine where Antigravity is installed to find candidate credential files, or anyr byok add antigravity to review one and upload it directly.
  2. byok add antigravity shows the file, a masked preview, and exactly what will happen — nothing is uploaded until you pass --yes.
  3. Donating the key to the shared pool afterward is a separate, explicit opt-in (--donate --donate-yes, or the toggle in the dashboard) with its own consent text shown before anything is recorded — it never happens as a side effect of adding the key.
  4. Alternatively, open the credential file yourself and paste the value into the Antigravity (Google) card here.

Gotchas

If Antigravity issues short-lived OAuth access tokens rather than a long-lived API key, the copy stored in AnyRouter will simply stop working once it expires — Antigravity refreshes its own local copy, but AnyRouter's stored copy won't refresh with it. Run anyr byok add antigravity --yes --replace to swap in a fresh value when that happens: the credential is replaced on the existing key, so the key keeps its id, label, routing settings and pool-donation status. AnyRouter validates the new value against Antigravity (Google) before storing it, and a value Antigravity rejects leaves the previous credential in place.

Add it to AnyRouter

  1. Go to Dashboard → BYOK.
  2. Find Antigravity (Google) under Available and click Add key.
  3. Paste your key into the API key field.
  4. Click Save. AnyRouter runs a live validation call against Antigravity (Google) before storing the key — if it fails, the dialog shows the upstream error and the key isn't saved.