A small, self-hosted web dashboard for monitoring OpenClaw / Codex usage limits.
- Shows Codex usage windows and remaining percentage.
- Reads live data from
openclaw status --usage --json. - Dark, mobile-friendly single-page UI.
- No database and no external Python dependencies.
- Optional secret URL path for private deployments.
- Python 3.10+
- OpenClaw CLI available as
openclawon PATH, or viaOPENCLAW_BIN
git clone https://github.com/tamerbaydag/codex-usage-web.git
cd codex-usage-web
./start.shOpen:
http://127.0.0.1:8787/
The app resolves openclaw from OPENCLAW_BIN, then PATH, so it works on other machines without a hardcoded user path.
Copy the example env file:
cp env.example .envAvailable settings:
PORT=8787
TZ_NAME=Europe/Istanbul
REFRESH_SECONDS=30
OPENCLAW_BIN=openclaw
# CODEX_USAGE_SECRET=my-secret-path
# OPENCLAW_SESSION_KEY=agent:main:your-sessionIf CODEX_USAGE_SECRET is set, the dashboard is served at:
http://127.0.0.1:8787/<CODEX_USAGE_SECRET>
Do not commit your .env, tokens, tunnel credentials, logs, or runtime pid files.
This repository intentionally includes only public-safe source files.
The app is intentionally simple:
server.py— HTTP server and dashboard renderingstart.sh— local launcherenv.example— configuration templatedocs/screenshot.svg— example screenshot
Pull requests and improvements are welcome.
MIT
