| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
English | 中文
A local Codex Skill that turns your Codex remaining usage, reset times, token activity, and streaks into a compact dashboard you can keep open while working.
Philosophy: Keep your limits visible, so you can plan the work instead of discovering quota surprises in the middle of a long task.
A local dashboard for Codex with:
The agent will:
No API keys needed. Your first sync runs immediately after setup.
The panel can be managed through conversation. Just tell Codex:
If port 8765 is busy, the installer automatically chooses a nearby available port and prints the final dashboard URL.
On macOS, the installer now avoids accidental port drift by stopping its own old service before selecting a port. If a previous install used another port, it also keeps that old URL alive as a compatibility alias. You can add one explicitly:
node ~/.codex/skills/codex-usage-panel/scripts/install-panel.mjs --port 8765 --alias-port 8766 --openReinstalling keeps ~/.codex-usage-panel/profile.json and preserves local avatar files referenced from it, such as ./profile-avatar.png.
Codex does not currently have a built-in setting that pins a custom HTML panel inside every conversation. This skill includes a local SessionStart hook that gets you close: when Codex starts or resumes a conversation, the hook opens the usage panel URL in Codex.
Enable it:
node ~/.codex/skills/codex-usage-panel/scripts/install-auto-open-hook.mjsRemove it:
node ~/.codex/skills/codex-usage-panel/scripts/install-auto-open-hook.mjs --removeThe first time the hook runs, Codex may ask you to review and trust it. The hook only opens http://127.0.0.1:8765/index.html.
You can customize it two ways:
Through conversation (recommended): Tell Codex what you want — "Make it more compact", "show only 3 months", "change the accent color", or "hide streak stats". Codex can edit the panel for you.
Direct editing (power users): Edit the files in assets/panel/:
Changes take effect after reinstalling or reloading the local panel.
Codex's local app-server currently exposes account email and plan, but not the ChatGPT display nickname or avatar URL. The panel uses that local account data to generate a personal display name, handle, and initials avatar instead of a shared default.
For exact profile details, create ~/.codex-usage-panel/profile.json:
{
"name": "Luke_Ji",
"handle": "@jasondongsheng",
"avatarUrl": "https://example.com/avatar.png"
}Then run:
node ~/.codex-usage-panel/scripts/sync-usage.mjs --root ~/.codex-usage-panelYou can also set it during install. --profile-avatar accepts either an image URL or a local image path:
node ~/.codex/skills/codex-usage-panel/scripts/install-panel.mjs --profile-name "Luke_Ji" --profile-handle "@jasondongsheng" --profile-avatar ~/Pictures/avatar.png --openShows the current short-window quota, weekly quota, reset credits, progress bars, and reset times.
Shows 26 weeks of daily Token activity as a compact heatmap, with daily, weekly, and cumulative display modes.
Shows lifetime tokens, peak token day, longest task, current streak, and longest streak.
See examples/sample-panel.md for a quick output tour.
git clone https://github.com/noskinodesign/codex-usage-panel-skill.git ~/.codex/skills/codex-usage-panelThen open Codex and say:
Use $codex-usage-panel to install and open a local Codex usage dashboard.
You can also run the installer directly:
node ~/.codex/skills/codex-usage-panel/scripts/install-panel.mjs --openDownload codex-usage-panel-skill.zip from GitHub Releases, then:
mkdir -p ~/.codex/skills
unzip codex-usage-panel-skill.zip -d ~/.codex/skillsThat's it. No external account, cloud backend, or usage API key required.
When upgrading on macOS, the installer also disables the early prototype com.lukeji.codex-usage-panel-* LaunchAgents and keeps a previous dashboard port alive when it changed, so old links in Codex conversations keep working.
The sync process reads local Codex app-server methods such as account/rateLimits/read, account/usage/read, and account/read.
Codex does not currently support injecting a custom HTML panel into every conversation body. The recommended setup is to keep the panel open in the Codex side browser, use the included auto-open hook, or keep it in a small browser window.
MIT
| Back | FazBrowse Home | New Git URL |