Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By centminmodv1.95.0MITIn 1 marketplace
Shows per-turn token use, cost and cache savings for a Claude Code session, exported as text, JSON, CSV, Markdown or HTML reports. Reads local logs only; it says it makes no network calls and needs no API key.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that measures how much your sessions cost, where your tokens go, and — if you want — whether switching between Opus 4.6 and 4.7 would change your bill.
Inside the Claude Code terminal CLI (claude in your shell):
/plugin marketplace add centminmod/claude-plugins
/plugin install session-metrics@centminmod
Restart Claude Code. You're done.
The skill auto-triggers whenever you ask in natural language — "how much has this session cost?", "show me token usage", "is my cache hit rate good?" — so there's nothing new to remember for the common case.
In any project where you've been using Claude Code, just ask:
how much has this session cost so far?
Claude will run the skill and print a per-turn table, a summary strip, and a dashboard. No flags, no options needed.
These are what almost everyone ends up wanting: a shareable HTML
report for the current session, one for the whole project, or
a dashboard across every project on your machine. Session and
project reports land in exports/session-metrics/ under your project
root; the all-projects dashboard lands in a dated subfolder under
exports/session-metrics/instance/.
Natural-language ask (easiest):
export this session's metrics to HTML
Explicit invocation (from inside Claude Code):
/session-metrics --output html
Direct shell (for scripts or CI):
uv run python ~/.claude/plugins/cache/centminmod/session-metrics/<version>/skills/session-metrics/scripts/session-metrics.py --output html
You get a 2-page split by default — a high-level dashboard + a detail
page — named like session_<id8>_<YYYYMMDD_HHMMSS>_dashboard.html +
_detail.html. Pass --single-page if you want one combined file:
/session-metrics --output html --single-page
Natural-language ask:
export this entire project's session metrics to HTML
Explicit invocation:
/session-metrics --project-cost --output html
Direct shell:
uv run python ~/.claude/plugins/cache/centminmod/session-metrics/<version>/skills/session-metrics/scripts/session-metrics.py --project-cost --output html
This one rolls up every session in the current project — per-turn
timeline, per-session subtotals, grand project total, 5-hour session
blocks, weekly roll-up, hour-of-day punchcard. Output file:
project_<YYYYMMDD_HHMMSS>_dashboard.html + _detail.html (or a
single file with --single-page).
Natural-language ask:
how much have I spent on Claude Code across all my projects?
Explicit invocation:
/session-metrics all-projects
Direct shell:
uv run python ~/.claude/plugins/cache/centminmod/session-metrics/<version>/skills/session-metrics/scripts/session-metrics.py --all-projects --output html
Aggregates every project under ~/.claude/projects/ into one dashboard — total
cost-to-date, per-project breakdown, and daily timeline. Output lands in
exports/session-metrics/instance/YYYY-MM-DD-HHMMSS/ (dated subfolder so successive
runs don't overwrite each other): index.html hyperlinks each project row to a
pre-rendered per-project HTML drilldown. Add --no-project-drilldown for a flat
index in seconds.
| Flag | Purpose |
|---|---|
--single-page | Emit one combined file instead of the dashboard + detail split. |
--chart-lib highcharts|uplot|chartjs|none | Pick the chart renderer. highcharts is the default (richest, non-commercial licence). uplot / chartjs are MIT. none skips JS entirely. |
--peak-hours 5-11 --peak-tz America/Los_Angeles | Shade the hour-of-day chart with a peak-usage band. Community-reported, not an Anthropic SLA. |
--tz Australia/Brisbane | Render timestamps in a specific IANA timezone. Auto-detects your system tz by default. |
Combine them freely:
/session-metrics --project-cost --output html --single-page --chart-lib uplot
7-day copy clicks
npx claudepluginhub centminmod/claude-plugins --plugin session-metricsPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.