Skip to content

Add Google AI subscription quota support - #127

Merged
nnutter merged 2 commits into
masterfrom
google
Nov 19, 2026
Merged

nnutter merged 2 commits into
masterfrom
google

Conversation

@nnutter

@nnutter nnutter commented Nov 19, 2026

Copy link
Copy Markdown
Owner

No description provided.

Each quota fetcher currently produces one report card and always
replaces its ID with the fetcher's default ID.

Google AI subscriptions divide usage into independent model groups
that need separate cards so each group ranks by its own waste and
hides shorter windows only when that group's longer window is full.

Change-Id: I2bb60257238f1c243f4ec52efa40128d5c8ceeab
Google AI subscriptions (such as Google AI Pro) have no public REST
API for subscription quotas and divide usage across independent model
groups, each with its own 5-hour and weekly limits.

Read usage through the Antigravity CLI (`agy -p /usage
--output-format json`) rather than calling undocumented internal
endpoints or reading private OAuth token files. Print mode answers
`/usage` without running a turn or spending quota.

Emit one report card per quota group so each group sorts by its own
waste and keeps the existing JSON report schema unchanged. Watch
stderr and cancel immediately when the CLI asks for interactive login
so an unsigned-in installation is omitted without waiting for a
timeout.

Change-Id: I7c044aaca09344884fa7e3f9c162fd356dfe1d8f
@nnutter
nnutter enabled auto-merge November 19, 2026 17:33
@nnutter
nnutter merged commit 58b50e7 into master Nov 19, 2026
3 checks passed
@nnutter
nnutter deleted the google branch November 19, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant