Back to directory

dsh-usage-dashboard

In a curated listMaintenance: Active

cassius0924/dsh-usage-dashboard

DSH 使用量/统计仪表盘插件,展示 token 与调用数据。

View on GitHub
$ dsh plugin --profile web add @cassius0924/dsh-usage-dashboard

13

stars

2

forks

TypeScript

Language

MIT

License

2026-08-14

Created

2026-11-12

Last push

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

  1. 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

  2. 02

    Restart dsh (`dsh --profile web`) so the plugin loads.

    $ dsh --profile web

  3. 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

DSH integrationNative runtime

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 seconds
  • Spend 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 bill
  • Peak / 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 zone
  • Image / 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 model
  • Charts, 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`.
2026-08-142026-11-12v0.9.2

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.

08Data and sources

  • Author-claimedgithub.comb59cae94efc9…

    标准 DSH 插件包(bundle + client 双面包),用 `dsh plugin` 装:

  • Author-claimedgithub.comb59cae94efc9…

    装上之后 GUI 里多两样东西:右下角一个可拖动的**悬浮额度窗**,顶部栏多一个**「额度」tab**。

  • Author-claimedgithub.comb59cae94efc9…

    - `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.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.