<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: AwxGlobal</title>
    <description>The latest articles on DEV Community by AwxGlobal (@awxglobal).</description>
    <link>https://dev.to/awxglobal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3907767%2Ffd1b18a3-e608-4663-901b-77f3b2e9c47c.png</url>
      <title>DEV Community: AwxGlobal</title>
      <link>https://dev.to/awxglobal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/awxglobal"/>
    <language>en</language>
    <item>
      <title>I woke up to a $400 OpenAI bill. Here's what I built to make sure it never happens again.</title>
      <dc:creator>AwxGlobal</dc:creator>
      <pubDate>Fri, 01 May 2026 15:52:35 +0000</pubDate>
      <link>https://dev.to/awxglobal/i-woke-up-to-a-400-openai-bill-heres-what-i-built-to-make-sure-it-never-happens-again-5a8b</link>
      <guid>https://dev.to/awxglobal/i-woke-up-to-a-400-openai-bill-heres-what-i-built-to-make-sure-it-never-happens-again-5a8b</guid>
      <description>&lt;p&gt;It was 2am when the email came in.&lt;/p&gt;

&lt;p&gt;"Your OpenAI usage has exceeded $400."&lt;/p&gt;

&lt;p&gt;An agent I'd been testing had hit a loop. It kept retrying a failed call, over and over, for six hours while I slept. By the time I saw it, the damage was done.&lt;/p&gt;

&lt;p&gt;I went looking for a tool that would let me set a hard daily limit per agent — something that would block the call before it ever reached OpenAI. I couldn't find one.&lt;/p&gt;

&lt;p&gt;So I built it.&lt;/p&gt;

&lt;p&gt;The problem with AI agents and money&lt;/p&gt;

&lt;p&gt;When you build with AI APIs, you're essentially writing a blank check. Your agent makes calls, OpenAI charges you, and you find out later. There's no circuit breaker. There's no per-agent budget. There's no "stop after $10."&lt;/p&gt;

&lt;p&gt;Soft limits and billing alerts exist, but they notify you after the money is gone.&lt;/p&gt;

&lt;p&gt;What I needed was a hard block. Something that intercepts the call and returns an error before it reaches the API.&lt;/p&gt;

&lt;p&gt;What AWX Shredder does&lt;/p&gt;

&lt;p&gt;It's a proxy. Instead of your agent calling api.openai.com directly, it calls your AWX endpoint. AWX checks the agent's daily budget, and either forwards the call or blocks it with a 402.&lt;/p&gt;

&lt;p&gt;Setup is two lines:&lt;/p&gt;

&lt;p&gt;OPENAI_BASE_URL=&lt;a href="https://awx-shredder.fly.dev/proxy/v1" rel="noopener noreferrer"&gt;https://awx-shredder.fly.dev/proxy/v1&lt;/a&gt;&lt;br&gt;
OPENAI_API_KEY=your_awx_key&lt;br&gt;
You create agents in a dashboard, set a daily budget per agent, and that's it. Every call is logged. When an agent hits its limit, calls stop — not after, not eventually, right then.&lt;/p&gt;

&lt;p&gt;Why per-agent matters&lt;/p&gt;

&lt;p&gt;Most billing tools are org-level. You get one limit for everything.&lt;/p&gt;

&lt;p&gt;But in a real system you might have five agents running at once — a researcher, a writer, a code reviewer, a scraper, a scheduler. If one goes rogue, you want to block that agent, not your whole org.&lt;/p&gt;

&lt;p&gt;AWX gives each agent its own daily budget. One agent burning money doesn't affect the others.&lt;/p&gt;

&lt;p&gt;It works with Claude too&lt;/p&gt;

&lt;p&gt;Not just OpenAI. Point your Anthropic client at /proxy/v1/messages and the same budget enforcement applies.&lt;/p&gt;

&lt;p&gt;Try it&lt;/p&gt;

&lt;p&gt;It's free to start: awx-shredder.fly.dev&lt;/p&gt;

&lt;p&gt;If you've ever had an unexpected AI bill, or you're building agents and want to sleep at night — this is for you.&lt;/p&gt;

&lt;p&gt;I'm building this in public. Follow along if you want to see how it grows.&lt;/p&gt;

&lt;h1&gt;
  
  
  ai #openai #webdev #productivity
&lt;/h1&gt;

</description>
    </item>
  </channel>
</rss>
