dsh-session-cost
Run the following command in DeepSeek Harness:
dsh plugin install ljcscp/dsh-session-cost
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install ljcscp/dsh-session-cost in the DeepSeek Harness terminal, or pull the source from https://github.com/ljcscp/dsh-session-cost for a local install, then restart dsh web and refresh the page to see the balance and session-cost readout under the composer dock.
About this plugin
When you are deep in a conversation in the DSH Web GUI, the question "how much did this session cost?" can be a constant distraction. dsh-session-cost answers it in place: an account-balance readout and a per-session token-spend figure appear directly beneath the composer stats line, so you never need to tab over to platform.deepseek.com. The balance query runs on the host side through the DSH credentials seam, keeping the API key entirely local.
On the pricing side, the plugin auto-fetches the official DeepSeek pricing page every six hours, applies the peak/off-peak schedule (Beijing 09:00-12:00 and 14:00-18:00 at full rate, everything else at half) based on the current Beijing hour, and identifies the session's actual model (deepseek-v4-flash or deepseek-v4-pro) from the newest assistant-message provenance to price against the correct bucket. When DeepSeek adjusts its rates, nothing on your end changes — a page refresh picks up the new numbers automatically.
This plugin is built for developers and researchers who call DeepSeek through DSH daily and want a glanceable cost signal without leaving the chat. It works out of the box with zero configuration; optional composition keys let you tune the cache interval, credential reference, or base URL if your setup differs from the defaults.
Use Cases
- Check per-session token spend and account balance mid-conversation without leaving the GUI
- Auto-sync official pricing after DeepSeek rate changes — no plugin update needed
- Differentiate peak/off-peak hours and per-model (v4-flash / v4-pro) rates for accurate cost estimation
Best For
- Developers who call DeepSeek through DSH on a daily basis
- Researchers who need a steady pulse on API spend
- Power users of DeepSeek v4 models who want at-a-glance cost visibility in the IDE
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.