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.

Updated 2026-10-14

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.

TypeClaude code mod
Authornatsume-777
Repositorynatsume-777/claude-mods
Popularityno public popularity data yet
CategoryCost & usage
SecurityReview before installing (76/100)
Rank#4,106 of 5,272 Claude Code mods; #783 in Cost & usage
LicenseMIT
Last commit2026-10-14
Hooks9 events
SeesAgent calls, classic hooks, every prompt
Draws onPane, 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.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Doesn't read environment variablesPass
Watches every prompt or eventReview
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.agent.list
$.clock.after
$.clock.every
$.clock.now
$.clock.sleep
$.command.register
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.prompt.fillwrites the prompt box
$.prompt.read
$.session.id
$.session.root
$.session.turns
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.closedraws interface
$.ui.invalidatedraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.scrolldraws interface
$.ui.toastdraws interface

How do I install usage-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/natsume-777/claude-mods
    claude plugin validate ./claude-mods/plugins/usage-ledger
  3. 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)