Repository navigation
The first public release: a self-hosted leaderboard of Claude Code output tokens for teams where everyone uses their own personal account.
Highlights
- Works with personal accounts. Each person's Claude Code sends its own usage through OpenTelemetry, so there's no shared organization or admin API key to set up.
- Live leaderboard. A top-3 podium plus the full ranking for today, 7 days, 30 days, this month or all time. The page refreshes every second.
- Detail card per person. Shows output over time, the models used, cache reads and writes, sessions, active days and estimated API cost.
- 30 days of history on day one. The installer imports hourly totals from local Claude Code transcripts. Running it again replaces the imported history instead of adding to it.
- Admin page (
/admin):- add participants and copy a ready-to-send install message
- edit names, teams and emails
- rotate tokens, remove a computer's history or a photo, and delete participants
- One-command install for macOS, Linux and Windows. It backs up
~/.claude/settings.jsonfirst and can be undone with--uninstall. - Profile photos that people upload themselves, with crop and zoom.
- Light and dark themes. The interface is in English or Bahasa Indonesia (
LB_LANG).
Running it
- Plain Python:
python3 server.py. It needs Python 3.10+ and only the standard library, with SQLite storage. - Docker:
docker compose up -d. Add--profile tunnelto also run a Cloudflare Tunnel. - Systemd: use the unit in
deploy/. - Without root: use
run.shfrom cron. - Try it with sample data:
python3 manage.py demo.
Access and security
- Private team access: Cloudflare Tunnel + Access is recommended. A step-by-step guide is in docs/cloudflare.md.
- Without Cloudflare: an admin passphrase (
LB_ADMIN_KEY) protects/admin, and an optional secret viewer link (LB_VIEW_KEY) protects the board. - Tokens: each participant has a personal token, and only its SHA-256 hash is stored.
- Browser writes: cookies are signed, writes must come from the same origin, and every admin action is logged.
- What laptops send: numbers only. Prompts, code and file names never leave the laptop.
Known limitations
- It counts Claude Code only, not claude.ai or the desktop chat.
- Numbers are self-reported. It's a friendly leaderboard, not billing.
- Imported history has token counts but no cost or active time.
- The Windows installer has had less testing than the macOS and Linux one. Reports are welcome.
Built by @imkurow together with Claude.
