llm-spend-guard
Node.js tool to enforce real-time token budgets and spending limits for LLM API calls.
0 members list llm-spend-guard, unchanged over the last 12 weeks, data as of 11 November 2026
Members who list llm-spend-guard in their Stack, by week.
Members who list llm-spend-guard
Be the first to add llm-spend-guard
Nobody on Stackness runs llm-spend-guard yet. Add it to your stack and you're the first member running it.
About llm-spend-guard
llm-spend-guard is a Node.js tool for enforcing real-time token budgets and spending limits on large language model API calls. It supports OpenAI, Anthropic Claude, and Google Gemini, allowing developers to prevent runaway costs by blocking requests before they reach the API if they would exceed set budgets. The tool offers multi-level budget enforcement at global, per-user, per-session, and per-route scopes, and includes features like intelligent prompt truncation to fit within remaining budget constraints rather than simply rejecting oversized requests.
The tool is developed by Ali Raza and released under the MIT License. It is written in TypeScript and designed as a lightweight library that wraps existing SDK clients with minimal setup required. The project includes support for Redis storage and middleware for Express and Next.js frameworks, positioning it as production-ready for Node.js applications that need cost management for LLM API usage.
Checked 20 November 2026.
Nobody on Stackness runs llm-spend-guard yet.
Sign up and add it