Hello Antigravity team and community,
We subscribe to Google AI Ultra and use the Antigravity CLI (agy), including headless mode (agy -p) for scripting and CLI workflows.
We ran the exact same three short prompts on a single account and model (gemini-4-argon-high), comparing interactive mode against agy -p, and recorded /usage before and after each run:
- On
gemini-4-argon-high, interactive mode consumed 26.5% less of the 5-hour quota than agy -p resuming the same conversation (307 ppm vs 418 ppm).
- On a cold start (
agy -p without a warm session cache), the same three turns consumed 2.5x to 7.2x more quota than on a warm interactive cache (1,294 ppm).
The /usage description states: “Quota is consumed proportionally to the cost of the tokens.” However, there is no disclosure in /usage or the CLI documentation that headless (agy -p) invocations can drain the 5-hour subscription quota significantly faster for the same work (we have not established a weekly-quota difference).
Could the team clarify:
- How headless (
agy -p) runs are counted against the Google AI Ultra 5-hour and weekly subscription quotas compared to interactive sessions?
- Whether quota credits or billing adjustments are available for subscribers whose weekly quota was exhausted days before reset due to this undisclosed difference?
We are attaching our controlled measurement chart (Figure 1) comparing 5-hour quota consumption (in parts per million of the /usage remaining fraction before and after each run) for the exact same three prompts on a single Google AI Ultra account:
We measured Antigravity headless (agy -p) and interactive sessions on the same account. For the Flash model, quota per token was effectively the same (about 0.98×). The difference we observed comes from prompt cache being cold at the start of each new headless process, which can consume 2.5–7.2× more quota for the same turns. This cost is not described in the /usage documentation (“quota is consumed proportionally to the cost of the tokens”). We ask Google to document how cache state affects quota consumption for headless use and to consider a quota credit for the affected period.
Hi @jyongchulwp,
Thank you for sharing the benchmark measurements and chart. Here are the answers to both questions:
-
How headless (agy -p) runs are counted against Google AI Ultra quotas
- Same quota buckets and per-token weights: Interactive
agy and headless agy -p use the exact same 5-hour and weekly subscription quota buckets and the same per-token weights. There is no separate headless multiplier or API-pricing surcharge.
- Why cold
agy -p runs consume more quota per turn: Cached input tokens (cache_read_tokens) carry a much lower quota weight than uncached input tokens (input_tokens), especially on larger models such as gemini-4-argon-high. Every standalone agy -p "<prompt>" command starts a new conversation with a cold prompt cache (cache_read_tokens: 0) and pays the full first-turn uncached token cost for system instructions, tool definitions, rules, and workspace context. Interactive sessions reuse that warm cache on turns 2 and onward.
- Why
agy -p with --continue or --conversation still showed a smaller difference: Starting a new OS process for each turn drops the in-process prompt-cache keep-alive and re-initializes session and MCP state on startup, and comparing a fresh 3-turn run against an already-warm interactive session includes Turn 1’s uncached setup tokens.
- How to keep a warm cache in scripts:
- Keep a single headless process open and stream multiple prompts over
stdin with agy --input-format stream-json --output-format stream-json (Stream prompts from stdin). Turn 1 warms the cache once, and subsequent turns in the same process reuse cache_read_tokens.
- When separate commands are needed, pass
--continue or --conversation <id> promptly before the server prompt cache expires (Continue a conversation).
- You can check
input_tokens vs. cache_read_tokens per run using --output-format json or --output-format stream-json, and pass --model with a Flash model or lower --effort (low or medium) for lighter scripted turns.
-
Quota credits and Google AI Ultra billing adjustments
- Forum and engineering support cannot view personal Google Account billing records or apply manual subscription credits.
- Because Google AI Ultra memberships are billed and managed through Google One, please submit any billing adjustment or refund request through Google One Support.