claudemods

All Claude Code modsArunjay4213/claude-mods

token-ledger

A Claude Code mod in Arunjay4213/claude-mods

A per-turn cost and token ledger: a pinned status line with the session cost, the last turn's tokens and the cache hit ratio, and /ledger for a table of the recent turns with their model, tokens, cache reads and writes, duration and cost.

token-ledger reaches L0 (draws and remembers) and passed claude plugin validate on Claude Code 2.1.302.

Install hint

/plugin install token-ledger --marketplace Arunjay4213/claude-mods

From the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.

Access

L0 Draws & rememberspersists state, draws

Validation

Passed on Claude Code 2.1.302

View the source on GitHub Back to the list

What the scan recorded

Observed events
Only what it hooks
Hooks
session.start, turn.complete, command.run {command=clear}, command.run {command=resume}, command.run {command=ledger}, ui.close {id=ledger}, ui.render {component=Pane}
API calls
$.command.register, $.session.id, $.session.usage, $.store.get, $.store.set, $.ui.close, $.ui.invalidate, $.ui.log, $.ui.open, $.ui.resolve, $.ui.status
Validation on 2.1.302
Passed
Scanned revision
6de1b69a555a
Marketplace passed
claude-mods

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. How the scan works.

More from Arunjay4213/claude-mods

Badge for your README

Reach badge for token-ledger Validation badge for token-ledger

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/Arunjay4213--claude-mods--token-ledger-reach.svg)](https://mods.aidojo.si/mods/Arunjay4213--claude-mods--token-ledger/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/Arunjay4213--claude-mods--token-ledger-validates.svg)](https://mods.aidojo.si/mods/Arunjay4213--claude-mods--token-ledger/)