token-ledger

token-ledger is a Claude Code mod by bully911210 that your 5-hour, weekly, context and cache-hit figures as one line above the prompt, a ? button that asks Haiku 5.5 for questions to ask next, and a /ledger pane with subagent shares.

Updated 2026-10-17

What is token-ledger?

token-ledger is a Claude Code mod by bully911210 that your 5-hour, weekly, context and cache-hit figures as one line above the prompt, a ? button that asks Haiku 5.5 for questions to ask next, and a /ledger pane with subagent shares. It is listed under Cost & usage and has 2 GitHub stars.

TypeClaude code mod
Authorbully911210
Repositorybully911210/claude-code-mods
Popularity2 GitHub stars
CategoryCost & usage
SecurityLow risk (80/100)
Rank#2,283 of 9,397 Claude Code mods; #383 in Cost & usage
LicenseMIT
Last commit2026-10-17
Hooks7 events
Seesevery tool call
Draws onAbovePrompt, Pane

Is token-ledger safe to install?

token-ledger scores 80/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 5 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 processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.agent.list
$.clock.every
$.clock.now
$.command.register
$.fs.ancestorsreads files
$.model.completedrives Claude
$.process.runruns processes
$.prompt.fillwrites the prompt box
$.prompt.read
$.session.id
$.session.messagesreads the transcript
$.session.model
$.session.root
$.session.usage
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.keyskeeps its own state
$.store.setkeeps its own state
$.ui.closedraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws 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/bully911210/claude-code-mods
    claude plugin validate ./claude-code-mods/token-ledger
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add bully911210/claude-code-mods && claude plugin install token-ledger@claude-code-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/bully911210/claude-code-mods/tree/main/token-ledger. Run claude plugin validate on it first and show me what it can access before you enable it.

More from bully911210/claude-code-mods

This repository has 3 Claude Code mods on MCPMods.

  • auto-docs: After each commit this session makes, reads the diff and updates README.md (or the docs you list) with small, safe edits (Review before installing)
  • next-steps: After each real turn, suggests 1-3 next prompts in a pane of their own: tick any number and insert them into the prompt (Low risk)