Enterprise DNA Enterprise DNA
O Open Source Observability medium

budget-guard

by Community

A circuit breaker for your LLM API bill — hard budget caps + per-feature cost attribution for OpenAI & Anthropic.

OSS

budget-guard

Added 1 Oct 2026

#ai #anthropic #cost-management #llm #llmops #openai #rate-limiting #typescript

Overview

A circuit breaker for LLM API bills that enforces hard budget caps and provides per-feature cost attribution for OpenAI and Anthropic. Built in TypeScript, it sits in the codebase to stop spending before it exceeds limits.

Best for

Best for
Developers who need a lightweight, code-level guardrail against LLM API cost overruns

Use cases

  • Set hard monthly budget caps for LLM API usage
  • Attribute costs to specific features or internal projects
  • Prevent unexpected overspend on OpenAI and Anthropic calls

Notes

A circuit breaker for LLM API bills that enforces hard budget caps and provides per-feature cost attribution for OpenAI and Anthropic. Built in TypeScript, it sits in the codebase to stop spending before it exceeds limits.

3 stars on GitHub. Last updated 2026-09-30. Licensed MIT.

Use cases

  • Set hard monthly budget caps for LLM API usage
  • Attribute costs to specific features or internal projects
  • Prevent unexpected overspend on OpenAI and Anthropic calls

Pros

  • Simple, focused circuit breaker design
  • Supports both OpenAI and Anthropic
  • TypeScript codebase for easy integration

Cons

  • Low community traction at 3 stars
  • Limited feature set beyond budget capping
  • May require self-hosting and maintenance

Indexed from awesome-llmops and enriched against its public facts.

Pros

  • Simple, focused circuit breaker design
  • Supports both OpenAI and Anthropic
  • TypeScript codebase for easy integration

Cons

  • Low community traction at 3 stars
  • Limited feature set beyond budget capping
  • May require self-hosting and maintenance
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.