cost-ledger

cost-ledger is a Claude Code mod by FynnXland that records what every chat costs, across projects and, if you like, across devices, so you can see where your usage goes. It only observes and makes no model calls.

Updated 2026-11-17

What is cost-ledger?

cost-ledger is a Claude Code mod by FynnXland that records what every chat costs, across projects and, if you like, across devices, so you can see where your usage goes. It only observes and makes no model calls. It is listed under Cost & usage and has 4 GitHub stars.

TypeClaude code mod
AuthorFynnXland
RepositoryFynnXland/fynn-mods
Popularity4 GitHub stars
CategoryCost & usage
SecurityReview before installing (76/100)
Rank#1,529 of 9,397 Claude Code mods; #253 in Cost & usage
LicenseMIT
Last commit2026-11-17
Hooks10 events
Seesclassic hooks
Draws onCommandOutput

Is cost-ledger safe to install?

cost-ledger scores 76/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config. It passed 6 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
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.config.list
$.config.setchanges config
$.fs.listreads files
$.fs.readreads files
$.fs.writewrites files
$.process.runruns processes
$.session.repo
$.session.root
$.session.surfaces
$.session.usage
$.state.set
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.keyskeeps its own state
$.store.setkeeps its own state
$.ui.askdraws interface
$.ui.logdraws 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/FynnXland/fynn-mods
    claude plugin validate ./fynn-mods/mods/cost-ledger
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add FynnXland/fynn-mods && claude plugin install cost-ledger@fynn-mods

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/FynnXland/fynn-mods/tree/main/mods/cost-ledger. Run claude plugin validate on it first and show me what it can access before you enable it.

More from FynnXland/fynn-mods

This repository has 8 Claude Code mods on MCPMods.

  • clawd-buddy: Clawd, an animated pixel mascot above the prompt. He reacts to what Claude is doing, rings a bell when a tool needs your (Review before installing)
  • limit-bars: Shows your 5-hour and weekly usage limits above the prompt, along with how long the prompt cache stays warm. Asks before (Review before installing)
  • prompt-deck: Saves prompts you send again and again and puts them as buttons above the prompt in the desktop app: one click sends. Se (Review before installing)
  • quick-replies: Turns Claude Code's suggested next message into a button above the prompt. Click it or type 1 to send it. (Review before installing)
  • sidekick: Checks your message before it is sent and offers a better way where there is one: a new chat with a handoff, a skill, a (Review before installing)
  • tint: A calm color set for the Claude Desktop app: Herbstglut, Rosé Pine, Nord, or colors from your own design system, in ligh (Review before installing)
  • tune-strip: Windows only. Shows the song playing in Spotify above the prompt, with cover and playback controls. No login, and nothin (Review before installing)