If you've ever used Codex, you understand how annoying and difficult it is to keep clicking your avatar → limits, just to see how many more prompts you're allowed until you gotta use a reset token... or count the days till tuesday
This widget puts the number on your screen instead. Always on top, shows the remaining % and the reset date.
You need Codex CLI installed and logged in. If you already use Codex in your terminal, you're set.
-
Download this project (green Code button → Download ZIP, unpack it)
-
Open Terminal and run:
cd ~/Downloads/codex-usage-widget* && ./install.sh
Done. The widget appears top-left and starts automatically at login. The installer checks prerequisites and tells you how to fix anything missing.
| Action | How |
|---|---|
| Move | drag the widget anywhere |
| Resize | drag the bottom-right corner |
| Refresh | right-click → Refresh Now |
| Quit | right-click → Quit Codex Usage |
| Remove | run ./uninstall.sh |
Refreshes every 5 minutes. Remembers its size and position.
It launches codex app-server (the official JSON-RPC interface in Codex CLI)
and calls account/rateLimits/read. That's it. No credential access, no
undocumented endpoints, no analytics. The whole app is one Swift file under
500 lines: CodexUsage.swift — read it.
make build # compile
make run # compile and run in foreground
make install # install + start at login
make uninstall # remove everythingCodex binary somewhere unusual? CODEX_BIN=/path/to/codex ~/.local/bin/CodexUsage
Contributions welcome — see CONTRIBUTING.md.
Unofficial community tool, not affiliated with OpenAI. Requires macOS 13+. The app-server protocol is marked experimental upstream; if it changes, update Codex CLI and this widget.
MIT — see LICENSE.