<?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: woodori1234-max</title>
    <description>The latest articles on DEV Community by woodori1234-max (@woodori1234max).</description>
    <link>https://dev.to/woodori1234max</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%2F4266992%2F2ffbf945-56fc-4db4-a99c-3e9854210605.png</url>
      <title>DEV Community: woodori1234-max</title>
      <link>https://dev.to/woodori1234max</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/woodori1234max"/>
    <language>en</language>
    <item>
      <title>I built TokenLedger: a 100% browser-private LLM FinOps studio (14 tools, 24 models, MIT)</title>
      <dc:creator>woodori1234-max</dc:creator>
      <pubDate>Thu, 26 Nov 2026 13:12:49 +0000</pubDate>
      <link>https://dev.to/woodori1234max/i-built-tokenledger-a-100-browser-private-llm-finops-studio-14-tools-24-models-mit-1120</link>
      <guid>https://dev.to/woodori1234max/i-built-tokenledger-a-100-browser-private-llm-finops-studio-14-tools-24-models-mit-1120</guid>
      <description>&lt;p&gt;Every time I tried to estimate production LLM costs, existing calculators had two problems:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;They only multiplied single-prompt token rates—ignoring the real architectural traps that blow up AI bills (multi-turn agent O(N²) context snowballing, MCP tool-schema tax, prompt caching hit rates, KV-cache VRAM overhead).&lt;/li&gt;
&lt;li&gt;They asked me to paste prompts or tool schemas into a web app backed by a server.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So I built &lt;strong&gt;TokenLedger&lt;/strong&gt; — a &lt;strong&gt;100% browser-private, zero-upload, MIT open-source AI &amp;amp; LLM FinOps Studio&lt;/strong&gt; covering &lt;strong&gt;24 flagship models&lt;/strong&gt; across &lt;strong&gt;14 interactive calculators&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Studio&lt;/strong&gt;: &lt;a href="https://tokenledger-8x7.pages.dev" rel="noopener noreferrer"&gt;https://tokenledger-8x7.pages.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub (MIT)&lt;/strong&gt;: &lt;a href="https://github.com/swp1234/tokenledger" rel="noopener noreferrer"&gt;https://github.com/swp1234/tokenledger&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open CORS Pricing JSON Feed&lt;/strong&gt;: &lt;a href="https://tokenledger-8x7.pages.dev/api/pricing.json" rel="noopener noreferrer"&gt;https://tokenledger-8x7.pages.dev/api/pricing.json&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What's Inside (14 Browser-Local Workspaces)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;24-Model Live API Cost Estimator&lt;/strong&gt; — OpenAI (GPT-5, GPT-4.1, o3, o4-mini), Anthropic (Claude Opus 4, Sonnet 4, Haiku 3.5), Google (Gemini 2.5 Pro/Flash/Flash-Lite), DeepSeek (V3, R1), xAI (Grok 3), Meta (Llama 4), Mistral, Qwen, and Perplexity with prompt caching (0–95%), 50% async batch discounts, 70/30 model cascade routing, 5-currency live switcher (USD/EUR/GBP/JPY/KRW), &lt;code&gt;Ctrl+K&lt;/code&gt; palette, and Markdown/CSV/PNG exports.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-Turn Agent Burn Simulator&lt;/strong&gt; — Models quadratic O(N²) context accumulation in ReAct/tool-calling loops vs. prefix prompt caching and sliding-window summarization turn by turn.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP &amp;amp; Function-Calling Schema Tax Auditor&lt;/strong&gt; — Paste your JSON tool definitions locally to rank the heaviest schemas and quantify Prompt Caching vs. Lazy Tool Deferral savings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPU VRAM &amp;amp; KV-Cache Quantization Calculator&lt;/strong&gt; — Models Q4/FP8/FP16 weights + FP8 KV-cache halving across Llama 3.3 70B, DeepSeek-R1, Qwen 32B, and Mistral on 4090 / L40S / A100 / H100.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-Hosted GPU vs. Cloud API Break-Even&lt;/strong&gt; — Finds the exact daily request volume where renting vLLM GPUs + DevOps overhead beats cloud APIs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fine-Tuning vs. RAG vs. Caching 12-Month TCO&lt;/strong&gt; — Compares LoRA training refreshes, vector DB RAG synthesis, and long-context prompt caching with ADR export.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CFO Hybrid Waterfall&lt;/strong&gt; — Stacks caching + frontier-to-mini cascade + 50% batch tiers into an executive annual savings breakdown.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM Rate-Limit (RPM/TPM) Capacity Planner&lt;/strong&gt; — Calculates burst peak TPM, Little's Law concurrency, required vendor tier, and exports token-bucket rate-limiter JSON.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI SaaS Gross Margin Simulator&lt;/strong&gt; &amp;amp; &lt;strong&gt;AI Startup Runway Calculator&lt;/strong&gt; — Models per-seat COGS, Stripe fees, power-user break-even caps, and 24-month cash runway.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RAG &amp;amp; Vector DB TCO Planner&lt;/strong&gt; &amp;amp; &lt;strong&gt;Voice/Vision Multimodal Studio&lt;/strong&gt; — Sizes embeddings, HNSW RAM, OpenAI Realtime vs. Gemini Live audio, and image generation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt A/B Cost Diff + GitHub Action CI Budget Guard&lt;/strong&gt; — Compares prompt rewrites and exports a drop-in GitHub Action YAML to block token regressions in PRs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context Window &amp;amp; JSON Schema Minifier Inspector&lt;/strong&gt; — Estimates OpenAI/Claude/Gemini tokens locally and minifies bloated JSON schemas.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Zero-Dependency CLI &amp;amp; Open JSON API
&lt;/h2&gt;

&lt;p&gt;Run estimates directly inside CI or Notion/GitHub RFC workflows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node bin/tokenledger.js --in 2500 --out 600 --req 1000 --cache 50 --top 10 --format md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or fetch the CORS-enabled pricing snapshot directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl https://tokenledger-8x7.pages.dev/api/pricing.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;Everything is open-source (MIT) and runs entirely client-side with zero login walls. If there are specific pricing edge cases you hit in production (AWS Bedrock PTU, extended thinking tokens, multi-GPU tensor parallelism, etc.), drop a comment or open an issue on GitHub!&lt;/p&gt;

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