Docs · Guide
Quota left on every subscription and key
How much of Claude's five hours is left? When does Codex's week reset? Is the DeepSeek balance enough? packinggoods asks the vendors and puts each window of every subscription and plan, its use and when it starts again, beside each key's balance. It is on the Usage page, and the CLI and a local API read it too.
packinggoods quota
packinggoods quota lists what is left of every subscription, plan and key packinggoods has: each window's use and when it starts again, and each key's balance, asked of the vendors now (or less than a minute ago). Name providers to see only those.
packinggoods quota # every subscription, plan and key packinggoods quota codex claude --json # for scripts and agents packinggoods quota refresh claude # read one card again packinggoods quota history --days 7 --json
--jsonis for scripts and agents, each entry withlastServedAt, when it last answered through the gateway, andlast: trueon the latest.packinggoods quota refreshreads one card again, as its refresh button on the Usage page does. A card read less than 30 seconds ago isn't asked again.- A Claude account's use is told by Claude Code as it answers or runs /usage;
refreshreads it by running Claude Code's /usage in the account's own folder, which plainpackinggoods quotanever does.
For scripts and agents
The gateway answers the same on a local API, on the port in Settings' Gateway address. Another machine reaches it only while packinggoods is shared on the local network, with its key as the API key (Authorization: Bearer or x-api-key).
curl http://127.0.0.1:3425/v1/packinggoods/quotas curl 'http://127.0.0.1:3425/v1/packinggoods/quotas/history?days=7&provider=codex'
packinggoods's own skill packinggoods-quota lets an agent read packinggoods quota --json and wait with packinggoods quota wait. It is first in the Library's skills market.
Alerts
Have the packinggoods app notify you when any window of a subscription or plan reaches a share used, once each time the window runs, or when a balance falls to an amount or under, in its own currency or credits, once until topped up past it. Both are off until set; off turns either off.
packinggoods quota alert 80 # notify at 80% used, once per window packinggoods quota alert --balance 5 # notify when a balance falls to 5 or under packinggoods quota alert # what is set
Wait for allowance
packinggoods quota wait codex returns once any Codex account packinggoods has on has allowance again; an account's email or login, or <provider>/<account>, waits for that one alone. It reads the vendors itself, gateway running or not, again shortly after the soonest reset (every 1 to 10 minutes), and says on stderr what it waits for. A script can go on with work it stopped:
packinggoods quota wait codex --timeout 6h until codex exec …; do packinggoods quota wait codex || break; done
Exit 0 once there is allowance, 1 when --timeout (30m, 6h) passes first, 2 for a name it doesn't know, 130 on Ctrl+C.
History
packinggoods quota history is what packinggoods has read of each subscription's and plan's windows over time, kept 45 days (UTC times, a reading only when it changed, each window's runs apart by when they reset): the latest readings of each window, or with --json every one since --days days ago, as /v1/packinggoods/quotas/history answers.
A Codex account's resets
A Codex account that holds rate-limit resets says how many.
packinggoods quota reset # spends one held reset; asks first packinggoods quota auto-reset on packinggoods quota credits off
packinggoods quota resetspends one, starting the account's current windows again. It can't be undone, so it asks first;--yesdoesn't.packinggoods quota auto-reset onlets the account spend one by itself when its weekly window is used up and no other account can take a request, one a week at most (the five hours running out never does), and spend the one about to expire about half an hour before it does, if the account's windows have been used. Off until turned on.packinggoods quota credits offkeeps a Codex account from spending its credits once a window is used up: routing holds it as used up and the request goes to the other accounts, groups and fallbacks. On, the default, lets the task go on.
Token usage and cost per agent: what each agent, model, account and session spent, and a relay's real price.
FAQ
How do I see Claude Code's five hours and week left?
Run packinggoods quota, or open packinggoods's Usage page. A Claude account's use updates as Claude Code answers or runs /usage; packinggoods quota refresh claude runs /usage to read it again.
Can a Codex job go on once its quota is back?
Yes. In a script, until codex exec …; do packinggoods quota wait codex || break; done: packinggoods quota wait returns once there is allowance, and the command runs again.
Can I be told when use is nearly full?
packinggoods quota alert 80 has the packinggoods app notify when any window reaches 80% used; --balance 5 when a balance falls to 5 or under. Both are off until set.
Can an agent read the quota itself?
Yes. packinggoods quota --json and GET http://127.0.0.1:3425/v1/packinggoods/quotas give the same; packinggoods's skill packinggoods-quota teaches an agent to read it and wait for allowance.
Related: Round robin and failover across accounts, keys and providers and Use your Claude Pro/Max, ChatGPT Plus/Pro or GitHub Copilot subscription in any coding agent. Something fails? See Fixing common errors: 401, 429, 502, 504 and more, or ask on Discord.