What is cost-ledger?
cost-ledger is a Claude Code mod by FynnXland that cost ledger across all chats: after every answer it records the chat cost (as /cost), tokens per model and model calls made by other mods. /ledger shows today, 7 and 30 days, total,. It is listed under Cost & usage and has 3 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | FynnXland |
| Repository | FynnXland/fynn-mods |
| Popularity | 3 GitHub stars |
| Category | Cost & usage |
| Security | Low risk (100/100) |
| Rank | #799 of 5,272 Claude Code mods; #155 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-09 |
| Hooks | 10 events |
| Sees | classic hooks |
| Draws on | CommandOutput |
Is cost-ledger safe to install?
cost-ledger scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 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 no processes | Pass |
| Writes no files or config | Pass |
| 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 | |
$.session.repo | |
$.session.root | |
$.session.surfaces | |
$.session.usage | |
$.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 |
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 6 Claude Code mods on MCPMods.
- clawd-buddy: Animated pixel mascot Clawd above the prompt: reacts to Claude's work, waiting times, idle time, time of day, the mouse (Low risk)
- limit-bars: Bars for the 5-hour and weekly usage limits above the prompt, a ring showing how long the prompt cache stays warm, and a (Review before installing)
- quick-replies: Claude Code's own next-message suggestion as a button above Clawd; click it, type 1 in the empty prompt, or send just 1 (Low risk)
- sidekick: Checks your message before it is sent, by rules and, where worthwhile, briefly with Haiku 5.5 (Sonnet 5.5 writes rewritt (Low risk)
- worklist: To-do sidebar next to the chat: queue tasks, even while Claude is working. When Claude is clearly done, the to-do is che (Low risk)