From varie-workstation
Displays aggregated token usage statistics across Claude Code sessions, including input/output totals, cache reads/creations, breakdowns by project directory and time filters like --today or --week. Use to analyze resource consumption patterns.
How this skill is triggered — by the user, by Claude, or both
Slash command
/varie-workstation:work-statsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Show token usage statistics across sessions.
Show token usage statistics across sessions.
--project <name> - Filter to specific project--today - Only sessions from today--week - Only sessions from past 7 days# List all session usage files
ls ~/.varie/sessions/*/usage.json 2>/dev/null
For each usage.json file:
cat ~/.varie/sessions/<session_id>/usage.json
Extract and sum:
tokens.total_inputtokens.total_outputtokens.cache_readtokens.cache_creation## Token Usage Statistics
> **Note:** Token counts are estimates based on status line data and may not match actual billing.
### Overall
| Metric | Value |
|--------|-------|
| Total Sessions | 12 |
| Input Tokens | 2.5M |
| Output Tokens | 450K |
| Cache Read | 1.8M |
| Cache Creation | 120K |
### By Initial Directory (Top 5)
| Directory | Sessions | Input | Output |
|-----------|----------|-------|--------|
| react | 5 | 1.2M | 200K |
| next.js | 3 | 800K | 150K |
| express | 2 | 300K | 80K |
### Recent Sessions
| Session | Started | Context % | Input | Output |
|---------|---------|-----------|-------|--------|
| abc123 | 2h ago | 42% | 150K | 45K |
| def456 | 5h ago | 78% | 280K | 92K |
/work-stats --project react
Shows only sessions where initial_cwd contains "react".
/work-stats --today
Filters to sessions where started_at is today.
/work-stats --week
Filters to sessions from the past 7 days.
## Token Usage Statistics
No usage data found.
Usage tracking requires the status line to be configured.
See: https://github.com/varie-ai/varie-workstation#status-line-setup
statusline-context script~/.varie/sessions/<id>/usage.jsonnpx claudepluginhub varie-ai/workstation --plugin varie-workstationDisplays per-session token usage breakdown for Claude Code. Supports custom date ranges via `/token-usage N`.
Displays real token usage and estimated savings for current Claude Code session from session logs—no AI estimation. Invoke via `/genshijin-stats` for session stats, `--all` lifetime totals, `--share` summaries, or `--since` periods.
Scans Claude Code session JSONL files to generate interactive token usage dashboards and calendars. Tracks totals, trends, models, hourly activity, and costs via Python scripts.