<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Cost Dashboard on RockB</title><link>https://baeseokjae.github.io/tags/cost-dashboard/</link><description>Recent content in Cost Dashboard on RockB</description><image><title>RockB</title><url>https://baeseokjae.github.io/images/og-default.png</url><link>https://baeseokjae.github.io/images/og-default.png</link></image><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 17 Aug 2026 16:13:59 +0000</lastBuildDate><atom:link href="https://baeseokjae.github.io/tags/cost-dashboard/index.xml" rel="self" type="application/rss+xml"/><item><title>dsh whale meter tokens: Track DeepSeek Harness Token Usage &amp; Cost Tiers</title><link>https://baeseokjae.github.io/posts/dsh-whale-meter-token-usage-cost/</link><pubDate>Mon, 17 Aug 2026 16:13:59 +0000</pubDate><guid>https://baeseokjae.github.io/posts/dsh-whale-meter-token-usage-cost/</guid><description>dsh-whale-meter shows your DeepSeek Harness token usage in 5 gamified tiers and estimates cost in CNY or USD, fully on-device with no telemetry.</description><content:encoded><![CDATA[<p><strong>dsh-whale-meter is a one-line-install, zero-configuration plugin for DeepSeek Harness (DSH) that turns your raw token usage into five gamified tiers — from 🐟 small fry to 🐳 blue whale — and estimates your spend in CNY or USD, all stored locally on your machine with no telemetry and no network calls.</strong> It went from a nice-to-have to a budgeting necessity on August 17, 2026, when DeepSeek raised v4-flash and v4-pro prices and introduced peak/off-peak billing. This guide explains exactly what it tracks, how the new pricing works, and whether it beats the alternative cost-tracking tools.</p>
<h2 id="what-is-dsh-whale-meter-and-why-you-need-it-now-post-8-17-price-hike-context">What Is dsh-whale-meter and Why You Need It Now (Post-8-17 Price Hike Context)</h2>
<p>DeepSeek Harness is a powerful agentic coding harness, but for a long time it gave users almost no visibility into how many tokens they were actually consuming or what those tokens cost. That gap is exactly what dsh-whale-meter (仓库: <code>Shiye-10Pages/dsh-whale-meter</code>) was built to close. It is a native DSH plugin written in TypeScript under an MIT License, released on August 16, 2026, with a design goal of &ldquo;one-line install, zero config, all data local.&rdquo;</p>
<p>The timing is not accidental. On <strong>August 17, 2026</strong>, DeepSeek raised the prices of v4-flash and v4-pro and, for the first time, introduced <strong>peak/off-peak billing</strong> in China. That single change turned token spend from a background curiosity into a line item you must actively manage. As the broader industry scramble shows, teams are routinely blowing through their token budgets — TechCrunch reported in June 2026 that many teams were running at <strong>3x their 2026 token budgets by April</strong>, with individual engineers seeing monthly token spikes in the <strong>$40,000 range</strong>. The days of &ldquo;just let the model run&rdquo; are over.</p>
<p>dsh-whale-meter answers the three questions every heavy DSH user now asks daily: <em>How many tokens am I using?</em> <em>What am I actually spending?</em> <em>Is my usage tier creeping toward the top?</em></p>
<h2 id="key-features--token-usage-tiers-cost-dashboard-and-the-whale-score-card">Key Features — Token Usage Tiers, Cost Dashboard, and the Whale Score Card</h2>
<p>The headline feature is a <strong>gamified usage ladder</strong> with five tiers:</p>
<table>
  <thead>
      <tr>
          <th>Tier</th>
          <th>Emoji</th>
          <th>Meaning</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Small fry</td>
          <td>🐟</td>
          <td>Light usage</td>
      </tr>
      <tr>
          <td>Tropical fish</td>
          <td>🐠</td>
          <td>Moderate usage</td>
      </tr>
      <tr>
          <td>Dolphin</td>
          <td>🐬</td>
          <td>Above-average usage</td>
      </tr>
      <tr>
          <td>Humpback</td>
          <td>🐋</td>
          <td>Heavy usage</td>
      </tr>
      <tr>
          <td>Blue whale</td>
          <td>🐳</td>
          <td>Extreme usage</td>
      </tr>
  </tbody>
