Skip to main content

Quota and usage checks for coding-agent CLIs.

Project description

quse

Quota and usage checks for coding-agent CLIs.

quse reports normalized usage for providers used by tools such as Codex, Claude Code, GitHub Copilot, and Z.AI/goz.

quse
quse codex
quse copilot --json

The CLI prints one normalized line per provider by default. --json emits the same normalized record shape as JSON:

{"provider":"claude","status":"ok","short_term":{"percent_remaining":55.0,"reset_at":"2026-05-24T14:30:00Z"},"long_term":{"percent_remaining":87.0,"reset_at":"2026-05-28T14:59:59Z"}}

Supported providers:

  • codex
  • claude
  • copilot
  • zai

gemini is accepted and reports unsupported because it does not currently expose a usage endpoint.

Provider mapping:

  • codex: short_term is hardcoded to 100% remaining, long_term maps to the weekly API window.
  • claude: short_term maps to the 5-hour signal, long_term maps to the 7-day signal.
  • copilot: short_term is hardcoded to 100% remaining, long_term maps to the monthly premium-interactions signal.
  • zai: short_term maps to the tokens signal, long_term is hardcoded to 100% remaining.

Release

Releases are published by GitHub Actions when a tag starting with v is pushed:

git tag v0.0.4
git push origin main --tags

The workflow verifies that the tag version matches pyproject.toml, runs the tests, builds the wheel and sdist, then publishes to PyPI with the repository secret PYPI_API_TOKEN.

Project details


Download files

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

Source Distribution

quse-0.0.4.tar.gz (37.4 kB view details)

Uploaded Source

Built Distribution

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

quse-0.0.4-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file quse-0.0.4.tar.gz.

File metadata

  • Download URL: quse-0.0.4.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for quse-0.0.4.tar.gz
Algorithm Hash digest
SHA256 43df8abe3242c15e602167af097a04729e4f6d2cf4b3c98ebdfcd360e097cedd
MD5 0f7bb055d172f82a30e68c9b0b7a0a50
BLAKE2b-256 b560921eb4ea21951ead2922dd554ebad579220d5475d822c08f4341c179239e

See more details on using hashes here.

File details

Details for the file quse-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: quse-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for quse-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f3867940c421c8c705545f20f74b49acd7139e858a84f8782e51be5a4ac9aabc
MD5 e2039ab4714e353991234f95488b65b2
BLAKE2b-256 6efdd5a0dd82d20c23bb7e29061dd97e0c989dd1ec364bab4e38d17291ddd01d

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