Repository navigation
Description
Summary
Now that Antigravity quota polling was removed in #43026, consider restoring Usage → Limits through the official Antigravity CLI's own usage output, if maintainers confirm this is a supported interface and stays within Google's external-client policy.
A prior report tested the command below against the T3-managed runtime and converted its JSON into T3 quota windows:
agy --print /usage --output-format json --log-file /dev/nullThis is /usage, not /status. The report says it returned Gemini 5-hour/weekly, shared Claude/GPT 5-hour/weekly, and Gemini 4 Argon weekly windows. It used no model tokens in the reporter's check. See #34327, especially the comments on Nov 14 and Nov 19.
Why revisit this
#43026 correctly removed direct calls to Google's internal quota APIs because maintainers said those calls could put user accounts at risk, and noted limits could return once Antigravity exposes them over ACP. Could the official CLI's own /usage command provide a supported route without T3 constructing private HTTP requests or reading OAuth secrets itself?
Suggested implementation
- Invoke the configured Antigravity binary for each provider instance, using that instance's isolated profile/environment and the supported CLI interface only.
- Parse the CLI's JSON output into the existing provider-independent quota-window format.
- Do not call
retrieveUserQuotaSummary/fetchAvailableModels, inspect OS keyrings, or read legacy OAuth token files. - Cache and coalesce refreshes; apply a short timeout and bound output so checking four accounts does not spawn repeated overlapping processes.
- On unsupported CLI versions, malformed output, or nonzero exit, report limits as unavailable (with a useful reason); never retain stale values as current.
- Keep thread execution unchanged and document which Antigravity CLI versions support this command.
The implementation should be gated on maintainer confirmation that agy --print /usage --output-format json is an acceptable supported interface under Google's policy. If not, please clarify whether an ACP capability for subscription limits is planned.
Resource impact
The reported test returned quota data without model tokens, so this should not consume inference quota. It will still start a local CLI process and make whatever status request that CLI uses. A cached, bounded refresh per account should keep CPU and network overhead modest; please confirm the command's polling behavior and any rate limits before enabling automatic frequent refreshes.
Related
- [Bug]: Antigravity CLI is authenticated but Usage Limits requires legacy acp_token.json #34327 documents the CLI command and a local parser patch; it does not contain a merged source PR.
- fix(server): stop reading Antigravity usage limits from Google's internal APIs #43026 removed the internal API quota probe and says limits may return through ACP.
Activity
juliusmarminge commentedon Nov 26, 2026
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.