claudemods

All Claude Code modsbobtat/claude-plugins

cost-ledger

A Claude Code mod in bobtat/claude-plugins

Tracks what Claude Code costs: session, calendar-week and calendar-month totals with the month's pace and week-over-week change, a /costs pane with a spend calendar, the most expensive prompts and what filled the context, plus prompt-cache awareness: a cache warm/cold countdown, warnings before a prompt, model switch or large write re-caches the context, a per-category breakdown priced at list or your own (e.g. AWS) rates, per-project and subagent splits, budget alerts, CSV export and a /costs doctor self-check, cache writes priced at the lifetime each response names, what a cold re-cache will cost before you resume, and an optional keep-alive that holds the cache warm while a session sits idle

cost-ledger reaches L2 (writes or runs) and passed claude plugin validate.

Install hint

/plugin install cost-ledger --marketplace bobtat/claude-plugins

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

L2 Writes or runsruns processes, writes files, drives Claude, reads files, reads env vars, reads mod state, persists state, draws

Validation

Passed

Listed under Prompt cache mods for Claude Code, Context and usage meters for Claude Code.

View the source on GitHub Back to the list

What the scan recorded

Observed events
classic hooks, every prompt, every tool call
Hooks
session.start, classic.SessionStart, classic.PreModelSwitch, classic.PostModelSwitch, session.end, prompt.submit, turn.start, turn.step, turn.complete, tool.call, session.measure, command.run {command=costs}, ui.render {component=AbovePrompt}, ui.render {component=Pane, requestId=cost-ledger}
API calls
$.clock.after, $.clock.every, $.clock.now, $.command.register, $.env.get, $.fs.list, $.fs.read, $.fs.write, $.model.fork, $.process.run, $.session.id, $.session.root, $.session.usage, $.state.get, $.state.set, $.store.delete, $.store.get, $.store.keys, $.store.set, $.ui.open, $.ui.resolve, $.ui.status, $.ui.toast
Validation
Passed
Scanned revision
4122fb788a48
Marketplace passed
bobtat-plugins

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. What a mod can access and how the scan works.

More from bobtat/claude-plugins

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/bobtat--claude-plugins--cost-ledger-reach.svg)](https://mods.aidojo.si/mods/bobtat--claude-plugins--cost-ledger/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/bobtat--claude-plugins--cost-ledger-validates.svg)](https://mods.aidojo.si/mods/bobtat--claude-plugins--cost-ledger/)