Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

token-usage-dashboard

Latest version: v1.0.30

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: pengly
14 Stars
3 Forks
23 Versions
1.5K Downloads
TypeScript Repo language

Scan summary

token-usage-dashboard was last scanned on 29 Nov 2026 at version 1.0.30. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 23 versions; the latest 3 were published within 4 days (26–29 Nov 2026).
  • Findings: No rules fired in version 1.0.30.
  • Downloads: 1,517 downloads.

Versions

23 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.30 LATEST 29 Nov 2026 No rules fired
1.0.29 29 Nov 2026 No rules fired
1.0.27 26 Nov 2026 No rules fired
1.0.26 19 Nov 2026 Not shown
1.0.25 12 Nov 2026 Not shown

No rules fired in 1.0.30

Findings

Findings for v1.0.30. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.30; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.


About

Ever wondered where all your tokens are going? Or how much your AI usage is valued at? This usage dashboard reads your local Claude Code, Codex and OpenCode transcripts and builds a beautiful dashboard breaking down your full historical usage.

Everything happens locally, so your transcripts never leave your device. Stats are cached in a local SQLite DB, so that you get full history even after Claude and Codex have pruned old transcripts. Cost estimates come from current published API rates.

The dashboard shows:

  • a calendar heatmap of the past year
  • daily totals, stacked by tool or model
  • the split between fresh input, output, cache reads and cache writes
  • which projects, AI providers and models your tokens went to
  • Anthropic and OpenAI 5-hour and 7-day windows
  • your recent sessions, with full token usage breakdown

Usage

npx token-usage-dashboard

That's it. It finds your transcripts, reads them, and opens on localhost:4747. Install it globally and the command is just aiusage. Nothing leaves the machine except the one call to Anthropic for your plan windows, which you can turn off in settings.

Flag What it does
-p, --port <n> Port to listen on, or the next free one after it
-h, --host <ip> Address to bind, 127.0.0.1 by default
--db <path> Where to keep the history
--open / --no-open Whether to open a browser

Configuration

Most of it lives behind the gear icon: theme, default range, how often to rescan, whether to ask Anthropic for your plan windows, and price overrides for any model we've got wrong or don't know.

Paths are environment variables, since they're needed before the app starts. See .env.example for the full list. The ones you'll actually want are AIUSAGE_DB, AIUSAGE_CLAUDE_DIR and AIUSAGE_CODEX_DIR.


Supported tools

Tool Where it reads
Claude Code ~/.claude/projects/**/*.jsonl, subagent transcripts included
Codex ~/.codex/sessions/**/*.jsonl
OpenCode ~/.local/share/opencode/storage/message

Adding another is one file in src/lib/server/sources/. If a tool writes token counts somewhere we can read, it can go in - open an issue with a sample and we'll have a look.


Deployment

Option 1: Docker

The image is on DockerHub (notaflightrisk/token-usage-dashboard) and GHCR. Mount the directories you want read, plus somewhere to keep the database:

docker run -p 127.0.0.1:8080:8080 \
  -v ~/.claude:/home/node/.claude:ro \
  -v ~/.codex:/home/node/.codex:ro \
  -v token-usage:/data \
  notaflightrisk/token-usage-dashboard

There's a compose file in docker/ if you'd rather. The container has to bind 0.0.0.0 internally, so publish the port to localhost like that unless something in front of it is checking who's asking.

Option 2: A local service

There's a systemd user unit in scripts/. scripts/install.sh fills in the paths and starts it, so it comes back after a reboot:

./scripts/install.sh 4747
Option 3: From a release

Grab the tarball from releases, then npm ci --omit=dev && npm start.

Option 4: From source

Follow Development below, then npm run build && npm start.


Development

You'll need Node 22.17 or newer, plus Git. It's a SvelteKit app and the build is self-contained so there's no runtime dependencies at all.

git clone git@github.com:NotAFlightRisk/token-usage-dashboard.git
cd token-usage-dashboard
npm install
npm run dev

The dev server is then on localhost:5173. The other scripts you'll want are npm run check (types), npm test (tests) and npm run format (prettier).


OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm token-usage-dashboard

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229