claudemods

All Claude Code modsFynnXland/fynn-mods

cost-ledger

A Claude Code mod in FynnXland/fynn-mods

Cost ledger across all chats: after every answer it records the chat cost (as /cost), tokens per model and model calls made by other mods. /ledger shows today, 7 and 30 days, total, history by model (days or weeks), projects and the most expensive chats; /ledger limits shows the API value in the current 5-hour and weekly window and in your subscription month; /ledger help lists all commands, the current state and your settings. Observer only, no model calls.

cost-ledger reaches L0 (draws and remembers) and passed claude plugin validate on Claude Code 2.1.302.

Install hint

/plugin install cost-ledger --marketplace FynnXland/fynn-mods

From the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.

Access

L0 Draws & rememberspersists state, draws

Validation

Passed on Claude Code 2.1.302

View the source on GitHub Back to the list

What the scan recorded

Observed events
classic hooks
Hooks
session.start, classic.SessionStart, classic.UserPromptSubmit, turn.complete, model.complete, model.fork, model.classify, session.end, command.run {command=ledger}, ui.render {component=CommandOutput, props has {command=ledger}
API calls
$.clock.now, $.command.register, $.session.repo, $.session.root, $.session.surfaces, $.session.usage, $.store.delete, $.store.get, $.store.keys, $.store.set, $.ui.ask, $.ui.log
Validation on 2.1.302
Passed
Scanned revision
4498aa6ce4b1
Marketplace passed
fynn-mods

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. How the scan works.

More from FynnXland/fynn-mods

Badge for your README

Reach badge for cost-ledger Validation badge for cost-ledger

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/FynnXland--fynn-mods--cost-ledger-reach.svg)](https://mods.aidojo.si/mods/FynnXland--fynn-mods--cost-ledger/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/FynnXland--fynn-mods--cost-ledger-validates.svg)](https://mods.aidojo.si/mods/FynnXland--fynn-mods--cost-ledger/)