{"repo":"Ruthwik000/tokenfirewall","free":true,"listed":false,"github":"https://github.com/Ruthwik000/tokenfirewall","clone":"git clone https://github.com/Ruthwik000/tokenfirewall.git","description":"Scalable LLM cost enforcement middleware for Node.js with budget protection and multi-provider support","language":"TypeScript","stars":26,"topics":["anthropic","budget","cost-control","gemini","llm","middleware","nodejs","openai","typescript","ai-cost-management"],"license":"MIT","category":"ai-agents","readme_excerpt":"TokenFirewall Enterprise-grade LLM cost enforcement middleware for Node.js with automatic budget protection, intelligent model routing, and comprehensive multi-provider support. Overview TokenFirewall is a production-ready middleware that automatically tracks and enforces budget limits for Large Language Model (LLM) API calls. It provides transparent cost monitoring, prevents budget overruns, intelligent model routing with automatic failover, and supports multiple providers through a unified interface. Key Features - Never Exceed Your Budget - Automatically blocks API calls when spending limits are reached, preventing surprise bills - Zero Code Changes Required - Drop-in middleware that works with any LLM API without modifying your existing code - Automatic Failover - Intelligent router switches to backup models when primary fails, keeping your app running - Real-time Cost Tracking - See exactly how much each API call costs based on actual token usage - Multi-Provider Support - Works with OpenAI, Anthropic, Gemini, Grok, Kimi, and any custom LLM provider - Custom Model Support - Register your own models with custom pricing and context limits at runtime - Production Ready - Battle-tested with comprehensive error handling and edge case coverage - TypeScript Native - Full type safety with included definitions What's New in v2.0.0 - Cross-Provider Fallback - Automatically switch between OpenAI, Anthropic, and Gemini when APIs fail - Intelligent Router - Automatic failover to back","default_branch":null,"files":null,"tree":[],"storefront":"/r/Ruthwik000","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Ruthwik000/tokenfirewall/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}