token-ledger

token-ledger is a Claude Code mod by Arunjay4213 that 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,.

Updated 2026-10-16

What is token-ledger?

token-ledger is a Claude Code mod by Arunjay4213 that 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,. It is listed under Cost & usage and has 9 GitHub stars.

TypeClaude code mod
AuthorArunjay4213
RepositoryArunjay4213/claude-mods
Popularity9 GitHub stars
CategoryCost & usage
SecurityLow risk (96/100)
Rank#538 of 5,272 Claude Code mods; #97 in Cost & usage
Last commit2026-10-16
Hooks5 events
Seesonly the events it hooks
Draws onPane

Is token-ledger safe to install?

token-ledger scores 96/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 7 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.command.register
$.session.id
$.session.usage
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.closedraws interface
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface

How do I install token-ledger?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/Arunjay4213/claude-mods
    claude plugin validate ./claude-mods/plugins/token-ledger
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add Arunjay4213/claude-mods && claude plugin install token-ledger@claude-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs token-ledger for you:

Install the "token-ledger" Claude Code mod from https://github.com/Arunjay4213/claude-mods/tree/main/plugins/token-ledger. Run claude plugin validate on it first and show me what it can access before you enable it.

More from Arunjay4213/claude-mods

This repository has 4 Claude Code mods on MCPMods.

  • budget-guard: Stops a session before it runs past a budget. Three figures are guarded, each with a limit you set: the session cost in (Review before installing)
  • context-lens: A live /context: a pinned line under the prompt with the window fill and the growth per turn, and /context-lens for a pa (Low risk)
  • quota-meter: Shows the subscription plan limits - the 5-hour window, the 7-day window and a gateway spend limit - as a pinned status (Low risk)