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.
| Type | Claude code mod |
|---|---|
| Author | bully911210 |
| Repository | bully911210/claude-code-mods |
| Popularity | 2 GitHub stars |
| Category | Cost & usage |
| Security | Low risk (80/100) |
| Rank | #2,283 of 9,397 Claude Code mods; #383 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-17 |
| Hooks | 7 events |
| Sees | every tool call |
| Draws on | AbovePrompt, 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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.clock.every | |
$.clock.now | |
$.command.register | |
$.fs.ancestors | reads files |
$.model.complete | drives Claude |
$.process.run | runs processes |
$.prompt.fill | writes the prompt box |
$.prompt.read | |
$.session.id | |
$.session.messages | reads the transcript |
$.session.model | |
$.session.root | |
$.session.usage | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.keys | keeps its own state |
$.store.set | keeps its own state |
$.ui.close | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install token-ledger?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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)