Skip to content

About

Local dashboard for your Claude Code usage and costs.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

CC Usage Dashboard

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.

CC Usage Dashboard

Requirements

  • Node.js 20+
  • macOS for the background service installer (manual npm start works on any OS)
  • Claude Code usage data on your machine (read by the bundled ccusage CLI)

Quick start

git clone https://github.com/Pawel-Kica/ccusage-dashboard.git
cd ccusage-dashboard
npm install
npm run open

Opens http://127.0.0.1:3847 in your browser.

Run in the background (macOS)

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

Scripts

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

Configuration

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

How it works

  • 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

License

MIT, see LICENSE.

About

Local dashboard for your Claude Code usage and costs.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages