dsh-cost-pill
Run the following command in DeepSeek Harness:
dsh plugin install Daviszhou212/dsh-cost-pill
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install Daviszhou212/dsh-cost-pill in your terminal to install the plugin, which is sourced from https://github.com/Daviszhou212/dsh-cost-pill; after installation, restart dsh web and hard-refresh the browser (Ctrl+Shift+R) to see the cost pill appear in the stats row.
About this plugin
You spend a whole day building in DSH Web and the worst part of the month is not debugging but opening the bill and trying to reconstruct which calls hit the cache, which model ate the most, and how much the sub-agents quietly burned on top. dsh-cost-pill puts that ledger right under the input box: a capsule, visually identical to the official stats pill, sits at the far right of the same row and shows the current session's API cost, account balance, and cache-hit rate. A click expands a detail panel that breaks the spend down by peak/off-peak windows and per model, with the pricing source and verification date printed right on the panel.
A few details matter more than they first appear. Sub-agent sessions, even multi-level nested, are walked via the parentSession tree and folded into a single total, so a run that spawned twenty agents no longer reports only the parent's cost. The account balance is fetched through a host-side loopback-only route; the API key never leaves the host process, the browser receives a number and nothing more. Pricing refreshes in the background with TTL caching, multi-layer validation, and graceful fallback to the last known-good table when offline. Every color token, font size, border radius, and spacing value in the pill and panel is copied from the official source, so the plugin looks like it was always there.
Who it is for: long-running DeepSeek API users with heavy token volume, multi-model sessions, frequent sub-agent fan-out; anyone who wants to see exactly where each yuan went and cross-check the platform's actual deductions against the local estimate; and DSH Web developers who would rather glance at cost than switch tabs to the billing page. It renders on the Web surface only; TUI and other clients do not have this slot. The numbers are estimates, not invoices: transit-channel discounts, contract pricing, and hourly cache storage cannot be derived from session tokens, so for precise reconciliation the bundled fold-session script is the right companion.
Use Cases
- After a batch of sessions, quickly see total spend and which calls hit the cache
- Fold a multi-level sub-agent tree into a single cost total
- Cross-check real deductions against the local pricing table at month-end
Best For
- Developers with heavy DeepSeek API token volume
- Agent teams that mix models or fan out sub-agents frequently
- DSH Web users who want at-a-glance cost without switching to the billing page
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.