Is read-only usage/quota checking allowed for third-party apps? (CLI `/usage` vs. OAuth token)

Hi, I’m building a terminal app that runs several AI coding CLIs side by side (including the Antigravity CLI, agy). I’d like to show the user’s remaining quota in the UI, and I want to make sure I stay within the Terms of Service before building it.

I only read usage. I don’t send prompts, and I don’t use the account as an API backend.

I found two ways other tools do this:

  1. Run agy -p /usage --output-format json as a child process and parse the output. No credentials are touched by my app.
  2. Read the user’s OAuth credentials and call the quota endpoint (retrieveUserQuotaSummary) directly, refreshing about every 5 minutes.

The ACP server doesn’t seem to expose quota information, so I can’t use that.

Questions:

  1. Is method 1 (running the official CLI’s /usage) acceptable for a third-party app?
  2. Is method 2 (reusing the user’s OAuth token to call the quota endpoint) acceptable, or does it fall under the restrictions on reusing Antigravity OAuth credentials?
  3. Is there an official, supported way to read quota (an API, or an ACP method) that I should use instead?
  4. I plan to add an agent chat UI later using the official ACP integration. Does the answer change for that case?

If it’s not allowed or not recommended, I’ll simply not build it. Thanks!

Hi @DalYeoU,

Welcome to the Forum, and thanks for checking before building this. Here are clear answers to each of your questions:

  • Method 1 (running agy -p /usage from a third-party app): Per our FAQ, wrapping agy -p inside third-party applications is not supported under consumer plans.
  • Method 2 (reading OAuth credentials to call quota endpoints): Reusing or reading a user’s Antigravity OAuth token in third-party software is not permitted under our Terms of Service and FAQ and can result in account suspension.
  • Official quota API / ACP integration: There is currently no public quota API or ACP quota method. For an interactive single-user chat UI later, launching the official unmodified agy acp binary per our Other editors (ACP) docs is supported for interactive sessions, while users should continue checking quota directly in the official Antigravity client.

Thank you for the clear response. I understand the general FAQ and Terms of Service rules you linked.

However, what I specifically want to verify is whether the approach already implemented by existing third-party clients like T3 Code or PandaCode violates the Terms of Service.

Specifically, I am referring to setups that work like this:

  1. All actual agent execution and chat happen strictly through the unmodified official agy acp binary (single-user interactive use).
  2. Purely to display the remaining quota (5-hour / weekly limits) in the UI, the app either makes read-only calls to retrieveUserQuotaSummary using the OAuth token from the isolated ACP profile, or reads the output of agy -p /usage.
  3. There is no third-party proxy, multi-account pooling, or using the account as an inference/prompt backend.

Could an official Google/Antigravity staff member please confirm whether purely read-only quota display inside a single-user UI built on the official ACP binary is actually treated as a ToS violation and grounds for account suspension?