Skip to content
SlashClone

Consumption guardrails

@agentcosts/consumption-guardrails

Set and check consumption guardrails for an AI product: per-customer daily and monthly spend caps, month-end forecasts, spend spike rules, runaway agent runs, and failure rate spikes, plus a runbook for what to do when each alert fires. Runs on usage files; exit code 2 on critical alerts for cron or CI.

SkillDevOpsv1.0.0 (latest)Tested
Activity
New: be the first to try it

What this kit declares, in the same words the CLI shows before you install. On Claude Code the CLI turns these into permission rules, so the agent stops anything undeclared.

  • Command

    Runs the command: node scripts/guardrails.mjs (with any arguments, without asking)

  • Reads

    Reads files in ./data/**

  • Writes

    Writes files in ./data/guardrails.json

  • Writes

    Writes files in ./out/guardrails*

Works with
claude-code
License
MIT