akanjilal.dev
Live demo

Budgets, rate limits, and a spend kill switch

This is the real middleware from llm-cost-guardrails, running in your browser through Pyodide. Send language model requests from different tenants and watch the controls respond. Each tenant has a budget and a rate limit of five requests a minute, and a global breaker trips if spend crosses two dollars a minute. Every gate fails closed. The demo runs with no server and no keys.

Booting the Python runtime in your browser…
Fire a request to begin.