Skip to main content

quotagauge
quotagauge
Capture · Install · CLI reference · Bounds · Troubleshooting

MIT license Zero dependencies Python 3.9 or newer

Claude Code and Codex enforce rolling usage limits but show the numbers only to a human, so the model never sees them and can keep working right up to the wall. quotagauge captures those readings and warns the model when it should conserve usage.

Install and first run

The shortest path:

uv tool install quotagauge
quotagauge init --all
quotagauge status

To work from a clone instead, run one of these:

uv tool install .
pip install -e .

Then run quotagauge init --all and quotagauge status. Plain quotagauge init configures Claude Code only, while --codex configures Codex only. See the installation guide for safe previews and the plain-clone fallback.

Example output

quotagauge status reports every source and window:

Claude
  5h: 12% used [ok], resets in 1h 59m
  7d: unavailable
Codex
  5h: unavailable
  7d: >=94% used [critical], resets in 1h 59m

Near a limit, the prompt hook gives the model a short action:

Usage headroom: Codex weekly >=94% used (reading 1h 0m old), resets in 1h 59m.
Stop parallel subagent fan-out, use cheaper models, and checkpoint work now.

Documentation

Document What it covers
CLI reference Every command, flag, environment variable, state file, exit code, and the opt-in update check.
Why the bounds are sound Fresh, stale, and post-reset readings, reset validation, and severity.
How capture works Claude statusline input, Codex app-server RPC, and rollout fallback.
Installation guide Claude Code settings, the CODEX_HOME/hooks.json path, safe init previews, backups, and clone installs.
Troubleshooting Unavailable or stale readings, unknown resets, doctor output, and state reset.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quotagauge-0.2.0.tar.gz (798.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quotagauge-0.2.0-py3-none-any.whl (96.2 kB view details)

Uploaded Python 3

File details

Details for the file quotagauge-0.2.0.tar.gz.

File metadata

  • Download URL: quotagauge-0.2.0.tar.gz
  • Upload date:
  • Size: 798.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for quotagauge-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a8460aa77b9428f228daac1cc49401242982b47e939b63082a2c586c0b4afad4
MD5 8e385c7717ffa5b8b824c530065b7cbb
BLAKE2b-256 81b789c05b4e07ef3f06b40ada1612937c07ea4d9b4f989cf23e016a8e48465f

See more details on using hashes here.

File details

Details for the file quotagauge-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: quotagauge-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 96.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for quotagauge-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6819dc52d1575ac2169023925c6ec549be8cf47724195bc9887c605bd86905fc
MD5 22980b988f3921315e54faa4ca8ff877
BLAKE2b-256 ae9445ad7ed5278490a62e09fee33543d2d1536d3667c5067cfe14df2d73778d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page