You launch your product, a few customers start using it, and then you realize...

How do you know which tenant is spending your OpenAI/Anthropic/Gemini budget?

And even if you know, how do you stop them before they burn through hundreds of dollars?

I looked around, and most tools focus on observability—they tell you what happened after the API call. I wanted something that could also enforce spending limits before the next request goes out.

So over the past few weeks, I built token-limit, a Python SDK that: