AI Spend Guardian polls your Anthropic / OpenAI usage and alerts you BEFORE the bill arrives. Paid tier proxies your traffic and KILLS requests when cap is hit.
Install free CLI → See pricing"PSA: The string 'HERMES.md' in your git commit history silently routes Claude Code billing to extra usage — cost me $200" — r/ClaudeAI, 1471↑, May 2026
npx ai-spend-guardian setup
Local cron polls usage every 30 min. Slack/Discord/desktop alerts at 50/80/95/100% of cap. API key never leaves your machine. MIT licensed.
Multi-provider, SMS alerts, monthly projection, team sharing.
One-line change. Proxy KILLS request when cap exceeded. Insurance refund up to $200 if cap fails.
const client = new Anthropic({
baseURL: "https://proxy.spend-guardian.io", // ← was api.anthropic.com
apiKey: process.env.ANTHROPIC_API_KEY,
defaultHeaders: { "x-sg-token": process.env.SG_TOKEN }
});