antigravity-mcp

Antigravity quota monitoring and quota-aware routing

Antigravity meters usage in two separate pools: Gemini models, and Claude and GPT models. Each pool has a 5-hour limit and a weekly limit. When one pool is empty, agy fails with RESOURCE_EXHAUSTED, even if the other pool is nearly full.

See your quota

antigravity_models returns the live model list, the remaining percentage of each window, the pool headroom (the lowest window per pool) and what "auto" would pick right now. From a terminal, run node src/cli.mjs --check. The dashboard shows the same as bars.

{
  "pool_headroom": { "Gemini Models": 0, "Claude and GPT models": 88 },
  "auto": { "strong": "claude-opus-5-5-high", "fast": "claude-sonnet-5-5-low" }
}

Automatic routing

With model: "auto" (the default for new conversations), each run goes to the pool with the most headroom. Pools at 0% are skipped. Inside that pool, the server picks the strongest model, or with prefer: "fast" a lighter one. The choice and the reason come back in routing.

Fallback when a pool runs out

If a run fails because its pool is exhausted, and fallback is on (the default with "auto"), the server re-runs the task once on the best model of the other pool. The result says so in fallback_from, and antigravity_job on the first job follows it to the replacement. Without fallback, the error explains which pool is spent and which still has quota.

Councils

antigravity_council picks one strong model per pool by default, skipping pools that are empty. So a council keeps working when half your quota is gone.