dsh-token-api
Run the following command in DeepSeek Harness:
dsh plugin install LucasleeCN/dsh-token-api
Paste the following prompt into your AI chat to install this plugin:
Visit https://github.com/LucasleeCN/dsh-token-api to fetch the plugin, then run dsh plugin install LucasleeCN/dsh-token-api to install it in DeepSeek Harness Web UI.
About this plugin
Working long sessions in the DeepSeek Harness Web UI means constantly wondering how many tokens have been burned, how much context-window headroom is left, whether the highest reasoning level is actually active, and roughly what the round is costing—all of this lives in RPC responses and console logs with no at-a-glance surface. dsh-token-api injects a compact floating panel in the bottom-right corner of the Web UI that consolidates input, output, cache-read, and cache-write token counts, context-window pressure, the active reasoning level, and a cost estimate into a single glance, eliminating the need to dig through logs or fire off ad-hoc RPC queries.
The panel goes beyond a read-only dashboard. Reasoning level is rendered as a draggable slider that switches between off, high, and max by calling the official session.selectModel RPC under the hood. For cost estimation, the Host side scrapes the DeepSeek official pricing page every 30 minutes and relays the data to the browser via a same-origin route, automatically applying different unit prices for peak hours (Beijing time 09:00–12:00 and 14:00–18:00) versus off-peak hours. If the fetch fails, it falls back to bundled default prices; users can also manually override any model's price, and the override persists across reloads via localStorage. Styling uses Harness official --dsw-alias-* design tokens so the panel blends seamlessly into both light and dark themes. Data auto-refreshes every four seconds, and everything runs purely client-side: no model input is modified and no API key is ever read.
If you spend extended sessions in the DeepSeek Harness Web UI running long coding or deep-reasoning tasks and want an always-visible, real-time token-budget and cost gauge without writing a separate monitoring script or scraping pipeline, this plugin fills exactly that gap in the interface layer.
Use Cases
- Monitor real-time token burn and cumulative cost during long coding or reasoning sessions
- Drag the slider to switch reasoning level and instantly see the cost delta
- Auto-match peak and off-peak unit prices by the clock without manual lookup
Best For
- Developers running extended sessions in DeepSeek Harness Web UI
- Indie developers who need precise API cost tracking
- Users who want at-a-glance token budget without digging through logs or consoles
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.