What is usage-guard?
usage-guard is a Claude Code mod by Marnel8 that asks before a large or token-heavy prompt is sent, showing your 5-hour and weekly usage and an estimate of what it may cost. It is listed under Security and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | Marnel8 |
| Repository | Marnel8/claude-mods- |
| Popularity | no public popularity data yet |
| Category | Security |
| Security | Review before installing (76/100) |
| Rank | #7,231 of 9,397 Claude Code mods; #755 in Security |
| Last commit | 2026-10-11 |
| Hooks | 7 events |
| Sees | every prompt |
| Draws on | CommandOutput, AbovePrompt |
Is usage-guard safe to install?
usage-guard scores 76/100 on the MCPMods security check: Review before installing. Things to review: watches every prompt or event. It passed 4 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 |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.prompt.fill | writes the prompt box |
$.prompt.submit | drives Claude |
$.session.usage | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.resolve | draws interface |
How do I install usage-guard?
- 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/Marnel8/claude-mods- claude plugin validate ./claude-mods-/mods/usage-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add Marnel8/claude-mods- && claude plugin install usage-guard@local-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs usage-guard for you:
Install the "usage-guard" Claude Code mod from https://github.com/Marnel8/claude-mods-/tree/main/mods/usage-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from Marnel8/claude-mods-
This repository has 2 Claude Code mods on MCPMods.
- model-badge: Shows the model in use above the prompt, colored by family: Sonnet in blues, Opus and the latest model in reds. (Low risk)