</table>
<p>Each tier carries an <strong>estimated percentile</strong> — the project is careful to label this as an estimate, not a claimed global rank — plus a playful magnitude conversion that frames your usage as &ldquo;≈ N reads of Three-Body.&rdquo; It turns an abstract number of tokens into something you can actually feel.</p>
<p>The <strong>cost dashboard</strong> is the practical workhorse. It reports spend across four time windows — <strong>today, yesterday, month, and cumulative</strong> — in CNY by default, swappable to USD. Costs are estimated from the official DeepSeek pricing pages, so they track the real tariff rather than a stale hardcoded rate.</p>
<p>Two features make the dashboard genuinely useful rather than decorative:</p>
<ul>
<li><strong>8-17 price-hike comparison.</strong> The same usage is priced side-by-side under the old and new tariffs. Pre-August-17 usage is shown as a <em>preview</em> of what it would have cost under the new rate; post-August-17 usage gets a <em>retroactive back-calculation</em> of what it would have cost under the old rate. This makes the real impact of the hike measurable in one glance.</li>
<li><strong>Cross-price-day correctness.</strong> Price tables are organized by effective date ranges, so historical bills are never mis-computed against today&rsquo;s rates.</li>
</ul>
<h2 id="how-the-8-17-price-change-works-v4-flash--v4-pro-peak-vs-off-peak-before-after-compare">How the 8-17 Price Change Works (v4-flash / v4-pro, Peak vs Off-Peak, Before-After Compare)</h2>
<p>The August 17 change has two parts: a <strong>price hike</strong> and a <strong>new peak/off-peak structure</strong>. Both are baked into the whale-meter&rsquo;s built-in price table (version 2026-08-16 already contains the new rates).</p>
<p>For <strong>v4-flash</strong> (per million tokens, cache miss), the changes are:</p>
<table>
  <thead>
      <tr>
          <th>Cost component</th>
          <th>Before 8-17</th>
          <th>Peak (after 8-17)</th>
          <th>Off-peak (after 8-17)</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Cache hit</td>
          <td>¥0.02</td>
          <td>¥0.10</td>
          <td>¥0.05</td>
      </tr>
      <tr>
          <td>Cache miss</td>
          <td>¥1</td>
          <td>¥3</td>
          <td>¥1.50</td>
      </tr>
      <tr>
          <td>Output</td>
          <td>¥2</td>
          <td>¥9</td>
          <td>¥4.50</td>
      </tr>
  </tbody>
