← ClaudeAtlas

usage-dashboardlisted

Show token usage and estimated cost across local Claude Code instances. Use when the user asks to see their Claude Code usage, token usage, cost, spend, or a usage dashboard — especially across multiple accounts/config dirs (~/.claude and ~/.claude-myfinancial).
rohitguta2432/agentic-os-skills · ★ 0 · AI & Automation · score 60
Install: claude install-skill rohitguta2432/agentic-os-skills
# Usage Dashboard Reads every `~/.claude*/projects/**/*.jsonl` transcript, sums input/output/cache tokens + estimated cost, groups by instance, model, and day, then opens an HTML dashboard. Each `~/.claude*` config dir is treated as one instance (label = dir suffix; `~/.claude` → `personal`, `~/.claude-myfinancial` → `myfinancial`). ## Run ```bash python3 ~/.claude/skills/usage-dashboard/dashboard.py ``` Writes `claude_usage.html` to the temp dir and opens it in the browser. ## Daily Obsidian ledger `daily_obsidian.py` reuses the same collector to write the usage into the Obsidian vault (`$VAULT_DIR`, default `~/Documents/wiki`): ```bash python3 ~/.claude/skills/usage-dashboard/daily_obsidian.py ``` - One note per day at `wiki/usage/<YYYY-MM-DD>.md` — frontmatter (`cost`/`tokens`/`turns`, Dataview-queryable) + tables: by instance, by project, by model, token composition. - `wiki/usage/index.md` — rolling master table (newest day first) + all-time totals. - Idempotent: regenerates every run, self-heals missed days. - Scheduled daily at 22:05 by `com.rohit.usage-ledger.plist` (installed in `~/Library/LaunchAgents/`), just after the `claude-to-obsidian` chat sync (22:00). - Self-check: `python3 daily_obsidian.py --selfcheck`. ## Scheduled-run attribution Both the HTML dashboard and the Obsidian note split usage by **what triggered the run**: `Interactive` (you typed it) vs each scheduled launchd job by name (`daily-financial-blog-post`, `daily-code-feature-add`,