[Bug]: Antigravity shows token usage only, not limits #16104
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
Usage detail for Antigravity doesn't show limits when using a subscription, only token usage
Expected behavior#
Should use limits like Claude/Codex/Opencode
Actual behavior#
Shows token usage only
Impact#
Minor bug or occasional failure
Version or commit#
latest nightly
Environment#
all
Logs or stack traces#
Screenshots, recordings, or supporting files#
No response
Workaround#
No response
nozamdavid(GitHub profile, opens in a new tab) added labelsbug
nozamdavid(GitHub profile, opens in a new tab) added labelsneeds-triage
Confirming this on a second account (Google AI Pro, Nightly
0.0.46-nightly.20261005). CallingretrieveUserQuotaSummarywith the instance's Antigravity ACP login returns four buckets: a5hand aweeklywindow for each of the "Gemini Models" and "Claude and GPT models" groups. That's the shape both #15198 and #15299 parse.Two details I checked, in case they help choose between them:
cloudcode-pa.googleapis.com(#15299) anddaily-cloudcode-pa.googleapis.com(#15198) return the same response.- Without
user-agent: antigravity, both hosts return 403 ("You do not have a valid license of this product"). Both PRs already send that header.
Both PRs currently show merge conflicts with
main.Checked with Claude Code.
Update, 11 Oct 2026: no longer needed. T3 Code Nightly shows Antigravity limits itself as of
0.0.46-nightly.20261011.2967(see #17530). If you set this up, remove it (steps in the gist), or you'll see Gemini twice.Stopgap until #15198 or #15299 lands, in case it helps others waiting on this.
T3's usage hubs only read Codex and Claude accounts from a CLIProxyAPI hub. They do draw a Claude account's model-scoped weekly limits as rows of their own, though. So a small local server can answer the two management calls T3 makes (
auth-filesandapi-call) with a single Claude-shaped account, and use it to carry the Antigravity quota fromretrieveUserQuotaSummary. It reuses the T3 Antigravity provider's existing login, read-only. T3 itself isn't modified; you add the server under Settings → Providers → Usage providers → Add hub.
Caveats:
- The rows sit under the Claude icon, and the hover card says "Claude Subscription".
- T3 treats every scoped row as weekly, so the 5-hour row's pace arrow is meaningless. Its "% left" and reset time are correct.
Remove the hub once native support ships, or you'll see Gemini twice.
Script and setup (Python standard library only, listens on 127.0.0.1): https://gist.github.com/cornishandy/97069ef771ebedec5e67a3d8b078fece
Built with Claude Code.
Additional evidence: the official Antigravity CLI can return subscription quota data directly as JSON.
Verified on Windows x64 on 10 October 2026 with official Antigravity CLI 1.3.3, signed in interactively with a Google account. The installed T3 server is
0.0.46-nightly.20261008.2833.agy --print /usage --output-format jsonThe command completed with exit code 0 and a valid JSON response. The returned envelope reported
num_turns: 0andusage.total_tokens: 0. Google's official changelog, under CLI v1.1.11, documents that print mode answers/usageand/quotadirectly without an agent turn, quota consumption, or a conversation. The headless documentation says to run this as a separate print invocation, rather than sending it through a persistent--input-format stream-jsonsession.The live response places the quota groups at
command.data.groups[], with records in each group'sbuckets[]. Each bucket containsid,name,window,remaining_fraction, andreset_time. The response contained these four distinct IDs:Gemini Models: gemini-5h, gemini-weekly Claude and GPT models: 3p-5h, 3p-weeklyThe windows were
5handweekly, with UTC reset timestamps. Their shape fits the existingServerProviderUsageWindowcontract:usedPercent = 100 * (1 - remaining_fraction),resetsAt = reset_time, and separate stable window IDs. The Claude/GPT group belongs to the Antigravity subscription and should remain distinct from Claude Code subscription limits.This could be another data source to consider alongside #15198 and #15299, with the official CLI handling its own authentication and quota retrieval. There is an important limitation: the CLI login is separate from T3's managed ACP profiles. This test does not establish account identity equivalence, support for selecting individual ACP accounts, or safe deduplication across environments. CLI results should not be attributed to a T3 provider instance unless that relationship is verified.
Only the official CLI quota read and conversion shape were checked. No T3 integration was implemented, no model prompt was sent, and no live T3 state, provider settings, or credentials were modified. No account identifiers, personal quota values, tokens, or authorization URLs are included here.
Prepared with Codex in T3 Code.
Note
Gemini responding on behalf of pancake37.
For anyone tracking Antigravity subscription limits: native quota parsing shipped in recent releases, but if you only see
Claude & GPTlimits whileGeminilimits are missing, here is why:Root Cause#
In
apps/server/src/provider/antigravityUsageLimits.ts,ENDPOINTSis defined as:const ENDPOINTS = [ "https://daily-cloudcode-pa.googleapis.com", "https://cloudcode-pa.googleapis.com", ];The probe stops on the first host that answers with a non-empty list of quota windows. Because
daily-cloudcode-pa.googleapis.com(Google's staging host) returns only the third-party group (3p-5hand3p-weekly), the probe stops early and never reachescloudcode-pa.googleapis.com(which serves the full payload includinggemini-5handgemini-weekly).Fix#
- A pending upstream fix is available in PR #20081 (
fix(usage): show Antigravity Gemini quota alongside third-party limits), which queries both endpoints concurrently and aggregates all bucket groups. - As an immediate workaround, prioritizing
https://cloudcode-pa.googleapis.comahead of the daily host in the server bundle immediately restores all four meters.
- A pending upstream fix is available in PR #20081 (
Note
🤖 Claude Opus 5.5 responding on behalf of Theo
Thanks for the report. This is fixed on main in #20081 and #17530. Please test on the nightly built from main on 2026-10-21, or on the next stable release. If the problem still occurs there, please open a new issue that links to this one, with your version and steps to reproduce it.
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Note
Grok responding on behalf of Julius.
Thanks for the report. There are two open PRs that add Antigravity subscription limits to the Limits view: #15198 and #15299. I've linked both to this issue, so it'll close automatically when whichever one lands is merged. (The earlier #10919 was closed after #10409 added usage history, but that didn't add limits.)