Draggable balance widget plus a 「额度」 dashboard tab that turns local DSH session logs into estimated spend, savings and per-model / per-session rankings.
DSH integration
Native runtime
Author-claimed
Safety audit
Unaudited
Last verified
2026-11-25
License
MIT
01What can it help you accomplish?
See where the money went without leaving the DSH window
Balance with estimated days remaining, today / this month / all-time spend with period-over-period deltas, and rankings by model and by session
Anyone running agents in DSH who only ever saw a single balance number
Decide whether to move batch work into off-peak hours
The split of usage between peak and off-peak, plus what the peak portion would have cost if it had run off-peak
Operators of queued or batch jobs who can schedule work and want the half-price window
Watch the balance while a long run is in flight
A draggable floating widget with balance and today's spend, and a warning bar plus widget color change once the balance crosses your threshold
People who leave long agent runs unattended and do not want to be surprised by an empty balance
02How to install into DeepSeek Harness
Prerequisites
- pnpm available locally, because `dsh plugin` is a pnpm forwarder
- Balance reads through the DSH account login (browser authorization, no API key); the `DEEPSEEK_API_KEY` fallback only applies when no account is signed in
Installation steps
- 01
Install with `dsh plugin --profile web add @cassius0924/dsh-usage-dashboard`, or from GitHub with `dsh plugin --profile web add github:Cassius0924/dsh-usage-dashboard`, or from a local checkout with `dsh plugin --profile web add ./path/to/dsh-usage-dashboard`.
$ dsh plugin --profile web add @cassius0924/dsh-usage-dashboard
- 02
Restart dsh (`dsh --profile web`) so the plugin loads.
$ dsh --profile web
- 03
Open any conversation in the GUI: the 「额度」 tab hangs off `conversation.view`, so the New Session home page has no tab bar.
Verify the integration
- The top bar of an open conversation shows `Chat / Trajectory / 额度`.
- A draggable floating widget sits in the bottom-right corner with balance and today's spend; drag it and it snaps to the nearest corner, and the position survives a page reload.
- Open the 「额度」 tab: the first load may show a skeleton screen while the session logs are replayed.
03DSH integration and capability boundaries
Standard DSH plugin package with a host half and a client half: the host registers `/api/dsh-usage-dashboard/*` routes that aggregate balance and usage from local session logs, and the client registers a draggable floating widget plus a 「额度」 tab on `conversation.view`. Installed with `dsh plugin`.
Floating balance widget
Balance and usage data aggregated by the host half→A draggable widget with balance and today's spend, collapsible to a single line
Remembers visibility, corner and collapsed stateAuto-refreshes the balance every 60 secondsSpend dashboard
Local DSH session logs replayed by the host half→Balance with estimated days remaining, today / this month / all-time windows, and rankings by model and by session
Costs are estimates priced from `src/pricing.ts`, not the official billPeak / off-peak and cache savings
Per-record usage with its timestamp, model and cache fields→Peak-versus-off-peak share with the savings available from shifting work, plus cache hit savings
Peak windows are judged in Beijing time and do not follow the machine time zoneImage / multimodal usage
Session logs including user attachments and tool-result screenshots with their width and height→Image count, estimated tokens and cost under the official conversion rule, and each group's share of window input and cost
Images are attributed to the next model call and priced with that call's window and modelCharts, heatmap and balance alert
Aggregated usage buckets and the configured alert threshold→30-day daily and 0–23 hourly grouped bars, a one-year heatmap, and a warning bar with a top-up link when the balance falls below the threshold
The top-up button opens the DeepSeek platform recharge page in a new browser tab
04Who is it for? When not to use it?
Good for
- Anyone running agents in DSH who only ever saw a single balance number
- Operators of queued or batch jobs who can schedule work and want the half-price window
- People who leave long agent runs unattended and do not want to be surprised by an empty balance
Not for
- Usage comes from the local DSH session logs only; spend on other machines or other accounts never shows up in the dashboard.
- Every figure is an estimate: DeepSeek-side discounts and credit consumption order are not modelled, and unrecognised models are priced at the more expensive `deepseek-v4-pro` rate.
- Balance reads need the DSH account login; without it the plugin falls back to `DEEPSEEK_API_KEY` from the model settings or `$DSH_HOME/.credentials.yaml`.
05Compatibility, maintenance and safety notes
- Usage comes from the local DSH session logs only; spend on other machines or other accounts never shows up in the dashboard.
- Every figure is an estimate: DeepSeek-side discounts and credit consumption order are not modelled, and unrecognised models are priced at the more expensive `deepseek-v4-pro` rate.
- The first usage load replays every session log (about 5 seconds on the author's machine), which is why the host memoizes for 5 minutes and the UI shows a skeleton screen meanwhile.
- Balance reads need the DSH account login; without it the plugin falls back to `DEEPSEEK_API_KEY` from the model settings or `$DSH_HOME/.credentials.yaml`.
MIT · v0.9.2 released 2026-11-12, last push 2026-11-12 · README states costs are estimates and usage is limited to the local machine's session logs
06Frequently asked questions
How do I install it in DeepSeek Harness?
Run `dsh plugin --profile web add @cassius0924/dsh-usage-dashboard` (or the `github:Cassius0924/dsh-usage-dashboard` form, or a local checkout path), then restart dsh with `dsh --profile web`. pnpm must be available locally because `dsh plugin` forwards to it.
Where does the dashboard show up?
The top bar gains a 「额度」 tab next to `Chat / Trajectory`, and a draggable floating widget sits in the bottom-right corner. The tab hangs off `conversation.view`, so open any conversation first — the New Session home page has no tab bar.
Do I need an API key for the balance?
No. The balance prefers the DSH account login, which authorizes in the browser. `DEEPSEEK_API_KEY` is only the fallback when no account is signed in; it can be set in Settings → Model or placed in `$DSH_HOME/.credentials.yaml`.
Are the numbers the same as my DeepSeek bill?
No. Everything is an estimate computed from local session logs, and it ignores DeepSeek-side discounts and credit consumption order. Unrecognised models are priced at the more expensive `deepseek-v4-pro` rate, so check the official bill for the real amount.
Why is the first load slow?
The host has to replay all local session logs (about 5 seconds on the author's machine) and then memoizes the result for 5 minutes; the interface shows a skeleton screen during that first pass.
07Related DSH workflows
dsh-tui
by ccch1mneyyy
Claude Code 风格全屏终端 TUI:像素鲸鱼顶栏、双流光大字、实时工作状态行、思考流式展开、双击 Esc 时间回溯、上下文进度条 + TPS 仪表;接入 Agent preset(standard/code/minimal/cordis)、Skills、MCP、Goals、Todos、子代理,/ 命令注册表与随附技能(audit/bug/review/practice/pr_comments/release-notes/vuln-check);纯插件挂载零核心改动。
dsh-better-sidebar
by omdsh-dev
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
dsh-media-desk
by woniuniuniu
Capture ideas and generate scripts, titles, covers, images, storyboards, schedules, and review data in a sidebar media workspace.
dsh-drawai
by fourzkw
Create diagram artifacts and use Draw.io-oriented tools from a DSH profile.
08Data and sources
标准 DSH 插件包(bundle + client 双面包),用 `dsh plugin` 装:
装上之后 GUI 里多两样东西:右下角一个可拖动的**悬浮额度窗**,顶部栏多一个**「额度」tab**。
- `lib/index.js` —— Host 半(ESM,Node),注册 `/api/dsh-usage-dashboard/*` 路由。
This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-11-25. Found an error? Submit a correction.
Best DeepSeek Harness Plugins
Twelve plugins worth installing first — picked from the whole catalog, across every category.
