LLMBrake
llmbrake.com
Per-customer dollar caps for AI apps: monthly budgets, auto-downgrade to cheaper models, hard stop at the cap.
- Pricing
- Open source
- Published
- Nov 6, 2026
Next steps
What it does
LLMBrake is an MIT-licensed TypeScript library (npm: llmbrake, early 0.1.0) that wraps OpenAI-compatible chat.completions.create calls. It prices each call in USD from provider token usage and keeps a running monthly total per customer. Near the budget it swaps in a cheaper model; at the budget it throws BudgetExceededError before the request reaches the provider. It is not a proxy: it runs inside your app with your keys, stores only metadata (customer ID, plan, feature, model, tokens, cost, timestamps), never prompts or completions, and has zero runtime dependencies (ESM, Node 18+). Site: llmbrake.com.

Use cases
- Enforce per-tenant AI spend caps in a SaaS product
- Auto-switch heavy users to a cheaper model near their limit
- Fail closed before an OpenAI/Anthropic call when budget is exhausted
Frequently asked questions
- Is LLMBrake a proxy?
- No. It runs inside your app and calls the provider with your own keys.
- What does it store?
- Only metadata such as customer ID, plan, model, tokens, cost and timestamps - not prompts or completions.
- What happens at the budget?
- It throws BudgetExceededError before the request reaches the provider.
- License?
- MIT; early version 0.1.0 as of the README.