Menu

1 / 2

I built a kill switch for runaway AI agents — Cost Firewall is MIT

DEV Community·sun evan·6 months ago
#ZcIzZ9Xr
#ai#opensource#agents#devops#firewall
Reading 0:00
15s threshold

The 3 AM incident

A few months ago one of my AI agents got stuck in a retry loop overnight and quietly burned through a month of credits. The provider dashboard told me about it the next morning. The support ticket got a polite "usage is final."

Provider dashboards are bills. I needed a brake.

What's actually missing in the stack

After looking at what exists, the gap was clear:

AI gateways (LiteLLM, Portkey) — great at routing, not designed to stop you.

Observability (Helicone, Langfuse) — great at explaining, after the fact.

Provider dashboards — billing history, not real-time control.

Nothing was sitting between "the agent is making a call" and "the agent has already burned $500."

Cost Firewall

Cost Firewall is a local plugin for the OpenClaw gateway.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.