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:
codexclaudecopilotzai
gemini is accepted and reports unsupported because it does not currently
expose a usage endpoint.
Provider mapping:
codex:short_termmaps to the primary window,long_termmaps to the weekly API window.claude:short_termmaps to the 5-hour signal,long_termmaps to the 7-day signal.copilot:short_termis hardcoded to100%remaining,long_termmaps to the monthly premium-interactions signal.zai:short_termmaps to the tokens signal,long_termis hardcoded to100%remaining.
Install
For a local checkout, install the project environment and add its .venv/bin
to your shell PATH:
uv sync --dev
./install.sh
Open a new shell after running ./install.sh, then verify:
quse --help
This is the same local-checkout style used by tmuxctl: the script appends
the checkout's .venv/bin directory to ~/.bashrc.
For one-off use from a checkout without changing PATH:
uv run quse
uv run quse codex --json
For the latest released package from PyPI:
uvx quse
uv tool install quse
# or
pipx install quse
Use uvx quse for a one-off run without installing a persistent tool.
Release
Releases are published by GitHub Actions when a tag starting with v is pushed:
git tag v0.0.5
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quse-0.0.5.tar.gz.
File metadata
- Download URL: quse-0.0.5.tar.gz
- Upload date:
- Size: 42.9 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
628f3ea97c4c6ce3b72ab0b9203518762aff34a90452841092f20e82d67e9d9c
|
|
| MD5 |
127cc498d4f97ea436ab0d0db4534fdf
|
|
| BLAKE2b-256 |
53c9c6223bd20ff6c6d27a420790b492087a8cbb02ff396e5ce469f25e12fde6
|
File details
Details for the file quse-0.0.5-py3-none-any.whl.
File metadata
- Download URL: quse-0.0.5-py3-none-any.whl
- Upload date:
- Size: 14.6 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b874c747b3ade8b7d816ed801458c23c4004ce60b3656480987e82070a99a352
|
|
| MD5 |
bdf56b6dadf42526ed582fe202346b6a
|
|
| BLAKE2b-256 |
3812ea56741b70b13d8ef773d91b14f6d1d893779bb34916b39a653bf12ad48e
|