skills$openclaw/codex-quota
odrobnik9.0k

by odrobnik

codex-quota – OpenClaw Skill

codex-quota is an OpenClaw Skills integration for coding workflows. Check OpenAI Codex CLI rate limit status (daily/weekly quotas) using local session logs. Portable Python script.

9.0k stars7.0k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namecodex-quota
descriptionCheck OpenAI Codex CLI rate limit status (daily/weekly quotas) using local session logs. Portable Python script. OpenClaw Skills integration.
ownerodrobnik
repositoryodrobnik/codex-quota
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @odrobnik/codex-quota
last updatedFeb 7, 2026

Maintainer

odrobnik

odrobnik

Maintains codex-quota in the OpenClaw Skills directory.

View GitHub profile
File Explorer
4 files
.
_meta.json
454 B
codex-quota.py
11.3 KB
README.md
1.4 KB
SKILL.md
1.4 KB
SKILL.md

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

# 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:

  1. Finds the most recent session file
  2. Extracts the last rate_limits object
  3. 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
README.md

codex-quota

A portable Python tool to check OpenAI Codex rate limit status.

Installation

cp codex-quota.py ~/bin/codex-quota
chmod +x ~/bin/codex-quota

Usage

codex-quota              # Cached data from latest session
codex-quota --fresh      # Ping Codex for live data
codex-quota --json       # JSON output

Example Output

═══════════════════════════════════════════
           CODEX RATE LIMIT STATUS         
═══════════════════════════════════════════

📊 Primary (5 hours window)
   [░░░░░░░░░░░░░░░░░░░░] 0.0%
   Resets: 2026-01-10 19:20 (in 4h 23m)

📈 Secondary (7 days window)
   [█████████████████░░░] 89.0%
   Resets: 2026-01-14 14:14 (in 95h 18m)

═══════════════════════════════════════════
   Updated: 2026-01-10 14:20
═══════════════════════════════════════════

How It Works

Reads rate limit data from Codex session files (~/.codex/sessions/). Every Codex API response includes rate limit headers, which get logged as token_count events in the session JSONL files.

License

MIT

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install codex-quota?

Run openclaw add @odrobnik/codex-quota in your terminal. This installs codex-quota into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/odrobnik/codex-quota. Review commits and README documentation before installing.