<?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: JCK-Sabords</title>
    <description>The latest articles on DEV Community by JCK-Sabords (@jcksabords).</description>
    <link>https://dev.to/jcksabords</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4266822%2F335bf7ff-d640-4d4e-8594-b5f4eccd29c8.jpg</url>
      <title>DEV Community: JCK-Sabords</title>
      <link>https://dev.to/jcksabords</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jcksabords"/>
    <language>en</language>
    <item>
      <title>Tokenmaxxing, measured: I built a Claude Code mod to see how much I cost Anthropic (x11.3)</title>
      <dc:creator>JCK-Sabords</dc:creator>
      <pubDate>Thu, 26 Nov 2026 12:10:36 +0000</pubDate>
      <link>https://dev.to/jcksabords/tokenmaxxing-measured-i-built-a-claude-code-mod-to-see-how-much-i-cost-anthropic-x113-158p</link>
      <guid>https://dev.to/jcksabords/tokenmaxxing-measured-i-built-a-claude-code-mod-to-see-how-much-i-cost-anthropic-x113-158p</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6iyil6gggrhv7nktzaxs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6iyil6gggrhv7nktzaxs.png" alt="token-maxxing: you paid $140, you burned $1,576, ROI x11.3" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In November, Amazon told its engineers to stop "tokenmaxxing", burning AI tokens to look productive. I took it as a challenge.&lt;/p&gt;

&lt;p&gt;I pay $20 a month for Claude. I use Claude Code like it owes me money. At some point I had to ask the question of our generation: &lt;strong&gt;how much would I pay if I was on the API, like a responsible adult?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The answer: $1,576 since May. For $140 paid. That's a subscription ROI of &lt;strong&gt;x11.3&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here is how I found out, and how you can too.&lt;/p&gt;

&lt;h2&gt;
  
  
  What token-maxxing does
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/JCK-Sabords/token-maxxing" rel="noopener noreferrer"&gt;token-maxxing&lt;/a&gt; is a free, open source mod for Claude Code. It opens a pane that shows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;your &lt;strong&gt;tokens per model&lt;/strong&gt; (Opus, Sonnet, Haiku, Fable), this month and all time&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;API-equivalent cost&lt;/strong&gt; of that usage at Anthropic's public prices, cache included&lt;/li&gt;
&lt;li&gt;your &lt;strong&gt;subscription ROI&lt;/strong&gt;: the API-equivalent cost divided by what you actually paid, green above x1, red below&lt;/li&gt;
&lt;li&gt;a monthly chart&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Install it in one line, in Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/plugin install token-maxxing --marketplace JCK-Sabords/token-maxxing
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then type &lt;code&gt;/tokens&lt;/code&gt;. Set your plan price with &lt;code&gt;/plugin configure token-maxxing@token-maxxing&lt;/code&gt; to see your ROI.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the math works
&lt;/h2&gt;

&lt;p&gt;Claude Code keeps a transcript of every session in &lt;code&gt;~/.claude/projects&lt;/code&gt;. Each assistant reply carries a &lt;code&gt;usage&lt;/code&gt; block: input tokens, output tokens, cache writes (5 minute and 1 hour) and cache reads, plus the model.&lt;/p&gt;

&lt;p&gt;token-maxxing prices each part at the model's public rate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;input at the base price&lt;/li&gt;
&lt;li&gt;cache writes at 1.25x input for 5 minutes, 2x for 1 hour&lt;/li&gt;
&lt;li&gt;cache reads at each model's own rate (as low as 0.025x on some models)&lt;/li&gt;
&lt;li&gt;output at the output price, doubled in fast mode&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two traps I fell into:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A reply is written several times.&lt;/strong&gt; The transcript stores the same message on several lines while it streams, the first ones with a partial output count. Count every line and you overcount; count the first one and you undercount output. The mod dedupes by message id and request id and keeps the final count.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transcripts are big.&lt;/strong&gt; Mine were 750 MB. The mod reads them incrementally in 4 MiB chunks and keeps an aggregate cache, so only the first scan is slow. The cache also keeps your all-time total after Claude Code deletes old transcripts.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Everything stays on your machine: it reads your transcripts, writes a small cache, and makes no network calls.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building it as a Claude Code mod
&lt;/h2&gt;

&lt;p&gt;Mods are the plugin type that can draw in Claude Code's interface: panes, a band above the prompt, buttons. Some things I learned:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the desktop app starts sessions through the SDK, so &lt;code&gt;isInteractive&lt;/code&gt; is false there: don't gate your UI on it&lt;/li&gt;
&lt;li&gt;rows placed in the transcript (&lt;code&gt;Placed&lt;/code&gt;) only draw in the terminal; use a &lt;code&gt;Pane&lt;/code&gt; for the desktop&lt;/li&gt;
&lt;li&gt;a &lt;code&gt;Text&lt;/code&gt; element can't take a &lt;code&gt;key&lt;/code&gt;, only &lt;code&gt;Box&lt;/code&gt; can, or the whole tree is refused&lt;/li&gt;
&lt;li&gt;the validator (&lt;code&gt;claude plugin validate&lt;/code&gt;) and the test runner (&lt;code&gt;claude plugin test&lt;/code&gt;) catch most of this before you ship&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The flex (and the Wrapped)
&lt;/h2&gt;

&lt;p&gt;Numbers in a terminal are cute. Numbers on your LinkedIn profile picture are a lifestyle. The mod's pane has a "Flex it" link that turns your ratio into a profile picture frame, #OpenToWork style: "Claude ROI-maxxer ~ x11.3". The frame is drawn in your browser, your photo never leaves it.&lt;/p&gt;

&lt;p&gt;And since it's almost December, there is also a &lt;a href="https://jck-sabords.github.io/token-maxxing/wrapped/" rel="noopener noreferrer"&gt;Claude Code Wrapped&lt;/a&gt;: your year in tokens as a card to share.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your turn
&lt;/h2&gt;

&lt;p&gt;Install it, check your ratio, and tell me in the comments. Under x1, you're paying for a gym membership you never go to.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/JCK-Sabords/token-maxxing" rel="noopener noreferrer"&gt;https://github.com/JCK-Sabords/token-maxxing&lt;/a&gt;&lt;br&gt;
Website: &lt;a href="https://jck-sabords.github.io/token-maxxing/" rel="noopener noreferrer"&gt;https://jck-sabords.github.io/token-maxxing/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>productivity</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