</table>
<p><strong>v4-pro</strong> adjusted in parallel: peak pricing of ¥0.30 / ¥9 / ¥27 (hit / miss / output), with off-peak exactly half. <strong>Peak hours are Beijing 9:00–12:00 and 14:00–18:00.</strong></p>
<p>The <strong>non-obvious point most guides get wrong</strong> is this: even if you run entirely off-peak, the off-peak rate is <strong>still more expensive than the old flat pre-8-17 price</strong>. Look at the v4-flash table above — the off-peak miss rate of ¥1.50 beats the old ¥1.00 flat rate, and off-peak output at ¥4.50 is more than double the old ¥2.00. Off-peak is a discount <em>relative to the new peak rate</em>, not a return to the old prices. The whale-meter makes this visible with a <strong>⚡½ badge</strong> shown during off-peak hours, and its before/after comparison panel surfaces exactly how much the hike costs you even on the cheapest schedule.</p>
<h2 id="multi-vendor-precision-pricing-46-models-across-6-providers-including-china-tiered-rates">Multi-Vendor Precision Pricing: 46 Models Across 6 Providers, Including China Tiered Rates</h2>
<p>whale-meter is not limited to DeepSeek. It ships with a pricing database covering <strong>46 models across 6 vendors</strong>: DeepSeek, Anthropic, OpenAI, Google, Zhipu GLM, and Moonshot Kimi. Every model is itemized against the official pricing pages.</p>
<p>What sets it apart from most generic cost tools is how it handles <strong>tiered pricing from Chinese vendors</strong>, which most trackers simply ignore:</p>
<ul>
<li><strong>GLM-5.1</strong> input is priced by context length: <strong>&lt;32K tokens costs ¥6, ≥32K costs ¥8</strong> per million.</li>
<li><strong>GLM-4.7</strong> sub-divides even further, tiering by output length.</li>
</ul>
<p>Because the tier boundary depends on per-call context size, a flat price-table lookup produces wrong numbers. whale-meter applies the correct tier per call. When a model is not yet in the table, it is explicitly marked <strong>unpriced</strong> rather than silently estimated — an honest design choice that prevents fabricated cost figures.</p>
<h2 id="privacy--data-locality-fully-on-device-no-telemetry-raw-token-only-storage">Privacy &amp; Data Locality: Fully On-Device, No Telemetry, Raw-Token-Only Storage</h2>
<p>Privacy is a first-class design constraint, and it is the sharpest contrast with cloud-based dashboards. Everything runs on-device:</p>
<ul>
<li>Usage is stored in <code>~/.dsh/whale-meter/usage-YYYY-MM.jsonl</code>.</li>
<li>Only <strong>raw token counts</strong> are persisted — monetary amounts are recomputed on read, so no dollar figures are ever frozen into storage.</li>
<li>There are <strong>no network requests</strong> except the optional balance query you explicitly enable.</li>
<li>There is <strong>no telemetry</strong> of any kind.</li>
</ul>
<p>For a tool that sits next to all of your agent activity, this matters. A cloud dashboard necessarily exfiltrates at least aggregate usage data; whale-meter keeps the entire ledger local. The raw-token-only design also means a later price change can be applied retroactively to historical usage without storing contradictory amounts.</p>
<h2 id="installation-and-configuration-dsh-plugin-zero-config-cordispatchyml-options">Installation and Configuration (dsh plugin, zero-config, cordis.patch.yml options)</h2>
<p>Installation is a single command. If you run DSH with a profile:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>dsh plugin --profile &lt;profile&gt; add dsh-whale-meter
</span></span></code></pre></div><p>There is a <strong>web panel</strong> for TUI or headless setups at <code>http://127.0.0.1:3080/whale-meter/api/summary</code>. Configuration options live in <code>cordis.patch.yml</code>, letting you tweak behavior without touching source code. The project&rsquo;s stated goal is zero-config for the common case: install, open the panel, and you immediately see your tiers and spend.</p>
<h2 id="limitations-and-honest-caveats-estimates-not-exact-unknown-models-marked-unpriced-community-plugin">Limitations and Honest Caveats (Estimates Not Exact, Unknown Models Marked Unpriced, Community Plugin)</h2>
<p>No cost tracker is perfect, and whale-meter is transparent about its boundaries:</p>
<ul>
<li><strong>Costs are estimates, not invoices.</strong> Prices are drawn from official pages, but actual billing can differ due to rounding, promotions, or regional rules. Treat the dashboard as a budgeting guide, not an accounting record.</li>
<li><strong>Unknown models are marked unpriced.</strong> If whale-meter hasn&rsquo;t been updated for a newly released model, it will not invent a price — you&rsquo;ll see it flagged instead.</li>
<li><strong>It&rsquo;s a community plugin.</strong> The repo is young (created August 16, 2026, roughly 3 stars at time of research) and MIT-licensed. You&rsquo;re relying on an actively maintained community project rather than an official DeepSeek product.</li>
<li><strong>Tiers are percentile estimates</strong>, not confirmed global rankings. They give you a feel for where you sit, but &ldquo;blue whale&rdquo; is descriptive, not audited.</li>
</ul>
<h2 id="dsh-whale-meter-vs-alternative-cost-tracking-tools-cachelens-agentledger-agentic-metric">dsh-whale-meter vs Alternative Cost-Tracking Tools (CacheLens, AgentLedger, Agentic Metric)</h2>
<p>How does the DSH-native plugin compare to the wider field of agent cost trackers?</p>
<table>
  <thead>
      <tr>
          <th>Tool</th>
          <th>Approach</th>
          <th>Best for</th>
          <th>Data locality</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td><strong>dsh-whale-meter</strong></td>
          <td>DSH-native plugin, zero-config, gamified tiers</td>
          <td>DeepSeek Harness users who want instant local visibility</td>
          <td>Fully on-device</td>
      </tr>
      <tr>
          <td><strong>CacheLens</strong></td>
          <td>Local-first proxy that tracks cache-hit savings</td>
          <td>Anyone focused on cache economics as an observability layer</td>
          <td>Local proxy</td>
      </tr>
      <tr>
          <td><strong>AgentLedger</strong></td>
          <td>SDK-based observability of real agent actions (SSE streaming)</td>
          <td>Teams tracking actions, not just LLM calls</td>
          <td>Cloud/streaming</td>
      </tr>
      <tr>
          <td><strong>Agentic Metric</strong></td>
          <td>Token/cost tracking for AI coding agents, broader than DSH</td>
          <td>Multi-tool agent environments</td>
          <td>Varies</td>
      </tr>
  </tbody>
