← 返回 Skills 市场
odrobnik

Codex Quota

作者 Oliver Drobnik · GitHub ↗ · v1.2.2
cross-platform ⚠ suspicious
6705
总下载
3
收藏
19
当前安装
9
版本数
在 OpenClaw 中安装
/install codex-quota
功能描述
Check OpenAI Codex CLI rate limit status (daily/weekly quotas) using local session logs. Portable Python script. Reads ~/.codex/sessions/ for quota data. Whe...
安全使用建议
Install only if you are comfortable with a tool reading Codex session logs and, when run with --all --yes, temporarily switching Codex accounts by rewriting ~/.codex/auth.json. Avoid --all --yes while other Codex processes are running, keep a backup of auth.json, and treat /tmp/codex-quota-all.json as sensitive account metadata that should be deleted or moved to a private directory after use.
功能分析
Type: OpenClaw Skill Name: codex-quota Version: 1.2.2 The `codex-quota.py` script is classified as suspicious due to its high-risk manipulation of sensitive authentication files. Specifically, the `update_all_accounts` function temporarily overwrites `~/.codex/auth.json` (which likely contains API keys/tokens) to switch between different Codex accounts. Although the script attempts to restore the original `auth.json` and explicitly declares this behavior in `SKILL.md` and `SETUP.md`, a crash or interruption during this process could leave the authentication file in an unintended state, potentially leading to unauthorized access to a different account or a broken configuration. There is no evidence of intentional data exfiltration, persistence, or other malicious activities.
能力评估
Purpose & Capability
The stated purpose, checking Codex CLI quota usage from local session logs, matches the main behavior. The multi-account feature is also purpose-aligned, but it requires sensitive access to Codex account/session files.
Instruction Scope
The docs disclose reading ~/.codex/sessions/, using the codex CLI, and overwriting ~/.codex/auth.json for --all --yes, but the risk is not prominent enough for a credential-state mutation and the CLI help only partially explains the side effect.
Install Mechanism
No hidden installer, package dependency chain, daemon, or startup hook was evident; setup is a portable Python script with optional PATH copying and expected python3/codex prerequisites.
Credentials
Reading local Codex logs is proportionate, but --all --yes overwrites ~/.codex/auth.json and writes aggregated account quota data to /tmp/codex-quota-all.json, which is weaker containment for sensitive local metadata.
Persistence & Privilege
There is no durable persistence or privilege escalation, but auth.json restoration is best-effort rather than protected by robust atomic/finally cleanup, so interruption could leave the active Codex account changed.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install codex-quota
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /codex-quota 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.2
fix: use /Users/oliver/clawd for workspace root to preserve symlink paths
v1.2.1
Rename .clawdhubignore to .clawhubignore
v1.2.0
Refactor: move setup/prerequisites to SETUP.md, keep SKILL.md lean
v1.1.3
Declare codex dependency and auth.json switching; restore auth.json bytes after --all.
v1.1.2
Require --yes for --all; clarify ~/.codex file access; OpenClaw metadata.
v1.1.1
- Added version number and metadata (including system requirements) to SKILL.md. - Updated usage instructions: account switching with --all now requires the --yes flag. - Improved description and documentation for clarity, including details about config and data file locations.
v1.1.0
Add --all to update all accounts, fix list_accounts to ignore cache files
v1.0.1
Added description metadata
v1.0.0
Initial release: Check OpenAI Codex rate limits via Python or Swift
元数据
Slug codex-quota
版本 1.2.2
许可证
累计安装 253
当前安装数 19
历史版本数 9
常见问题

Codex Quota 是什么?

Check OpenAI Codex CLI rate limit status (daily/weekly quotas) using local session logs. Portable Python script. Reads ~/.codex/sessions/ for quota data. Whe... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 6705 次。

如何安装 Codex Quota?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install codex-quota」即可一键安装,无需额外配置。

Codex Quota 是免费的吗?

是的,Codex Quota 完全免费(开源免费),可自由下载、安装和使用。

Codex Quota 支持哪些平台?

Codex Quota 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Codex Quota?

由 Oliver Drobnik(@odrobnik)开发并维护,当前版本 v1.2.2。

💬 留言讨论