token-cost

by Martijn · ★ 1 · updated 15 days ago

Status lineCommandsvalidates

0

See what your Claude Code usage would cost at API prices: live in the status line, and per day, month, session and model with /token-cost.

install token-cost

Install

/plugin marketplace add martijnwip/token-cost
/plugin install token-cost@token-cost

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startturn.completecommand.run
API calls
$.clock.now$.command.register$.env.get$.fs.list$.fs.read$.process.spawn$.session.usage$.settings.read$.ui.status
Reach
level 2 of 3 runs processesreads filesreads env varsreads settingsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/martijnwip/token-cost
Path in repo
repository root
Source commit
c91352f the exact code the scan read
Author
Martijn @martijnwip
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.