</table>
<p>The trade-off is clear. Generic proxy and ledger tools (CacheLens, AgentLedger, Agentic Metric) are broader — AgentLedger, for instance, tracks every real-world agent action with sub-second SSE latency rather than just LLM calls. But they require integration, a proxy, or an SDK, and they don&rsquo;t understand DSH&rsquo;s internals. whale-meter&rsquo;s advantage is that it is a <strong>zero-config native plugin</strong>: no proxy to configure, no SDK to wire in, and it inherently knows the DSH data layout. If you&rsquo;re all-in on DSH, the plugin approach wins on speed and locality; if you span many tools, a broader tracker makes more sense.</p>
<h2 id="verdict-and-roadmap">Verdict and Roadmap</h2>
<p>For anyone running DeepSeek Harness seriously, dsh-whale-meter earns its place immediately. The 8-17 price hike means <strong>running blind on tokens now costs real money</strong> — and the peak/off-peak structure adds a scheduling decision you can only make with a meter. The gamified tiers make the abstract tangible, the before/after price comparison makes the hike measurable, and the fully-local, no-telemetry design makes it trustworthy.</p>
<p>The roadmap points in sensible directions: <strong>CSV/Markdown export</strong> for records and reporting, <strong>off-peak scheduling suggestions</strong> to help you shift work into the half-price window, and an enhanced <strong>TUI</strong>. Combined with the cache-ledger view — whose value <em>grows</em> after the hike, since the cache hit/miss price gap widened — these additions would round it into a complete cost-control tool.</p>
<p>If you use DSH and haven&rsquo;t looked at your token bill yet, now is the moment. Install whale-meter, read your tier, and schedule your heavy runs off-peak. Your wallet will thank you.</p>
<h2 id="faq">FAQ</h2>
<p><strong>What exactly does dsh-whale-meter track?</strong>
It tracks your DeepSeek Harness token usage across five gamified tiers (🐟 small fry through 🐳 blue whale) and estimates your cost over today, yesterday, the current month, and cumulative totals, in CNY or USD.</p>
<p><strong>How does the 8-17 DeepSeek price change work?</strong>
On August 17, 2026, DeepSeek raised v4-flash and v4-pro prices and introduced peak/off-peak billing. Peak hours are Beijing 9:00–12:00 and 14:00–18:00; off-peak costs exactly half the peak rate but is still more expensive than the old flat pre-8-17 price.</p>
<p><strong>Is whale-meter data private?</strong>
Yes. All data is stored locally in <code>~/.dsh/whale-meter/usage-YYYY-MM.jsonl</code>, only raw token counts are persisted, and there is no telemetry or network traffic except an optional balance query you enable manually.</p>
<p><strong>Does whale-meter support models beyond DeepSeek?</strong>
Yes. It covers 46 models across 6 vendors — DeepSeek, Anthropic, OpenAI, Google, Zhipu GLM, and Moonshot Kimi — including China vendors&rsquo; tiered pricing such as GLM-5.1&rsquo;s &lt;32K vs ≥32K input rates.</p>
<p><strong>Is whale-meter free and where do I get it?</strong>
It is an MIT-licensed open-source project at <code>Shiye-10Pages/dsh-whale-meter</code>. Install with <code>dsh plugin --profile &lt;profile&gt; add dsh-whale-meter</code>, then open the web panel at <code>http://127.0.0.1:3080/whale-meter/api/summary</code>.</p>
]]></content:encoded></item></channel></rss>