codex-quota
Check OpenAI Codex CLI rate limit status (daily/weekly quotas) using local session logs. Portable Python script.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Skill: codex-quota
Check OpenAI Codex CLI rate limit status.
Quick Reference
# Run the included Python script
./codex-quota.py
# Or if installed to PATH
codex-quota
Options
codex-quota # Show current quota (cached from latest session)
codex-quota --fresh # Ping Codex first for live data
codex-quota --all # Update all accounts, save to /tmp/codex-quota-all.json
codex-quota --json # Output as JSON
codex-quota --help # Show 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_limitsobject - 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
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-30
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!