Home / Claude Code mods / Security / usage-guard

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.

Updated 2026-10-11

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.

TypeClaude code mod
AuthorMarnel8
RepositoryMarnel8/claude-mods-
Popularityno public popularity data yet
CategorySecurity
SecurityReview before installing (76/100)
Rank#7,231 of 9,397 Claude Code mods; #755 in Security
Last commit2026-10-11
Hooks7 events
Seesevery prompt
Draws onCommandOutput, 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.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.prompt.fillwrites the prompt box
$.prompt.submitdrives Claude
$.session.usage
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.resolvedraws interface

How do I install usage-guard?

  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/Marnel8/claude-mods-
    claude plugin validate ./claude-mods-/mods/usage-guard
  3. 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)