Home / Claude Code mods / Security / budget-guard

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.

Updated 2026-10-16

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.

TypeClaude code mod
AuthorArunjay4213
RepositoryArunjay4213/claude-mods
Popularity9 GitHub stars
CategorySecurity
SecurityReview before installing (72/100)
Rank#535 of 5,272 Claude Code mods; #73 in Security
Last commit2026-10-16
Hooks6 events
Seesevery prompt, every tool call
Draws onnothing

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.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Doesn't read environment variablesPass
Watches every prompt or eventReview
Doesn't drive ClaudePass
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.clock.after
$.command.register
$.config.setchanges config
$.session.usage
$.store.getkeeps its own state
$.store.setkeeps its own state
$.turn.abortdrives Claude
$.ui.askdraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install budget-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/Arunjay4213/claude-mods
    claude plugin validate ./claude-mods/plugins/budget-guard
  3. 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)