A simple tool to check Codex usage and monitor ChatGPT/Codex rate limits from Codex CLI auth.json files.
- Display rate-limit windows with progress bars.
- Auto-refresh every 30 seconds with
--tail(pressqto exit). - Raw JSON output with
--jsonfor integration. - Supports multiple auth files in a single run.
npm install -g codex-checkOr run directly without installing:
npx codex-check --auth ~/.codex/auth.jsoncodex-check --auth ~/.codex/auth.json [--auth /path/to/other.json] [--tail] [--json]--auth <path>: Path to a Codexauth.jsonfile. Repeat for multiple accounts. Defaults to~/.codex/auth.json.--tail: Refresh output every 30 seconds, updating in-place. PressqorCtrl+Cto exit.--json: Print raw JSON data once and exit (disables--tail).-h,--help: Show CLI help.
codex-check --auth ~/.codex/auth.json
codex-check --tail --auth ~/.codex/auth.json --auth /tmp/team.json
codex-check --json --auth ~/.codex/auth.json > usage.jsonnpm install
npm start -- --auth ~/.codex/auth.jsonMIT