10 karma · joined Feb 27, 2026 (9mo ago) · 11 submissions
2.
Show HN: I built a BYOK AI gateway after a 100x Cloudflare KV cost mistake(qzira.com ↗)
1 points · by qzira · 8mo ago · discuss
comment 8mo ago · link · parent
comment 8mo ago · link · parent
comment 8mo ago · link · parent
comment 8mo ago · link · parent
comment 8mo ago · link · parent
With Claude Code specifically, I've noticed that the longer it runs autonomously, the more cost anxiety creeps in. You stop thinking about the problem and start watching the token counter.
What finally let me stop worrying and just build again was building a hard budget limit outside the app — not just alerts, but an actual kill switch.
Glad you found the spark. It's worth protecting.
comment 9mo ago · link · parent
Claude Code can generate surprisingly large API bills when running autonomously overnight. I ended up building a separate gateway layer specifically to enforce budget caps before requests hit the provider — not just alerts, but hard stops.
Knowing that it can't exceed your budget regardless of what it picks makes the 'what tools does it choose' question a lot less stressful.
comment 9mo ago · link · parent
The fear of a 3am runaway was real enough that I ended up building a separate gateway layer just to have a kill switch that lives outside the application entirely.
"Build vs Buy" is the right framing, but for cost enforcement and kill switches specifically — building it inside the app is exactly the wrong layer.