Read and refresh provider usage
A usage window answers one question: how much of a provider’s budget is spent, and how do we know. SupaCloud keeps those two facts apart on every surface — the number, and its provenance. This page shows you where to look and how to refresh a reading.
Where the numbers are
Section titled “Where the numbers are”| Surface | Shows |
|---|---|
| Reports → Usage | One card per connected account, then the readings panel: every window with its fill, scope, class, account, reader and age; the notification thresholds in force; the reader health line |
| Settings → Zugänge | One usage cell per credential: the most binding open window (fill, window, reader) or “not read yet” |
Chat (/usage) |
The same rows on Telegram, Discord and the web terminal |
MCP (usage.get) |
The same readings for a coordinating agent in this workspace |
API (GET /api/workspaces/{id}/usage/manage) |
The same shape as the panel and the chat row |
Every surface reads ONE model, so they cannot disagree about a window.


What “class” means
Section titled “What “class” means”The class says HOW the number was learned — never what was observed.
| Class | Meaning | May it block a run? |
|---|---|---|
measured |
A provider endpoint or the provider’s own client reported it | Yes, while it is current |
header |
A rate-limit header on a request we already paid for | No |
estimate |
Our own arithmetic (our spend against a plan or a cap) | Never |
definition |
A window declaration with no observation (a fresh connect, an applied reset) | No |
A limit hit is its own marker beside the class: we observed the provider refusing a window. It is not a measured 100 %.
Two more facts sit on every row: the scope (account, model …, family …) and the
age. A window whose reset has passed is drawn recessed and says so — a snapshot of a
period that ended is not the current utilisation.
An API key on a subscription plan
Section titled “An API key on a subscription plan”Some providers sell a subscription that you use with an API key, for example OpenCode Go.
The provider reports no usage for such a key, so its card shows our own recorded spend
under the estimate badge and draws no percentage.
Where the vendor publishes the allowance of a plan, the estimate line also lists it, for example “Go $7.50 · Go Plus $30.00” for one model’s week. The figure comes from the vendor’s own page, which the line links together with the day it was read. The key does not say which plan it belongs to, so every published plan is listed. The figure is never used as the line’s limit and never stops a run. A plan whose vendor publishes no number shows none.
A workspace whose only model access is an OpenCode Go key runs fast-tier work only.
Refresh a reading
Section titled “Refresh a reading”A refresh asks for one immediate read of one credential. It is free: no reader spends a model token, and a reader that would need a model call to produce a header is not built.
- Open Reports → Usage.
- Press Refresh in the hub toolbar. The button disables and spins while the read runs.
- Read the acknowledgement: it names how many credentials were re-read, or why nothing was read (no reader is wired for this provider, the provider refused, or the read is still backing off).
The same action exists as /usage refresh in chat, which names each credential’s outcome
separately.
Notifications at 80 % and 95 %
Section titled “Notifications at 80 % and 95 %”When a measured window crosses 80 % or 95 %, the workspace owners and admins hear about it — in the in-app inbox and in a linked chat account, whichever of the two is yours. One crossing is announced once per window: the same window does not repeat the message on every read, and a new window starts the pair again.
The thresholds are an instance setting. Ask your operator if your instance uses a different pair; the usage page names the pair in force.
Stop reading one credential
Section titled “Stop reading one credential”Some readers ask the provider’s own client endpoint with a token you already connected. If you do not want that for one credential, stop reading it. This is your switch for one credential; the operator’s switch turns a whole reader off for the instance.
- Open Reports → Usage and find Readers per credential.
- Enter a reason. It is required and is kept with the decision.
- Press Stop reading. The row now says opted out.
A vendor-client reader does not read an opted-out credential on any trigger: no task start or end, no refresh, no
first view. Nothing is invented for it either. Its last reading keeps its age and stops
counting once it is no longer current. Read again removes the opt-out. Both steps
are audited as usage_reader_opted_out and usage_reader_opted_in.
The API is PUT /api/workspaces/{id}/usage/credential-opt-out with credential_id,
credential_kind (oauth_token or api_key), opted_out and reason. Who may set it
follows the credential: you for a personal one, credential managers for a workspace one,
organisation owners and admins for an organisation one.
Add a usage-reading admin key
Section titled “Add a usage-reading admin key”Anthropic, OpenAI, OpenRouter and xAI publish usage or cost reports that only an admin or management key can read. You can store such a key so SupaCloud reads the provider’s own report. This step is optional.
- Open Settings → Access credentials, the API-key section.
- Under Usage-reading admin key (optional), pick the provider: Anthropic (Admin API key), OpenAI (Admin API key), OpenRouter (management key) or xAI (management key).
- Paste the key. For xAI, also enter the console reference (the team id) that its billing endpoint needs.
- Press Save usage-reading key.
The API is POST /api/settings/usage-reading-keys. The scope rules are the same as for an
ordinary API key, so a member cannot add a management key to a shared tier.
What to do when a reader is failing
Section titled “What to do when a reader is failing”The readings panel lists every failing reader with its typed reason (“token expired”, “not entitled”, “rate limited”). The remedy is the one the class names:
- token expired — reconnect that credential in Settings → Zugänge;
- not entitled / not found — the account has no such plan or the endpoint does not exist for it; the reading will not appear until it does;
- rate limited — nothing to do; the reader waits for the provider’s own retry window.
A failing reader never invents a zero. The last good reading stays visible, with its age.