cost-ledger

by Fynn Hansen · ★ 3 · updated 2 days ago

ReskinsCommandsPromptvalidates

0

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, history by model (days or weeks), projects and the most expensive chats; /ledger limits shows the API value in the current 5-hour and weekly window and in your subscription month; /ledger help lists all commands...

install cost-ledger

Install

/plugin marketplace add FynnXland/fynn-mods
/plugin install cost-ledger@fynn-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startclassic.SessionStartclassic.UserPromptSubmitturn.completemodel.completemodel.forkmodel.classifysession.endcommand.runui.render
API calls
$.clock.now$.command.register$.session.repo$.session.root$.session.surfaces$.session.usage$.store.delete$.store.get$.store.keys$.store.set$.ui.ask$.ui.log
Draws
CommandOutput
Can see
classic hooks
Reach
level 0 of 3 persists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/FynnXland/fynn-mods
Path in repo
mods/cost-ledger
Source commit
4498aa6 the exact code the scan read
Author
Fynn Hansen @FynnXland
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from FynnXland/fynn-mods

clawd-buddy

FynnXland/fynn-mods

Animated pixel mascot Clawd above the prompt: reacts to Claude's work, waiting times, idle time, time of day, the mouse and a mood that builds up over the session.

★ 3BandsReskinsGuards

limit-bars

FynnXland/fynn-mods

Bars for the 5-hour and weekly usage limits above the prompt, a ring showing how long the prompt cache stays warm, and an optional ring for drive usage by file type. Cache guard: asks before an expensive cold send; /cache, /handoff, /keepwarm, /disk, /bars. Every part of the display can be hidden.

★ 3BandsReskinsCommands

quick-replies

FynnXland/fynn-mods

Claude Code's own next-message suggestion as a button above Clawd; click it, type 1 in the empty prompt, or send just 1 to send it. With /replies more on, a fork of the session fills up to four places in total. /replies help shows all commands and settings as a table.

★ 3BandsReskinsCommands

sidekick

FynnXland/fynn-mods

Checks your message before it is sent, by rules and, where worthwhile, briefly with Haiku 5.5 (Sonnet 5.5 writes rewritten versions in level auto): a hint line under your message or a question (new chat with handoff, a skill, a clearer version, or "wrong chat?" when the message belongs to another project). Names due maintenance once per chat (/skill-doctor, prompt-audit, consolidate-memory...

★ 3BandsReskinsGuards

worklist

FynnXland/fynn-mods

To-do sidebar next to the chat: queue tasks, even while Claude is working. When Claude is clearly done, the to-do is checked off and the next one starts; otherwise the list stops with a reason and buttons (Continue keeps the order). Runs by default, never pauses on its own. Survives /clear. History per project. /todo, /todos help

★ 3PanesReskinsGuards