| name | codex-quota |
| description | Check OpenAI Codex CLI rate limit status (daily/weekly quotas) using local session logs. Portable Python script. |
Skill: codex-quota
Check OpenAI Codex CLI rate limit status.
Quick Reference
./codex-quota.py
codex-quota
Options
codex-quota
codex-quota --fresh
codex-quota --all
codex-quota --json
codex-quota --help
What It Shows
- Primary Window (5 hours) — Short-term rate limit
- Secondary Window (7 days) — Weekly rate limit
- Reset times in local timezone with countdown
- Source session file and age
Installation
Copy codex-quota.py to your path:
cp skills/codex-quota/codex-quota.py ~/bin/codex-quota
chmod +x ~/bin/codex-quota
How It Works
Codex CLI logs rate limit info in every session file (~/.codex/sessions/YYYY/MM/DD/*.jsonl) as part of token_count events. This tool:
- Finds the most recent session file
- Extracts the last
rate_limits object
- Formats and displays it
When to Use
- Before starting heavy Codex work (check weekly quota)
- When Codex seems slow (might be rate-limited)
- Monitoring quota across multiple accounts