Claude Code usage dashboard across multiple devices
Project description
claude-multi-usage (cmu)
CLI dashboard for Claude Code usage tracking across multiple devices.
Parses local ~/.claude data and displays usage stats in your terminal — sessions, tokens, projects, models, and more. Supports multi-device sync via a central server.
Install
Homebrew (macOS)
brew tap hunknownn/tap
brew install claude-multi-usage
pipx
pipx install claude-multi-usage
Usage
cmu # Full dashboard
cmu today # Today's usage
cmu projects # Usage by project
cmu models # Usage by model
cmu cost # Monthly cost breakdown
cmu dashboard -d 30 # Last 30 days
cmu dashboard --all # All devices (via sync server)
claude-multi-usage also works as a command alias.
Multi-Device Sync
Collect usage data from multiple machines into a central server.
Server Setup
Choose one of the following:
Docker (recommended)
docker run -d -p 8000:8000 -v cmu-data:/data ghcr.io/hunknownn/claude-multi-usage:latest
Kubernetes
kubectl create namespace cmu-server
kubectl apply -k https://github.com/hunknownn/claude-multi-usage/deploy/k8s/ -n cmu-server
To expose via Ingress (optional):
curl -O https://raw.githubusercontent.com/hunknownn/claude-multi-usage/main/deploy/k8s/ingress.example.yaml
# Edit the file — replace your-domain.example.com with your domain
kubectl apply -f ingress.example.yaml -n cmu-server
pip
pip install claude-multi-usage[server]
cmu server start --host 0.0.0.0 --port 8000
Client Setup
# Set server URL and email (once per device)
cmu config --server https://your-server.com
cmu config --email your@email.com
# Sync usage data
cmu sync
# View all your devices' usage (filtered by email)
cmu dashboard --all
Email is used to isolate data between users. Only devices with the same email can see each other's data. Local commands (
cmu dashboard,cmu today,cmu cost, etc.) work without email.
Auto Sync
Add to ~/.zshrc to sync automatically when using Claude:
cc() {
cmu sync --quiet &>/dev/null &
command claude "$@"
cmu sync --quiet &>/dev/null &
}
Dashboard Preview
── Claude Usage Dashboard ── my-macbook.local ── 2026-03-07 ──
╭──────────── Summary ────────────╮ ╭────────── Model Usage ──────────╮
│ Hostname my-macbook │ │ Model Output Cache │
│ Total Sessions 132 │ │ claude-opus-4-6 780K 519M │
│ Total Messages 35,330 │ │ claude-sonnet 867K 424M │
│ Output Tokens 1.6M │ ╰─────────────────────────────────╯
│ Estimated Cost $1,548 │
╰─────────────────────────────────╯
╭──────────────── Daily Tokens (last 14 days) ─────────────────╮
│ 02-23 ████░░░░░░░░░░░░░░░░ 60.3K (1233 msgs, 9 sess) │
│ 02-24 █░░░░░░░░░░░░░░░░░░░ 24.8K (909 msgs, 4 sess) │
│ 03-03 ███████░░░░░░░░░░░░░ 96.6K (633 msgs, 4 sess) │
╰──────────────────────────────────────────────────────────────╯
╭──────────────── Hourly Sessions (all time) ──────────────────╮
│ 00 01 02 .. 09 10 .. 16 17 18 19 20 21 22 23 │
│ ▒▒ ░░ ░░ ░░ ▒▒ ▓▓ ▒▒ ░░ ▒▒ ▓▓ ▓▓ ██ ▓▓ │
╰──────────────────────────────────────────────────────────────╯
╭──────────────── Top Projects ────────────────────────────────╮
│ 1. apr-backend-assignment 45 sessions 2026-02-10 │
│ 2. wemade-assignment 23 sessions 2026-03-04 │
│ 3. url-jarvis 17 sessions 2026-03-07 │
╰──────────────────────────────────────────────────────────────╯
Cost Estimation
Calculates estimated API costs using LiteLLM's pricing DB (2,600+ models). Pricing is auto-fetched and cached locally for 24 hours.
- Supports tiered pricing (200K+ token extended context)
- Subagent (haiku) usage included
- Deduplicates streaming message blocks
- Falls back to last cached pricing when offline
╭──────────── Cost Breakdown (by month) ────────────╮
│ Month Model Cost │
│ 2026-02 claude-opus-4-6 $236.27 │
│ claude-sonnet-4-5 $50.66 │
│ subtotal $286.93 │
│ │
│ 2026-03 claude-opus-4-6 $30.21 │
│ subtotal $30.21 │
│ │
│ Total $317.14 │
╰────────────────────────────────────────────────────╯
How It Works
Reads local Claude Code data from ~/.claude/:
stats-cache.json— daily activity, model tokens, hourly countsprojects/**/*.jsonl— session files per project (including subagents)
No API keys required. Local data stays local unless you opt in to sync.
Roadmap
- Multi-device sync via central server (#2)
- Accurate cost estimation with incremental caching (#5)
- Email-based user isolation for multi-device data (#8)
- Web dashboard (#3)
- Homebrew support
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_multi_usage-0.6.1.tar.gz.
File metadata
- Download URL: claude_multi_usage-0.6.1.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ffe4fa42a04e6f996151c0bb02a44b51c39bb31172b4f4c8614d58da2fed9f6
|
|
| MD5 |
4433935cfbe4bbac247d6779e8443c94
|
|
| BLAKE2b-256 |
4056ea208a9a26d7cad835208c7e81622d5fe0e703f819a3caffbcd81d937a4b
|
Provenance
The following attestation bundles were made for claude_multi_usage-0.6.1.tar.gz:
Publisher:
release.yml on hunknownn/claude-multi-usage
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_multi_usage-0.6.1.tar.gz -
Subject digest:
4ffe4fa42a04e6f996151c0bb02a44b51c39bb31172b4f4c8614d58da2fed9f6 - Sigstore transparency entry: 1056930842
- Sigstore integration time:
-
Permalink:
hunknownn/claude-multi-usage@2445dd07ad02d27210652598ed605e177e3efe7f -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/hunknownn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2445dd07ad02d27210652598ed605e177e3efe7f -
Trigger Event:
push
-
Statement type:
File details
Details for the file claude_multi_usage-0.6.1-py3-none-any.whl.
File metadata
- Download URL: claude_multi_usage-0.6.1-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab265fd46b693ce29b6540afba0af98b006288398bde4c176353f8a0478d1d37
|
|
| MD5 |
032d94f79e9e392b32704614dc4dcfa6
|
|
| BLAKE2b-256 |
5c2e9fa4f6c0a6b3cc820742b3613964b8a27c0189e72864494b145029e901fe
|
Provenance
The following attestation bundles were made for claude_multi_usage-0.6.1-py3-none-any.whl:
Publisher:
release.yml on hunknownn/claude-multi-usage
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_multi_usage-0.6.1-py3-none-any.whl -
Subject digest:
ab265fd46b693ce29b6540afba0af98b006288398bde4c176353f8a0478d1d37 - Sigstore transparency entry: 1056930857
- Sigstore integration time:
-
Permalink:
hunknownn/claude-multi-usage@2445dd07ad02d27210652598ed605e177e3efe7f -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/hunknownn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2445dd07ad02d27210652598ed605e177e3efe7f -
Trigger Event:
push
-
Statement type: