All shelves / Mods / Usage
cost-ledger
By FynnXland
cost-ledger is a Claude Code usage mod by FynnXland.
Keeps a ledger of what every chat cost, plus other mods' model calls, and draws /ledger: today, 7 and 30 days, projects, top chats, models, and plan limits.
Draws
Install
The marketplace name is fynn-mods.
claude plugin marketplace add FynnXland/fynn-mods claude plugin install cost-ledger@fynn-mods
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.7.0
- License
- MIT
- Repo stars
- 4
- Last change
- 2026-10-19
What it can reach
- Draws in the session
- Reads usage or context figures
Requires Claude Code v2.1.271 or later; tested with v2.1.295. Inside a session: /plugin marketplace add FynnXland/fynn-mods and /plugin install cost-ledger@fynn-mods. It loads in the next session, or after /reload-plugins. Set your plan and billing day once with /ledger plan, since Claude Code does not tell mods your plan. Amounts are API values; on a subscription they count toward your limits, not a bill. /ledger sync shares the ledger between computers through a folder you name.
The marketplace, fynn-mods, holds FynnXland's six mods; each installs on its own. Spend across all your chats is why this page files it under usage. leaks ranks the avoidable spend in the last 7 days of transcripts. cost-meter draws session cost and the plan windows on the status line, with an optional budget. This one books each chat's /cost after every answer, adds the model calls other mods make, and splits the total by day or week, project, chat, and model, with each 5-hour window's API value and your month against the plan price. It touches files only in the sync folder you set. In the source, /ledger is a CommandOutput render.
Demo

What it hooks into
session.startWhen a session startsclassic.SessionStartA Claude Code eventclassic.UserPromptSubmitA Claude Code eventturn.completeWhen a turn endsmodel.completeA Claude Code eventmodel.forkA Claude Code eventmodel.classifyA Claude Code eventsession.endWhen a session endscommand.runWhen you run its slash command/ledgerui.renderDraws into the session
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/ledger
Files
The author's README and source, 8 files. They load when you open them.
Facts
- Author
- FynnXland
- Category
- Usage
- Marketplace
- fynn-mods
- Folder
- mods/cost-ledger
- Version
- 0.7.0
- License
- MIT
- Repo stars
- 4
- Last change
- 2026-10-19
- Language
- TypeScript
- Files
- 11