返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Codex Quota

通过读取 ~/.codex/sessions/ 的本地会话日志,检查 OpenAI Codex CLI 的速率限制状态(日/周配额)。便携式 Python 脚本。

person作者: odrobnikhubclawhub

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 --yes  # Update all accounts, save to /tmp/codex-quota-all.json
codex-quota --json       # Output as JSON
codex-quota --help       # Show help

Setup

See SETUP.md for prerequisites and setup instructions.

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

When to Use

  • Before starting heavy Codex work (check weekly quota)
  • When Codex seems slow (might be rate-limited)
  • Monitoring quota across multiple accounts