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,.

Updated 2026-10-09

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.

TypeClaude code mod
AuthorFynnXland
RepositoryFynnXland/fynn-mods
Popularity3 GitHub stars
CategoryCost & usage
SecurityLow risk (100/100)
Rank#799 of 5,272 Claude Code mods; #155 in Cost & usage
LicenseMIT
Last commit2026-10-09
Hooks10 events
Seesclassic hooks
Draws onCommandOutput

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.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
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
$.session.repo
$.session.root
$.session.surfaces
$.session.usage
$.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

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 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)