Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By SkinyMonkeyv1.0.0
Monitors token usage per 5-hour billing window and pauses sessions when approaching the limit. Works standalone and integrates with Ralph Loop.
You run one by typing its /name in Claude Code.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that monitors token usage per 5-hour billing window and pauses sessions when approaching the limit.
claude plugin add /path/to/usage-guard
Or clone and register:
git clone [email protected]:SkinyMonkey/claude-usage-guard.git
claude plugin add ./claude-usage-guard
Default budget is $40.00 per 5-hour window (at API pricing rates). This was calibrated against a Max plan session where $16.92 at API pricing corresponded to 40% usage in the Claude UI.
Adjust based on when you actually get rate-limited on your plan:
/usage-configure 50.00
Or edit ~/.claude/usage-guard-config.json directly:
{
"max_cost_per_window_usd": 50.00,
"warning_threshold_pct": 80,
"block_threshold_pct": 95
}
/usage-status — show current window spend, remaining time, and status/usage-configure <amount> — set the max cost per windowpermissionDecision: deny which blocks the tool call~/.claude/projects/ are parsed incrementally using byte offsets~/.claude/usage-guard-cache.json, resets when the 5h window expiresThe plugin estimates cost using published Anthropic API pricing. Since Max/Pro plans have different internal accounting, the dollar amounts won't match your actual plan limits exactly. Use them as a relative measure.
Known data point (Max 5x plan): $16.92 at API pricing ≈ 40% usage in Claude UI → ~$42 = 100%.
The default of $40 is conservative. Adjust based on your experience:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (skinymonkey/claude-usage-guard) — no native marketplace selected
npx claudepluginhub p/skinymonkey-usage-guardPlugins from other owners that cover similar ground