<?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: akhilendra singh</title>
    <description>The latest articles on DEV Community by akhilendra singh (@akhilendra_singh_879f1d87).</description>
    <link>https://dev.to/akhilendra_singh_879f1d87</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%2F4259959%2Ff1ad7d6e-2cf0-4b01-b4a0-528edd1913d1.png</url>
      <title>DEV Community: akhilendra singh</title>
      <link>https://dev.to/akhilendra_singh_879f1d87</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/akhilendra_singh_879f1d87"/>
    <language>en</language>
    <item>
      <title>I wanted to know if my Claude Code plan was worth it, so I wrote a check</title>
      <dc:creator>akhilendra singh</dc:creator>
      <pubDate>Mon, 23 Nov 2026 07:26:13 +0000</pubDate>
      <link>https://dev.to/akhilendra_singh_879f1d87/i-wanted-to-know-if-my-claude-code-plan-was-worth-it-so-i-wrote-a-check-ojf</link>
      <guid>https://dev.to/akhilendra_singh_879f1d87/i-wanted-to-know-if-my-claude-code-plan-was-worth-it-so-i-wrote-a-check-ojf</guid>
      <description>&lt;p&gt;I pay a flat monthly price for Claude Code. Some weeks I run agents all day; some weeks I barely open it. I had no idea whether the plan was saving me money compared with paying per token, and nothing in either the Anthropic or OpenAI dashboards answers that directly.&lt;/p&gt;

&lt;p&gt;The data to answer it is already on your machine. Claude Code keeps a log of every response in &lt;code&gt;~/.claude/projects&lt;/code&gt;, and Codex keeps its sessions in &lt;code&gt;~/.codex/sessions&lt;/code&gt;. Each entry has the model and the token counts. So I wrote a small check that reads those logs, prices them at API rates, and compares the total with your plan.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSL https://ganivra.com/check.sh &lt;span class="o"&gt;|&lt;/span&gt; sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It asks which plan you're on the first time, remembers it, and prints something like this (illustrative output, not my numbers):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Claude Code · last 30 days · 22 active days
  Usage at API prices       $1,842.17
    claude-opus-5-5         $1,610.40   61.2M input · 2.1B cache reads · 4.8M output
    claude-sonnet-5-5         $231.77   9.4M input · 310.2M cache reads · 1.1M output
  Busiest 5 hours              $96.10   from Tue 18 Nov 14:00
  Your plan              Claude Ultra, $200 a month
  → Your plan covered 9.2x its price in usage. Keep it.

Codex · last 30 days · 6 active days
  Usage at API prices          $41.08
    gpt-6-astra                $41.08   2.3M input · 18.0M cache reads · 410.2k output
  Your plan              ChatGPT Business seat, $25 a month
  → About break-even: $41.08 a month at API prices against $25.

Top projects: checkout-api $1,204.90 · mobile-app $310.15 · other $368.20

Nothing was sent anywhere.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How it decides
&lt;/h2&gt;

&lt;p&gt;It divides your month of usage at API prices by your plan's price:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Usage ÷ plan price&lt;/th&gt;
&lt;th&gt;Verdict&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Above 1.5&lt;/td&gt;
&lt;td&gt;The plan covered that many times its price. Keep it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0.5 to 1.5&lt;/td&gt;
&lt;td&gt;About break-even.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Below 0.5&lt;/td&gt;
&lt;td&gt;Paying per token would have cost less. (The plan also covers the chat app, so weigh that too.)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;With fewer than 5 active days it shows the numbers but no verdict. One quiet week shouldn't decide anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things I learned building it
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Each response is logged more than once.&lt;/strong&gt; Claude Code writes the same response to several lines as it streams. Adding them up naively double- or triple-counts. The check keys each response on its message and request ID and keeps the line with the final output count.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cache reads are most of the tokens.&lt;/strong&gt; In a long agent session, the bulk of input tokens are cache reads, often billions in a month. They're priced far below normal input, while cache writes cost more than normal input, and 5-minute and 1-hour writes are priced differently. If you price everything as plain input, the total is wildly wrong. The check prices each kind separately, plus fast-mode and long-prompt rates.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Neither vendor publishes the limits behind a plan.&lt;/strong&gt; Plans reset every 5 hours and every week, but the token limits aren't public. So the check can't honestly say "you'd have been fine on the cheaper plan." Instead it shows your most expensive 5-hour window, which is the best evidence you have for that decision.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Logs don't last forever.&lt;/strong&gt; Claude Code deletes logs after 30 days unless you've changed &lt;code&gt;cleanupPeriodDays&lt;/code&gt;. You can look back up to 90 days with &lt;code&gt;--days 90&lt;/code&gt; if you've kept them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Codex doesn't record fast mode.&lt;/strong&gt; Those calls are priced at the standard rate, so Codex totals can be slightly low.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it reads and what it never does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It uses token counts, model names, timestamps and the &lt;em&gt;name&lt;/em&gt; of each project folder (&lt;code&gt;checkout-api&lt;/code&gt;, never the full path).&lt;/li&gt;
&lt;li&gt;It never prints, stores or sends prompts, responses or code.&lt;/li&gt;
&lt;li&gt;The only network request is for the public price list (&lt;a href="https://github.com/ProdMoh/llm-prices" rel="noopener noreferrer"&gt;github.com/ProdMoh/llm-prices&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Our server counts each download of the script in Google Analytics, so I know how many people run it. That count includes nothing from your machine and no IP address.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Piping &lt;code&gt;curl&lt;/code&gt; into &lt;code&gt;sh&lt;/code&gt; deserves suspicion, so read it first: &lt;a href="https://ganivra.com/check.sh" rel="noopener noreferrer"&gt;check.sh&lt;/a&gt; is about 30 lines that download &lt;a href="https://ganivra.com/check.py" rel="noopener noreferrer"&gt;check.py&lt;/a&gt; and run it with Python 3, standard library only.&lt;/p&gt;

&lt;h2&gt;
  
  
  Options
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Skip the question&lt;/span&gt;
curl -fsSL https://ganivra.com/check.sh &lt;span class="o"&gt;|&lt;/span&gt; sh -s -- --claude-plan max

&lt;span class="c"&gt;# Look further back, one tool only, as JSON&lt;/span&gt;
curl -fsSL https://ganivra.com/check.sh &lt;span class="o"&gt;|&lt;/span&gt; sh -s -- --days 90 --tool claude --json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It runs on macOS and Linux with Python 3.8 or later. No Windows yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it and tell me your number
&lt;/h2&gt;

&lt;p&gt;I'm curious how wide the spread is. My guess is that most people are either far above 1.5x or well under 0.5x, and very few are near break-even. If you run it, post the verdict line in the comments (no need for the dollar figures), and tell me where it got something wrong.&lt;/p&gt;

&lt;p&gt;If you manage a team on Claude Code or Codex seats and want the same view for every developer, every month, that's what I'm building at &lt;a href="https://ganivra.com/seat-checker" rel="noopener noreferrer"&gt;Ganivra&lt;/a&gt;. The check itself is free and stays that way.&lt;/p&gt;

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