Local browser UI for ccusage: your Claude Code usage and costs. Dark dashboard with daily/weekly/monthly charts, model breakdowns, and a 30-day default view.
- Node.js 20+
- macOS for the background service installer (manual
npm startworks on any OS) - Claude Code usage data on your machine (read by the bundled
ccusageCLI)
git clone https://github.com/Pawel-Kica/ccusage-dashboard.git
cd ccusage-dashboard
npm install
npm run openOpens http://127.0.0.1:3847 in your browser.
Install as a LaunchAgent. Always on, fixed port, survives reboot:
npm run install-service
Open http://127.0.0.1:3847 anytime. Logs: logs/out.log, logs/err.log.
Remove:
npm run uninstall-service
| Command | Description |
|---|---|
npm start |
Start server (port 3847) |
npm run open |
Start server and open browser (macOS) |
npm run install-service |
Install macOS LaunchAgent (background) |
npm run uninstall-service |
Remove LaunchAgent |
| Variable | Default | Description |
|---|---|---|
PORT |
3847 |
HTTP port |
CACHE_TTL_MS |
300000 |
Server-side cache TTL (5 min) |
Different port for the service:
PORT=4000 npm run install-service
- Node server runs
ccusage claude <report> --json --breakdown - 5-minute in-memory cache on server + session cache in the browser
- UI defaults: Daily, last 30 days, Claude Code only
MIT, see LICENSE.
