What is usage-ledger?
usage-ledger is a Claude Code mod by natsume-777 that shows where the session's tokens go and when a fresh session would be cheaper. It is listed under Cost & usage and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | natsume-777 |
| Repository | natsume-777/claude-mods |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | Review before installing (76/100) |
| Rank | #4,106 of 5,272 Claude Code mods; #783 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-14 |
| Hooks | 9 events |
| Sees | Agent calls, classic hooks, every prompt |
| Draws on | Pane, AbovePrompt |
Is usage-ledger safe to install?
usage-ledger scores 76/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; watches every prompt or event. It passed 6 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 no processes | Pass |
| Writes files or config | Review |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.clock.sleep | |
$.command.register | |
$.fs.read | reads files |
$.fs.stat | reads files |
$.fs.write | writes files |
$.prompt.fill | writes the prompt box |
$.prompt.read | |
$.session.id | |
$.session.root | |
$.session.turns | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.close | draws interface |
$.ui.invalidate | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.scroll | draws interface |
$.ui.toast | draws interface |
How do I install usage-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/natsume-777/claude-mods claude plugin validate ./claude-mods/plugins/usage-ledger
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add natsume-777/claude-mods && claude plugin install usage-ledger@codingway-claude-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs usage-ledger for you:
Install the "usage-ledger" Claude Code mod from https://github.com/natsume-777/claude-mods/tree/main/plugins/usage-ledger. Run claude plugin validate on it first and show me what it can access before you enable it.
More from natsume-777/claude-mods
This repository has 5 Claude Code mods on MCPMods.
- cache-timer: Shows how long the prompt cache has left, next to the model name in the footer (Low risk)
- ui-sampler: A labelled catalog of every place a mod can draw, every API it can call and every value it can read (High risk)
- usage-band: Shows context, 5-hour and weekly limit usage in the band above the prompt (Review before installing)
- whiteboard: A whiteboard Claude writes to: titled Markdown cards (steps, running jobs, links) that stay put instead of scrolling awa (Low risk)