AI Agent Hub
Back to plugins
🖥️

dsh-plugin-usage

Client Updated 2026.09.15

Run the following command in DeepSeek Harness:

dsh plugin install 1998moye/dsh-plugin-usage

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

Run dsh plugin install 1998moye/dsh-plugin-usage in your terminal to install; the source is at https://github.com/1998moye/dsh-plugin-usage . Restart dsh web after installation.

About this plugin

You run a few rounds of DeepSeek API calls, open the invoice, and wish you could see at a glance where the tokens went, how much cache you actually hit, and how much extra peak-hour pricing cost you. dsh-plugin-usage puts that answer right on the DSH input toolbar: a small inline button on the right shows today's spend, and clicking it opens a full dashboard with trend charts, grouped breakdowns, token composition, and account balance—no tab-switching to the official portal to reconcile numbers line by line.

The plugin rebuilds usage entirely from local session.jsonl.zstd logs, including history that predates the plugin install itself, so the first open already yields a complete ledger. Cost is estimated with DeepSeek's official peak/off-peak rates, distinguishing cache-hit from cache-miss tokens, and counting each turn only once regardless of how many streaming frames it produced. Trend charts cover the last 7 or 30 days; breakdowns can group by model or provider. A Token tab splits uncached, cached, and output tokens with their percentages. A Balance tab queries DeepSeek's official endpoint directly and colour-codes the figure—yellow below 10 RMB, red below 3. Models not yet in the built-in price table are counted for tokens only, never guessed at for cost: it would rather understate than fabricate a number.

It is aimed at developers who work through the DSH Web UI with DeepSeek and want a glanceable local cost view without logging into a separate dashboard. If you juggle several models and providers, or need to confirm how much of your prepaid balance versus bonus balance is left, this panel fits the workflow naturally. The plugin makes no third-party requests beyond DeepSeek's own balance endpoint, keeps all usage data on local disk, and never sends the API key to the browser—privacy boundaries are explicit and minimal.

Use Cases

  • Checking today's spend and token usage at a glance while working in the DSH Web UI
  • Reconciling costs across multiple models or providers after a batch of API calls
  • Verifying prepaid and bonus balance before deciding whether to top up

Best For

  • Developers calling DeepSeek API through the DSH Web UI
  • Engineers running multiple models or providers and needing per-dimension cost breakdowns
  • Tech teams tracking cache hit rates and peak/off-peak price gaps with a local usage view