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.

Updated 2026-10-14

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.

TypeClaude code mod
Authorbobtat
Repositorybobtat/claude-plugins
Popularity2 GitHub stars
CategoryCost & usage
SecurityHigh risk (48/100)
Rank#1,119 of 5,272 Claude Code mods; #200 in Cost & usage
LicenseMIT
Last commit2026-10-14
Hooks13 events
Seesclassic hooks, every prompt, every tool call
Draws onAbovePrompt, 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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.listreads files
$.fs.readreads files
$.fs.writewrites files
$.model.forkdrives Claude
$.process.runruns processes
$.session.id
$.session.root
$.session.usage
$.state.get
$.state.set
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.keyskeeps its own state
$.store.setkeeps its own state
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install cost-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/bobtat/claude-plugins
    claude plugin validate ./claude-plugins/plugins/cost-ledger
  3. 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)