AI Agent Hub
Back to plugins
dsh-token-billing preview

dsh-token-billing

Client Updated 2026.09.14

Run the following command in DeepSeek Harness:

dsh plugin install MrTomTao/dsh-token-billing

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install MrTomTao/dsh-token-billing in your DeepSeek Harness terminal to install; the source is hosted at https://github.com/MrTomTao/dsh-token-billing. After restarting your web profile, a billing badge will appear in every session title bar.

About this plugin

The DeepSeek Harness Web GUI tells you how many tokens were consumed, but never how much that actually cost. In long, multi-model sessions where cache-hit ratios fluctuate and peak/off-peak windows are crossed, manually reconciling against the official pricing page is tedious and error-prone.

dsh-token-billing turns that reconciliation into a persistent badge in the session title bar. Click it to see itemized charges across input, cache-hit input, cache-write, output, and reasoning, broken down per model, with each line tagged as peak or off-peak. The billing rides on the same projection mechanism as the official tokenUsage stat, so tokens and peak/off-peak splits are folded on the Host while the browser only formats the result. Prices are combo-config values: swap them in your profile patch and every historical bill recalculates instantly without replaying logs or refreshing the page.

Built for DSH Web users who run mixed-model sessions and need to know exactly what each conversation costs in real time. No extra services, no RPC channels, no polling. Add it to your profile, restart, and the badge appears; remove it with a single command and everything cleans up after itself.

Screenshots

Use Cases

  • Long sessions cross peak and off-peak windows and you need per-record actual cost for every token
  • Running multiple DeepSeek models in one session and needing a model-level bill breakdown
  • A team shares a DSH instance and each member wants real-time cost visibility for their own conversations

Best For

  • Developers running multi-model sessions in DSH Web who need at-a-glance cost awareness
  • Small teams that need precise DeepSeek API cost accounting to avoid manual reconciliation
  • Individual users who want transparent billing instead of manually cross-referencing the pricing page