<?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: Mostafa Orazani</title>
    <description>The latest articles on DEV Community by Mostafa Orazani (@mostafa_orazani).</description>
    <link>https://dev.to/mostafa_orazani</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%2F4262798%2F1ce292c4-438a-460c-8c5c-ad70cd43ae05.jpg</url>
      <title>DEV Community: Mostafa Orazani</title>
      <link>https://dev.to/mostafa_orazani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mostafa_orazani"/>
    <language>en</language>
    <item>
      <title>I built a local-first CLI proxy to track LLM tokens, latency, and USD cost across providers</title>
      <dc:creator>Mostafa Orazani</dc:creator>
      <pubDate>Tue, 24 Nov 2026 23:17:34 +0000</pubDate>
      <link>https://dev.to/mostafa_orazani/i-built-a-local-first-cli-proxy-to-track-llm-tokens-latency-and-usd-cost-across-providers-g47</link>
      <guid>https://dev.to/mostafa_orazani/i-built-a-local-first-cli-proxy-to-track-llm-tokens-latency-and-usd-cost-across-providers-g47</guid>
      <description>&lt;p&gt;When working across multiple side projects and LLM APIs (OpenAI, Anthropic, Gemini, OpenRouter), keeping track of exact token usage and real-time USD cost gets messy fast. Most observability tools require routing your prompts through a hosted third-party SaaS—which is overkill (and a privacy headache) if you just want to know how much your scripts are spending.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;&lt;a href="https://github.com/mostafaorazani/llm-ledger" rel="noopener noreferrer"&gt;llm-ledger&lt;/a&gt;&lt;/strong&gt; (&lt;code&gt;llm-ledger-cli&lt;/code&gt;)—a lightweight, local-first HTTP proxy and Rich CLI dashboard written in Python.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4lexgb97szl7qut0hjba.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4lexgb97szl7qut0hjba.gif" alt="llm-ledger terminal demo" width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Try it in 10 seconds (zero install)
&lt;/h2&gt;

&lt;p&gt;If you use &lt;code&gt;uv&lt;/code&gt;, you can spin up the local proxy immediately without installing anything:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
bash
uvx --from llm-ledger-cli llm-ledger start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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