<?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: Joe Davies</title>
    <description>The latest articles on DEV Community by Joe Davies (@joedaviesio).</description>
    <link>https://dev.to/joedaviesio</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%2F3883183%2F30a39195-2433-42e7-bbf4-9dd0c87aad3c.png</url>
      <title>DEV Community: Joe Davies</title>
      <link>https://dev.to/joedaviesio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/joedaviesio"/>
    <language>en</language>
    <item>
      <title>Built a CLI that tells me what I'm spending on AI APIs before the invoice does</title>
      <dc:creator>Joe Davies</dc:creator>
      <pubDate>Thu, 16 Apr 2026 21:19:04 +0000</pubDate>
      <link>https://dev.to/joedaviesio/built-a-cli-that-tells-me-what-im-spending-on-ai-apis-before-the-invoice-does-4kjn</link>
      <guid>https://dev.to/joedaviesio/built-a-cli-that-tells-me-what-im-spending-on-ai-apis-before-the-invoice-does-4kjn</guid>
      <description>&lt;p&gt;I kept finishing coding sessions with a small idea what I'd just spent on API calls :'D.&lt;/p&gt;

&lt;p&gt;The dashboards from the providers lag, and none of them give you a per-call breakdown tied back to your own code.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Tirith&lt;/strong&gt;; an open-source CLI that sits as a transparent proxy between your code and any AI API. One import to add, one to remove.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Drops in with a single line; no config changes&lt;/li&gt;
&lt;li&gt;Works with any provider you're already using (OpenAI, Anthropic, whatever)&lt;/li&gt;
&lt;li&gt;Tracks cost per call in real time&lt;/li&gt;
&lt;li&gt;Everything stays local on your machine; no data leaves your laptop&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why a proxy instead of an SDK wrapper
&lt;/h2&gt;

&lt;p&gt;Wrappers break when providers ship new endpoints or change their SDK. A transparent proxy just forwards requests, logs what it sees, and gets out of the way. Provider-agnostic by design.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: [&lt;a href="https://github.com/joedaviesio/tirith" rel="noopener noreferrer"&gt;https://github.com/joedaviesio/tirith&lt;/a&gt;]&lt;/li&gt;
&lt;li&gt;Launch video: [&lt;a href="https://youtube.com/shorts/uZCAqzqLfi4?si=k311z4DUVO2bwqYa" rel="noopener noreferrer"&gt;https://youtube.com/shorts/uZCAqzqLfi4?si=k311z4DUVO2bwqYa&lt;/a&gt;]&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MIT licensed. Feedback very welcome; especially edge cases where the proxy behaves weirdly. First release, so I'm expecting rough edges.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>cli</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
