What is cost-visibility?
cost-visibility is a Claude Code mod by patitow that live cost, context, and plan-quota meters above the Claude Code prompt (Nerd Font required for icons). Type /spend for the detail pane. Optional cost guards via /spend caps on. It is listed under Security and has 2 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | patitow |
| Repository | patitow/claude-mod-cost-visibility |
| Popularity | 2 GitHub stars |
| Category | Security |
| Security | Review before installing (76/100) |
| Rank | #1,373 of 5,272 Claude Code mods; #150 in Security |
| License | MIT |
| Last commit | 2026-10-06 |
| Hooks | 9 events |
| Sees | every prompt, every tool call, subagent spawns |
| Draws on | AbovePrompt, Spinner, Pane |
Is cost-visibility safe to install?
cost-visibility scores 76/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; watches every prompt or event. 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 no processes | Pass |
| Writes files or config | Review |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| 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 |
|---|---|
$.command.register | |
$.config.set | changes config |
$.session.id | |
$.session.model | |
$.session.usage | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.close | draws interface |
$.ui.invalidate | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install cost-visibility?
- 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/patitow/claude-mod-cost-visibility claude plugin validate ./claude-mod-cost-visibility/plugins/cost-visibility
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add patitow/claude-mod-cost-visibility && claude plugin install cost-visibility@claude-mod-cost-visibility
Or ask Claude to set it up
Paste this into Claude Code and it installs cost-visibility for you:
Install the "cost-visibility" Claude Code mod from https://github.com/patitow/claude-mod-cost-visibility/tree/main/plugins/cost-visibility. Run claude plugin validate on it first and show me what it can access before you enable it.