dsh-usage-chart¶
⭐ 10 · ✅ active · plugin · ⬆️ +3 recently
| Type | plugin | Category | Search & research |
| Stars | ⭐ 10 | Status | ✅ active |
| Author | Max-Samson | Updated | 2026-08-18 |
| Subcategory | 🌐 Web search | Capabilities | coding |
One-liner¶
A DeepSeek Harness Web plugin for real-time Token usage, cost estimates, per-round charts, and DeepSeek API balance.
About¶
简体中文 · Report an issue · Changelog (EN) · 更新日志(中文) Interface preview: light English on the left and dark Simplified Chinese on the right. Both variants follow the DSH theme and in-app language setting. Light theme · English Dark theme · 简体中文 The plugin adds a compact indicator below the conversation composer. It shows input/output tokens, cache-hit ratio, estimated cost, active model, a multi-segment context-pressure bar (system/tools/messages breakdown, v1.1.0), and DeepSeek account balance. Click it to open a zero-dependency SVG dashboard with per-turn usage history — including a cost view (every bar shows its own cost value, not just the current round), a duration overlay, an
✨ Key Features¶
- Session usage summary — Input (uncached/cached), output, cache-hit percentage, and context occupancy (derived from official adapter
tokenUsage/ `contextP - Context breakdown & compaction diagnostics (v1.1.0) — Official
contextBreakdownprojection breakdown (System prompt / Tools schema / Message history token - Cost estimation — Estimated from official list prices (CNY/USD dual-currency per 1M tokens, peak/off-peak tiers) with verified source date; supports user ov
- Peak / off-peak tiered billing (v1.0.1) — Peak hours (Beijing time Monday–Friday 09:00–12:00 and 14:00–18:00, UTC 01:00–04:00 and 06:00–10:00) billed at 2×
- Official dual-currency list pricing (v1.0.1) — Builtin official CNY and USD prices directly used according to the active display currency — **no FX conversi
- Multi-currency display (v0.3 / v1.0.1) — One-click toggle between USD and CNY (persisted in localStorage); indicator, panel, chart, and badges all follow.
📦 Install¶
dsh plugin --profile web add dsh-usage-chart # installs and registers the profile plugin layer
dsh web --profile web # starts DSH Web (stop it first if already running)
🚀 Quick Start¶
# Option ①: pin the target version explicitly
dsh plugin --profile web add dsh-usage-chart@1.1.2
# Option ②: remove, then re-add (back to latest)
dsh plugin --profile web remove dsh-usage-chart
dsh plugin --profile web add dsh-usage-chart
📚 Learn more¶
dsh-usage-chart
A usage, cost, and account-balance dashboard for DeepSeek Harness Web. 简体中文 · Report an issue · Changelog (EN) · 更新日志(中文) Interface preview: light English on the left and dark Simplified Chinese on the right. Both variants follow the DSH theme and in-app language setting.
<
Install
Prerequisites: DeepSeek Harness ≥ 0.1.0-rc.6 · Node.js ≥ 20 · pnpm on PATH (
dsh pluginforwards installs to pnpm). > If you getdsh: command not found(or PowerShellThe term 'dsh' is not recognized…), > you rannpx @deepseek-ai/dshtransiently — see FAQ item 1 (install globally, or prefix commands wiOption 2: install from GitHub (source build)
dsh plugin --profile web add github:Max-Samson/dsh-usage-chart#
Git installs run the package preparescript (node build.mjs) to build from source. pnpm ≥ 10 blockspreparescripts by default — allow this package in the profile'spnpm-workspace.yaml, then re-run: allowBuilds: dsh-usage-chart: trueVerify the install
- The composed profile should contain the plugin row:
sh dsh --profile web --dump-config | grep -A4 'id: dsh-usage-chart'2. Open DSH Web and enter any existing session: the "Usage" indicator (tokens / cost / model) appears below the composer, with the account balance on the right; click ▸ to open the dashboard.🔗 Links¶