<?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: shinertx</title>
    <description>The latest articles on DEV Community by shinertx (@shinertx).</description>
    <link>https://dev.to/shinertx</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%2F3843653%2Fa4c4c01c-177e-431d-ab39-39dfd21d9c5b.png</url>
      <title>DEV Community: shinertx</title>
      <link>https://dev.to/shinertx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shinertx"/>
    <language>en</language>
    <item>
      <title>Why your OpenClaw bill is 10x what you expected (and how to find the culprit in 30 seconds)</title>
      <dc:creator>shinertx</dc:creator>
      <pubDate>Wed, 25 Mar 2026 18:52:42 +0000</pubDate>
      <link>https://dev.to/shinertx/why-your-openclaw-bill-is-10x-what-you-expected-and-how-to-find-the-culprit-in-30-seconds-263k</link>
      <guid>https://dev.to/shinertx/why-your-openclaw-bill-is-10x-what-you-expected-and-how-to-find-the-culprit-in-30-seconds-263k</guid>
      <description>&lt;p&gt;You set up OpenClaw. You ran it on a task. You came back to a billing email you didn't expect.&lt;/p&gt;

&lt;p&gt;This is the most common story in r/openclaw right now. One developer burned $200 in a single day. Another hit $3,600 in a month. In almost every case, the post-mortem reveals the same three culprits.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Three Silent Killers
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. The Retry Storm
&lt;/h3&gt;

&lt;p&gt;When OpenClaw hits a 429 rate limit error, it doesn't stop. It retries — usually with exponential backoff: 5 seconds, then 10, then 20, then 40. Each retry re-sends the full conversation context. So not only is it retrying, it's retrying with a growing payload.&lt;/p&gt;

&lt;p&gt;A session that hit 5 retries before succeeding might have cost 8x what a clean run would have cost.&lt;/p&gt;

&lt;p&gt;You won't see this in your billing dashboard. You'll just see "a lot of tokens."&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Context Accumulation
&lt;/h3&gt;

&lt;p&gt;This one is structural. Every message in a multi-turn session re-sends everything before it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Turn 1: ~800 tokens&lt;/li&gt;
&lt;li&gt;Turn 10: ~12,000 tokens&lt;/li&gt;
&lt;li&gt;Turn 20: ~38,000 tokens&lt;/li&gt;
&lt;li&gt;Turn 40: ~148,000 tokens&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A 40-turn OpenClaw session can cost 50x what a 10-turn session costs, for the same amount of useful work. Context accumulation typically accounts for 40–50% of your total bill.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The Looped Tool Call
&lt;/h3&gt;

&lt;p&gt;The agent called a tool, got an unexpected result, decided to try again, got the same unexpected result, and tried again. Indefinitely, or until it hit a token limit.&lt;/p&gt;

&lt;p&gt;This one is the most unpredictable — it depends on the model's judgment about when to give up. Some models are much more persistent than others.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Find Your Bad Run
&lt;/h2&gt;

&lt;p&gt;I built a tool for exactly this: &lt;code&gt;npx vibe-billing scan&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;It analyzes your agent's request logs and identifies:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which session or run accounted for the most spend&lt;/li&gt;
&lt;li&gt;Whether retry patterns are present&lt;/li&gt;
&lt;li&gt;Whether context is growing unusually fast&lt;/li&gt;
&lt;li&gt;Whether any tool calls are looping&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No account required. No data leaves your machine. It runs locally against your own logs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx vibe-billing scan
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to instrument future runs and catch problems before they hit the bill:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx vibe-billing setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This installs a local proxy that sits between your agent and the API, tracking spend in real time with circuit breakers for loops and configurable token budgets per run.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I've Seen
&lt;/h2&gt;

&lt;p&gt;Running this on my own agent setup:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;$7,691 in spend tracked and attributed&lt;/li&gt;
&lt;li&gt;947 million tokens intercepted&lt;/li&gt;
&lt;li&gt;161 retry loops blocked before they escalated&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The biggest single waste event I've caught was a 40-turn session where the agent was trying to parse a malformed API response. It retried 12 times before giving up. Each retry re-sent 80,000+ tokens of context. Total cost of that one failure: $47.&lt;/p&gt;

&lt;p&gt;The fix was a one-line change to the error handler. But I never would have found it without the scan.&lt;/p&gt;




&lt;p&gt;If you've had an OpenClaw run that went sideways, I'd genuinely like to know what the failure mode was. Drop a comment or try the scan and share what it finds.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx vibe-billing scan&lt;/code&gt; → &lt;a href="https://api.jockeyvc.com" rel="noopener noreferrer"&gt;https://api.jockeyvc.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>openclaw</category>
      <category>ai</category>
      <category>devtools</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
