macOS status bar app concept for viewing Codex usage limits through the official Codex/ChatGPT login flow.
cd app/Codexling
./package_app.sh
open "dist/Codexling.app"Release packaging and GitHub publishing are handled by the interactive script:
cd app/Codexling
./release_app.shSee 发布脚本说明.
状态栏任务圆灯、额度背景、Codex 内置 Pet 发现与活动状态映射见 状态栏与 Pets 方案。
主弹窗、设置页与分离窗口的浅色/暗色玻璃实现见 流体玻璃主题。
If swift build asks for the Apple SDK license, run this once in Terminal:
sudo xcodebuild -license- Click the menu bar summary.
- Click the login/fetch icon or the refresh button.
- The app starts the same OAuth PKCE flow used by Codex usage, opens the official OpenAI authorization page, and listens on
http://localhost:1455/auth/callback. - After authorization, the app stores the OAuth token in Keychain and fetches Codex usage from
https://chatgpt.com/backend-api/wham/usage. - Reset credits are fetched from
https://chatgpt.com/backend-api/wham/rate-limit-reset-credits. - The latest successful snapshot is cached locally for fast menu bar startup.
Show Codex short-window and weekly usage in the macOS menu bar, and provide a click-to-open detail panel with credits, reset coupons, expiration times, and the latest refresh status.
The app should use official OpenAI/Codex web login only. It should not store account passwords, bypass MFA, or depend on private account credentials.