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.
| Type | Claude code mod |
|---|---|
| Author | FynnXland |
| Repository | FynnXland/fynn-mods |
| Popularity | 4 GitHub stars |
| Category | Cost & usage |
| Security | Review before installing (76/100) |
| Rank | #1,529 of 9,397 Claude Code mods; #253 in Cost & usage |
| License | MIT |
| Last commit | 2026-11-17 |
| Hooks | 10 events |
| Sees | classic hooks |
| Draws on | CommandOutput |
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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.config.list | |
$.config.set | changes config |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.session.repo | |
$.session.root | |
$.session.surfaces | |
$.session.usage | |
$.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.ask | draws interface |
$.ui.log | 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/FynnXland/fynn-mods claude plugin validate ./fynn-mods/mods/cost-ledger
- 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)