What is cost-ledger?
cost-ledger is a Claude Code mod by bobtat that 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. It is listed under Cost & usage and has 2 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | bobtat |
| Repository | bobtat/claude-plugins |
| Popularity | 2 GitHub stars |
| Category | Cost & usage |
| Security | High risk (48/100) |
| Rank | #1,119 of 5,272 Claude Code mods; #200 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-14 |
| Hooks | 13 events |
| Sees | classic hooks, every prompt, every tool call |
| Draws on | AbovePrompt, Pane |
Is cost-ledger safe to install?
cost-ledger scores 48/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 3 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 processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.model.fork | drives Claude |
$.process.run | runs processes |
$.session.id | |
$.session.root | |
$.session.usage | |
$.state.get | |
$.state.set | |
$.store.delete | keeps its own state |
$.store.get | keeps its own state |
$.store.keys | keeps its own state |
$.store.set | keeps its own state |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install cost-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/bobtat/claude-plugins claude plugin validate ./claude-plugins/plugins/cost-ledger
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add bobtat/claude-plugins && claude plugin install cost-ledger@bobtat-plugins
Or ask Claude to set it up
Paste this into Claude Code and it installs cost-ledger for you:
Install the "cost-ledger" Claude Code mod from https://github.com/bobtat/claude-plugins/tree/main/plugins/cost-ledger. Run claude plugin validate on it first and show me what it can access before you enable it.
More from bobtat/claude-plugins
This repository has 2 Claude Code mods on MCPMods.
- subagent-tree: A live /agents-tree pane showing the session's subagents as a tree — status, how long each has run, its tool calls and s (Low risk)