quota-axi
Report local agent-provider quota windows for routing-aware agents.
You do not need quota-axi installed globally - invoke it with npx -y quota-axi.
quota-axi is data only: it never routes, recommends, proxies, intercepts, logs in, imports
browser cookies, or mutates provider state. It reads local provider auth sources and calls
first-party provider quota, usage, billing, or entitlement endpoints; it never launches the
Claude CLI, so it cannot spend the quota it measures.
When to use
Use quota-axi whenever you need local quota headroom before deciding whether it is safe to
keep working on a provider, when the user asks about usage, rate limits, or remaining quota,
or when comparing supported local provider headroom side by side.
Workflow
- Run
npx -y quota-axi for compact TOON output covering supported providers' quota windows.
- Scope to one provider with
--provider claude or to a subset with --provider cursor,copilot,grok.
- Pass
--json for the normalized machine-readable model instead of TOON.
- Pass
--full to include account identity and per-source attempt details.
- Run
npx -y quota-axi auth to check local auth-source availability without printing
secret values.
- On macOS, Claude Keychain value reads are skipped by default until the user grants access once.
If quota output reports
reason: keychain_access_required, tell your user to run
quota-axi --allow-keychain-prompt once and approve Keychain access ("Always Allow").
After that successful grant, plain quota-axi calls reuse the existing Keychain access
marker to refresh live Claude quota without requiring the flag.
- For a managed Codex installation, set
QUOTA_AXI_CODEX_BINARY to its absolute executable
path. quota-axi uses that exact executable for auth inspection and the read-only app-server
fallback, and fails closed if the override is invalid.
Usage
usage: quota-axi [auth] [flags]
commands[2]:
(none)=quota, auth
flags[6]:
--provider <claude,codex,cursor,copilot,grok>, --json, --full, --allow-keychain-prompt, --help, -v/--version
examples:
quota-axi
quota-axi --provider claude
quota-axi --provider cursor,copilot,grok
quota-axi --json
quota-axi --full
quota-axi auth
Tips
- Output is TOON-encoded and token-efficient by default; pass
--json only when you need
the normalized schema.
- Exit code 0 means at least one provider returned data (fresh or stale); exit code 1 means
every provider failed; exit code 2 means a usage error.
- Percentages are not comparable across providers - quota-axi never claims one provider's
percentage equals another's.
- Claude
--full output exposes the authoritative OAuth profile account.uuid as
account.accountId when Anthropic returns one; otherwise the account identity is explicitly
marked unverified rather than inferred.
- The quota cache at
~/.cache/quota-axi/quotas.json only ever holds normalized
non-secret snapshots.
Fresh provider reports with no windows clear stale provider snapshots instead of caching
empty quota.
The Claude Keychain access marker lives alongside it and contains no credential values.
1---2name: quota-axi3description: Report local Claude, Codex, Cursor, GitHub Copilot, and Grok quota windows via the quota-axi CLI - remaining percentages, reset times, and provider status read from local auth sources, with no routing, recommendation, or provider mutation. Use before deciding whether it is safe to keep spending a provider's quota, when the user asks about usage, rate limits, or remaining quota, or when comparing local provider headroom.4---56# quota-axi78Report local agent-provider quota windows for routing-aware agents.910You do not need quota-axi installed globally - invoke it with `npx -y quota-axi`.1112quota-axi is data only: it never routes, recommends, proxies, intercepts, logs in, imports13browser cookies, or mutates provider state. It reads local provider auth sources and calls14first-party provider quota, usage, billing, or entitlement endpoints; it never launches the15Claude CLI, so it cannot spend the quota it measures.1617## When to use1819Use quota-axi whenever you need local quota headroom before deciding whether it is safe to20keep working on a provider, when the user asks about usage, rate limits, or remaining quota,21or when comparing supported local provider headroom side by side.2223## Workflow24251. Run `npx -y quota-axi` for compact TOON output covering supported providers' quota windows.262. Scope to one provider with `--provider claude` or to a subset with `--provider cursor,copilot,grok`.273. Pass `--json` for the normalized machine-readable model instead of TOON.284. Pass `--full` to include account identity and per-source attempt details.295. Run `npx -y quota-axi auth` to check local auth-source availability without printing30 secret values.316. On macOS, Claude Keychain value reads are skipped by default until the user grants access once.32 If quota output reports `reason: keychain_access_required`, tell your user to run33 `quota-axi --allow-keychain-prompt` once and approve Keychain access ("Always Allow").34 After that successful grant, plain `quota-axi` calls reuse the existing Keychain access35 marker to refresh live Claude quota without requiring the flag.367. For a managed Codex installation, set `QUOTA_AXI_CODEX_BINARY` to its absolute executable37 path. quota-axi uses that exact executable for auth inspection and the read-only app-server38 fallback, and fails closed if the override is invalid.3940## Usage4142```43usage: quota-axi [auth] [flags]44commands[2]:45 (none)=quota, auth46flags[6]:47 --provider <claude,codex,cursor,copilot,grok>, --json, --full, --allow-keychain-prompt, --help, -v/--version48examples:49 quota-axi50 quota-axi --provider claude51 quota-axi --provider cursor,copilot,grok52 quota-axi --json53 quota-axi --full54 quota-axi auth55```5657## Tips5859- Output is TOON-encoded and token-efficient by default; pass `--json` only when you need60 the normalized schema.61- Exit code 0 means at least one provider returned data (fresh or stale); exit code 1 means62 every provider failed; exit code 2 means a usage error.63- Percentages are not comparable across providers - quota-axi never claims one provider's64 percentage equals another's.65- Claude `--full` output exposes the authoritative OAuth profile `account.uuid` as66 `account.accountId` when Anthropic returns one; otherwise the account identity is explicitly67 marked unverified rather than inferred.68- The quota cache at `~/.cache/quota-axi/quotas.json` only ever holds normalized69 non-secret snapshots.70 Fresh provider reports with no windows clear stale provider snapshots instead of caching71 empty quota.72 The Claude Keychain access marker lives alongside it and contains no credential values.