10049b8062
Usage frames carry optional usage.account {harness, source, plan, as_of,
windows[{id,label,used_percent,resets_at}], unsupported}. Claude Code quota
comes from its rate_limit_event stream lines and the initialize account
(plan), shared across chats on the same account. Codex reads
account/rateLimits/read once per connection (re-read when a chat opens after
5 min) and merges account/rateLimits/updated. OpenCode exposes no quota API
and says so. The app's chat info sheet shows an Account usage section with a
progress bar and reset countdown per window, Material and Cupertino.
20 lines
618 B
JSON
20 lines
618 B
JSON
{
|
|
"ordinaryUsageAllowed": true,
|
|
"rateLimits": {
|
|
"limitId": "codex",
|
|
"limitName": null,
|
|
"normalModelSlug": null,
|
|
"primary": {"usedPercent": 37, "windowDurationMins": 300, "resetsAt": 1900000000},
|
|
"secondary": {"usedPercent": 12, "windowDurationMins": 10080, "resetsAt": 1900500000},
|
|
"credits": {"hasCredits": false, "unlimited": false, "balance": null},
|
|
"individualLimit": null,
|
|
"spendControlReached": null,
|
|
"planType": "plus",
|
|
"rateLimitReachedType": null
|
|
},
|
|
"rateLimitsByLimitId": null,
|
|
"rateLimitResetCredits": null,
|
|
"accountId": null,
|
|
"rateLimitUpsell": null
|
|
}
|