tokenomics-dashboard

tokenomics-dashboard is a skill for Claude Code, Codex from aarora79/claude-code-usage-analyzer. It costs 114 tokens per session (1,145 once invoked), scanned A, original, MIT.

A dashboard generator for reviewing Claude Code usage and estimated token costs over a selected number of days.

In plain words
What is it for?
It fetches local usage with ccusage, prices models using LiteLLM data, creates an HTML dashboard, and explains the results in director-level commentary.
Why use it?
It turns local usage records into a visual report so teams can see spending and usage patterns without preparing the data themselves.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/aarora79/claude-code-usage-analyzer/tokenomics-dashboard
Any agent
npx skills add aarora79/claude-code-usage-analyzer --skill tokenomics-dashboard
Clone the repo
git clone --depth 1 https://github.com/aarora79/claude-code-usage-analyzer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tokenomics-dashboard

README.md
[![agentmods](https://agentmods.dev/badge/skills/aarora79/claude-code-usage-analyzer/tokenomics-dashboard.svg)](https://agentmods.dev/skills/aarora79/claude-code-usage-analyzer/tokenomics-dashboard)
Your own site
<a href="https://agentmods.dev/skills/aarora79/claude-code-usage-analyzer/tokenomics-dashboard"><img src="https://agentmods.dev/badge/skills/aarora79/claude-code-usage-analyzer/tokenomics-dashboard.svg" alt="Measured on agentmods" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,145 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00114 $0.01145
Opus 5 $0.00057 $0.00573
Sonnet 5 $0.00023 $0.00229
Haiku 4.5 $0.00011 $0.00114

Measured 4d ago against content hash 0c54c48ab7c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tokenomics-dashboard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/tokenomics-dashboard/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tokenomics Dashboard Skill

Produce the self-contained HTML tokenomics dashboard for a chosen window of Claude Code usage, then present it to the user with a director-of-tokenomics commentary. This wraps the claude-usage-analyzer CLI, which fetches usage via ccusage, prices it from LiteLLM, and writes the dashboard to data/output/tokenomics-dashboard.html.

The one input: number of days

The skill takes exactly one input from the user: how many days of history to analyze.

  1. If the user already gave a number ("last 30 days", "past 2 weeks"), use it and skip the question.
  2. Otherwise ask, and only this: "How many days of history should I analyze?" Offer sensible options (7, 30, 90) and note they can enter another number.
  3. State plainly, before fetching: "I will get this data using the ccusage tool." ccusage reads Claude Code's local usage files; nothing is uploaded.

Do not ask about output paths, formats, or models. Those are fixed: the analyzer always writes to data/output/ and prices every model dynamically.

Workflow

Step 1: Confirm the window and compute the start date

Convert the number of days into a --since date in YYYYMMDD format. The analyzer's --since is an inclusive start date, so for "last N days" use today minus (N - 1) days. Get today's date from the environment context; do not guess it. Tell the user the resulting date range you will analyze.

Step 2: Run the analyzer (it fetches via ccusage)

From the repository root, run the CLI with a refresh so the window is re-fetched, not served from a stale cache:

uv run claude-usage-analyzer --since <YYYYMMDD> --refresh
  • Announce that this uses npx ccusage@latest under the hood to read local usage data, then prices it from LiteLLM.
  • If npx/ccusage is unavailable, the tool prints an actionable error; relay it and stop rather than inventing numbers.
  • The run writes data/output/tokenomics-dashboard.html, claude-usage-report.md, and claude-usage-analysis.json.

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 69 lines · 114 tokens per session scan A 0c54c48ab7c7

Subscribe to this mod's changes

tokenomics-dashboard is a skill published in the GitHub repository aarora79/claude-code-usage-analyzer (5 stars, last pushed 1mo ago), licensed MIT. It adds 114 tokens to every session and 1,145 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

token-tracker

Track and analyze LLM token usage across projects. Monitor costs, generate reports, set budgets, and visualize usage patterns. Use when users want to: check token usage, estimate costs, set budgets, export reports, or understand AI spending patterns.

buiphucminhtam/forgewright · 53 tokens

workflow

Professional AI programming assistant with structured workflow (Research -> Ideate -> Plan -> Execute -> Optimize -> Review) for developers.

UfoMiao/zcf · 25 tokens

r3f-animation

React Three Fiber animation - useFrame, useAnimations, spring physics, keyframes. Use when animating objects, playing GLTF animations, creating procedural motion, or implementing physics-based movement.

zebbern/claude-code-guide · 43 tokens

golden-rss

Use when testing the rss golden build.

yusufkaraaslan/Skill_Seekers · 12 tokens

r3f-best-practices

React Three Fiber (R3F) and Poimandres ecosystem best practices. Use when writing, reviewing, or optimizing R3F code. Triggers on tasks involving @react-three/fiber, @react-three/drei, zustand, @react-three/postprocessing, @react-three/rapier, or leva.

zebbern/claude-code-guide · 74 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens