by shanggqm
macOS desktop widget for OpenAI Codex usage, quota tracking, token usage, and today task board
# Add to your Claude Code skills
git clone https://github.com/shanggqm/codexUGuides for using cli tools skills like codexU.
codexU is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by shanggqm. macOS desktop widget for OpenAI Codex usage, quota tracking, token usage, and today task board. It has 52 GitHub stars.
codexU's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/shanggqm/codexU" and add it to your Claude Code skills directory (see the Installation section above).
codexU is primarily written in Swift. It is open-source under shanggqm on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh codexU against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
codexU 是一个 macOS 桌面小组件,用来查看 OpenAI Codex / ChatGPT Codex 的额度窗口、token 用量和今日任务状态。它把常用信息放在桌面上,帮助你快速判断剩余额度、重置时间和当天工作进展。

Command + U 一键唤到前台。中 | EN 手动切换。“羊毛进度”是 codexU 对本月 Codex 使用量的 API 等效价值估算。它把本机解析到的未缓存输入、命中缓存输入和输出 token,按对应模型的 OpenAI API token 单价折算成美元金额,并和 Plus、Pro 100、Pro 200 以及满额月价值做对比。这个指标解决的问题是:Codex 额度本身通常只显示百分比和重置时间,token 数量也不容易直观看出“用了多少价值”;羊毛进度提供一个统一的金额口径,帮助你判断本月订阅成本大致回收到了哪个区间。
单次 token 用量的估算公式为:
API 等效价值 =
未缓存输入 tokens / 1,000,000 * 模型未缓存输入单价
+ 缓存输入 tokens / 1,000,000 * 模型缓存输入单价
+ 输出 tokens / 1,000,000 * 模型输出单价
其中 未缓存输入 tokens = 输入 tokens - 缓存输入 tokens,缓存输入按不超过输入 tokens 的数量计入。本月羊毛进度会累计当月所有本机 session 的 API 等效价值。进度条的满额终点使用 2 亿 tokens/天 * 30 天 估算,并按 30% 未缓存输入、50% 缓存输入、20% 输出的参考 token mix 折算;当前参考价约为 $7.75 / 1M tokens,满额月价值约 $46,500。该金额只是基于 API 价格的等效估算,不代表实际账单或官方返现金额。
Command + U:在桌面层和前台层之间切换小组件。Command + U 相同的切换操作。中 | EN:切换中文或英文界面,手动选择会在下次启动时保留。codexU 目前通过 GitHub Release 的 DMG 安装包分发,不经过 Mac App Store。第一次打开时,macOS 可能会拦截,需要手动允许:
codexU.app 一次。如果系统提示无法打开,先取消弹窗。codexU.app,点击 仍要打开。也可以在 Finder 中右键点击 codexU.app,选择 打开,再确认系统安全提示。
codexU 需要读取本机 ~/.codex/ 下的 Codex 数据。如果 macOS 弹出文件或文件夹访问授权,请允许访问,否则小组件无法读取本机 usage、线程和自动化任务信息。
从 GitHub Release 下载与你的 Mac 芯片匹配的安装包:
codexU-<version>-mac-arm64.dmgcodexU-<version>-mac-x86_64.dmgcodexU.app 拖到 Applications 文件夹。Applications 打开 codexU。~/.codex/state_5.sqlite。make build
运行:
make run
安装到 /Applications:
make install
检查本机数据源输出:
make probe
make release
make release 会按当前构建机器的架构输出安装包。也可以显式打包指定架构:
make release-arm64
make release-intel
make release-all
产物会写入 dist/,例如:
dist/codexU-0.2.0-mac-arm64.dmg
dist/codexU-0.2.0-mac-arm64.dmg.sha256
dist/codexU-0.2.0-mac-x86_64.dmg
dist/codexU-0.2.0-mac-x86_64.dmg.sha256
Developer ID 签名和 Apple notarization 流程见 DISTRIBUTION.md。
codex app-server 的 account/read、account/rateLimits/read、account/usage/read。~/.codex/state_5.sqlite。~/.codex/sessions/**/rollout-*.jsonl 和 ~/.codex/archived_sessions/*.jsonl 中的 token_count 事件。~/.codex/automations/**/automation.toml 中启用的 automation 元数据。当前 Codex 额度 API 暴露的是滚动窗口百分比和重置时间,不暴露绝对配额数量。更完整的数据口径和回退策略见 RESEARCH.md。
不是。codexU 是一个非官方的本地 macOS 工具,用于读取本机 Codex app-server 和本机 ~/.codex/ 数据。
不会。codexU 只在本机读取 Codex 账户额度、本机 SQLite usage 和 automation 元数据,不把这些数据上传到第三方服务。
当前 Codex 本地 API 暴露的是滚动窗口已用百分比和重置时间,不暴露绝对额度数量,所以 codexU 展示的是 5 小时和 7 天窗口的剩余百分比。
支持。Intel Mac 下载 codexU-<version>-mac-x86_64.dmg。从源码打包时使用 make release-intel,或在支持对应 target 的机器上使用 TARGET_TRIPLE="x86_64-apple-macos14.0"。
MIT. See LICENSE.
如果你关注 AI 工具、Codex 使用经验和独立产品构建,欢迎扫码关注我的公众号。