Skip to content

tamerbaydag/codex-usage-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codex Usage Web

A small, self-hosted web dashboard for monitoring OpenClaw / Codex usage limits.

Codex Usage Web screenshot

Features

  • 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.

Requirements

  • Python 3.10+
  • OpenClaw CLI available as openclaw on PATH, or via OPENCLAW_BIN

Quick start

git clone https://github.com/tamerbaydag/codex-usage-web.git
cd codex-usage-web
./start.sh

Open:

http://127.0.0.1:8787/

Optional configuration

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 .env

Available 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-session

If CODEX_USAGE_SECRET is set, the dashboard is served at:

http://127.0.0.1:8787/<CODEX_USAGE_SECRET>

Security

Do not commit your .env, tokens, tunnel credentials, logs, or runtime pid files. This repository intentionally includes only public-safe source files.

Development

The app is intentionally simple:

  • server.py — HTTP server and dashboard rendering
  • start.sh — local launcher
  • env.example — configuration template
  • docs/screenshot.svg — example screenshot

Pull requests and improvements are welcome.

License

MIT

Releases

No releases published

Packages

 
 
 

Contributors