macOS status bar app concept for viewing Codex usage limits through the official Codex/ChatGPT login flow.
cd app/CodexLight
./package_app.sh
open "dist/Codex Light.app"Release packaging and GitHub publishing are handled by the interactive script:
cd app/CodexLight
./release_app.shSee 发布脚本说明.
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.