What is budget-guard?
budget-guard is a Claude Code mod by Arunjay4213 that stops a session before it runs past a budget. Three figures are guarded, each with a limit you set: the session cost in dollars, the 5-hour plan window and the 7-day plan window. It says. It is listed under Security and has 9 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | Arunjay4213 |
| Repository | Arunjay4213/claude-mods |
| Popularity | 9 GitHub stars |
| Category | Security |
| Security | Review before installing (72/100) |
| Rank | #535 of 5,272 Claude Code mods; #73 in Security |
| Last commit | 2026-10-16 |
| Hooks | 6 events |
| Sees | every prompt, every tool call |
| Draws on | nothing |
Is budget-guard safe to install?
budget-guard scores 72/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; watches every prompt or event. It passed 5 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 |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.command.register | |
$.config.set | changes config |
$.session.usage | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.turn.abort | drives Claude |
$.ui.ask | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install budget-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/Arunjay4213/claude-mods claude plugin validate ./claude-mods/plugins/budget-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add Arunjay4213/claude-mods && claude plugin install budget-guard@claude-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs budget-guard for you:
Install the "budget-guard" Claude Code mod from https://github.com/Arunjay4213/claude-mods/tree/main/plugins/budget-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from Arunjay4213/claude-mods
This repository has 4 Claude Code mods on MCPMods.
- context-lens: A live /context: a pinned line under the prompt with the window fill and the growth per turn, and /context-lens for a pa (Low risk)
- quota-meter: Shows the subscription plan limits - the 5-hour window, the 7-day window and a gateway spend limit - as a pinned status (Low risk)
- token-ledger: A per-turn cost and token ledger: a pinned status line with the session cost, the last turn's tokens and the cache hit r (Low risk)