Back to directory

dsh-token-usage

In a curated listMaintenance: Active

laoyuehanni/dsh-token-usage

按请求粒度记录模型 token 用量(按天 JSONL,首次启动自动补齐历史),Web 设置面板「Token 用量」统计页(GET /token-usage/stats 路由)

View on GitHub
$ dsh plugin --profile web add @laoyuehanni/dsh-token-usage

17

stars

8

forks

TypeScript

Language

MIT

License

2026-08-14

Created

2026-11-06

Last push

Review model usage in DSH: Overview cards with cost, a trend chart and project/model/session/runtime-overhead detail views

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-10-25

License

Not specified by the author

01What can it help you accomplish?

  • Review model usage in DSH

    Overview cards with cost, a trend chart and project/model/session/runtime-overhead detail views

    DSH Web UI users

02How to install into DeepSeek Harness

Installation steps

  1. 01

    Run `dsh plugin --profile web add @laoyuehanni/dsh-token-usage`. GitHub direct installation is no longer supported.

    $ dsh plugin --profile web add @laoyuehanni/dsh-token-usage

  2. 02

    For a legacy `github:` installation (≤0.3.7, old name `dsh-token-usage`), remove the old name before adding the npm package again; usage data carries over.

Verify the integration

Not specified by the author

Rollback

  • Run `dsh plugin --profile web remove @laoyuehanni/dsh-token-usage`; data under `$DSH_HOME/token-usage/` is retained.

03DSH integration and capability boundaries

DSH integrationNative runtime

DSH plugin with a Token Usage page in Web UI Settings.

  • Date and model filters

    Shared filters with hourly trends for a single day and daily points for wider ranges

  • Main-column dashboard

    On DSH 0.2.1-rc.3+, More → Token Usage opens a full-width statistics dashboard.

04Who is it for? When not to use it?

Good for

  • DSH Web UI users

Not for

  • Auxiliary system-call usage cannot be backfilled because the host keeps no usage history for those calls.
  • Unpriced models warn and count as ¥0; displayed costs depend on per-model pricing.

05Compatibility, maintenance and safety notes

  • Auxiliary system-call usage cannot be backfilled because the host keeps no usage history for those calls.
  • Unpriced models warn and count as ¥0; displayed costs depend on per-model pricing.
2026-08-142026-10-25Not specified by the author

README claims at the pinned source commit

06Frequently asked questions

Where do I find usage statistics in DSH?

Open Web UI Settings → Token Usage.

Can I install this DSH plugin directly from GitHub?

No. Install `@laoyuehanni/dsh-token-usage` from npm with the documented DSH command.

Does removing the DSH plugin delete usage history?

No. Data under `$DSH_HOME/token-usage/` is kept for manual deletion if needed.

08Data and sources

github.comf15f57fNot specified by the author
  • Author-claimedgithub.comf15f57f1f60a…

    A dsh usage plugin that displays model token usage right in the Web UI.

  • Author-claimedgithub.comf15f57f1f60a…

    open **Settings** (the gear icon in the sidebar) and you'll find the **Token Usage** page

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-10-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.