Costile – open-source proxy, blocks AI API requests when budget is hit
Show HN: Costile – open-source proxy, blocks AI API requests when budget is hit
Operating in show hn launch, Costile – open-source proxy, blocks AI API requests when budget is hit operates.
Profile
I got a surprise bill. Nothing catastrophic, but enough to make me dig into why — an agent had hit a retry loop and kept calling the API for hours. There's no way to set a hard cap on the Anthropic or OpenAI APIs. You can get an email after the fact, but nothing that actually stops requests mid-flight.So I built a proxy. You swap one environment variable, it routes through Costile instead of calling Anthropic directly, and when you hit your daily or monthly limit it blocks further requests immediately. No SDK changes, no code refactor. Took me about a weekend. Currently supports Anthropic, with OpenAI next.It's MIT licensed and self-hostable in about 5 minutes. Try the demo at costile.com if
The company sits in the show hn launch segment, where it competes on its core product or service.
Its current recorded stage is Show HN launch.
| Sector | Show HN launch |
|---|---|
| Stage | Show HN launch |
Website: costile.com
Browse related
Create a free account