dsh-usage-suite: DSH Usage Fee Statistics and Question Pinning

Introduction

When running long conversations and parallel multi-workspace sessions in DeepSeek Harness (DSH), token consumption and actual costs are often scattered across sessions and UI surfaces, making it hard to tell at a glance “how much this round cost” or “how much has been spent today.” Official pricing also distinguishes between peak and off-peak hours based on Beijing time, and without the interface labeling the current time period, doing mental math can easily lead to errors. After scrolling up in a long conversation, the question currently being followed up on also leaves the viewport, making it awkward to return to the input area to cross-reference the context.

Below is the community plugin dsh-usage-suite (maintainer xfpuls): it bundles usage and cost statistics and question pinning into the DSH desktop client side, and adds a few lightweight desktop ops entries in the sidebar. The current plugin version is 1.3.0 (MIT), and it belongs to the client-side category of plugins in the DSH ecosystem; the community catalog is at SkillHub, and the source code and documentation are on GitHub.

What is this

dsh-usage-suite is a plugin for the DSH desktop client (Web client injection): it does not replace official billing, but per the README’s rules displays this round’s cost, today’s tokens and spending in the interface, and labels whether the current time is off-peak or peak; at the same time it fixes the latest question at the top of the conversation area, clickable to jump back to the corresponding conversation position. It also provides auxiliary capabilities such as restarting the desktop client, reloading the interface, and a collapse toggle for the “Official” group on the plugin page.

DSH itself follows the “everything is a plugin” extension approach; community catalogs like SkillHub are maintained by third parties and have no official affiliation with DeepSeek / High-Flyer. Before installing, it is recommended to read the repository source code and license yourself to confirm the plugin will run with the current DSH process privileges.

Usage and cost statistics

Two display locations in the interface

Location Content shown
Stats row below the input box Cost of this round, e.g. “This round ¥0.1234” (amount kept to four decimal places; hover for token details)
Sidebar bottom, above “Remote Control” Today’s usage: total tokens across all workspaces and the parent session, total spending, and whether the current time is off-peak or peak

With this layout, you can see the current round’s cost before typing, and see the daily summary and time-period label in the sidebar, without leaving the current workspace to estimate in an external spreadsheet.

Billing rules (consistent with the README)

The plugin states its billing rules match DeepSeek’s official ones; key points:

  1. Peak hours: Beijing time Monday–Friday 09:00–12:00, 14:00–18:00.
  2. Off-peak hours: all other times, including weekends and statutory holidays; off-peak price = half the peak price.
  3. Cache writes: billed as “input (cache miss)” (the plugin handles it this way when the official page doesn’t list a separate price).
  4. Time-period determination: billing time periods are determined by Beijing time; the “today” boundary is determined by local timezone midnight.

The README mentions a built-in price table (yuan / million tokens) collected from the official pricing page; specific values are subject to the repository’s current README and the official pricing page, and will not be repeated here to avoid inconsistency with upstream updates.

Question pinning

There is a fixed bubble at the top-right of the conversation area, with text like “Round N · Current question · Click to jump here”, and below it the current latest question.

  1. When scrolling through a long conversation, the bubble stays fixed in place.
  2. Each time a new message is sent, the bubble content updates to the latest question.
  3. Clicking the bubble jumps back to the corresponding conversation position, making it easy to check context within long threads.

The README notes: the pinned bubble covers a small area at the top of the message area, and this occlusion must be accepted layout-wise.

Sidebar and plugin page additional capabilities

Desktop buttons at the top of the sidebar

  • Restart desktop: restarts the entire DSH application.
  • Reload interface: only reloads the current interface without interrupting tasks already running.

“Official” group collapse on the plugin page

On the “Plugins” page, there is a toggle on the right side of the “Official” row to collapse or expand the entire group of official plugins, making it easier to organize the list when there are many plugins.

Installation and activation

Currently neither the README nor package.json provides a fixed CLI installation command like dsh plugin add …. The typical approach is:

  1. Open the Plugins management page in the DSH desktop client and install or update the plugin from community sources (the exact entry point depends on the DSH version you use).
  2. Open the SkillHub catalog page to view the plugin’s current documentation and installation instructions.
  3. When you need to verify implementation details, read README.md, package.json, and cordis.patch.yml in the GitHub repository.

The plugin declares itself as a client-side Web injection in package.json, and depends on UI slots such as @deepseek-ai/dsh-client-ui-slots provided by DSH; once enabled, the interface patch is loaded via the Cordis bundle without needing extra config file fields (the materials do not list user-editable configuration options).

Typical usage

After installation and activation, usage is mainly observing the interface, with no separate commands needed:

  1. View the cost of this round below the input box; hover over the stats row to see token details when needed.
  2. Check today’s usage, total spending, and whether the current period is peak or off-peak above “Remote Control” in the sidebar, to help decide whether to continue with large-volume calls.
  3. In long conversations, use the top pinned question bubble to confirm the current round and the original question text, and click to jump back to that position when necessary.
  4. When the interface behaves abnormally but tasks are still running, try Reload interface first; use Restart desktop when a full DSH restart is needed.

Use cases and caveats

Who it’s for

  • Developers who do multi-round conversations in the DSH desktop client daily and want to see per-round and per-day costs in real time.
  • Users who want to match DeepSeek’s peak/off-peak pricing habits and see the time-period label directly in the interface.
  • Scenarios where you frequently need to return to the “current question” position in long-context conversations.

Be aware

  • The statistics are the plugin’s estimated display based on official rules and the built-in price table; they are not invoices or console bills; amounts and tokens are subject to actual billing.
  • Billing time periods use Beijing time, while the “today” boundary uses local timezone midnight; if your computer’s timezone is not UTC+8, the Beijing-time label and the local date boundary on the interface may not align (known limitation noted in the README).
  • Question pinning occludes a small section at the top of the message area.
  • The plugin runs with the current DSH process privileges; before installing, review the source code and MIT license, and install only from trusted sources.

Conclusion

dsh-usage-suite consolidates the scattered pieces of “how much was spent, what time period we’re in, what the current question is” in the DSH desktop client into three places—the input box, the sidebar, and the conversation top bar—and adds lightweight desktop restart and plugin page organization capabilities. If you do usage self-checking and long-conversation navigation on the client side, you can get the plugin from the community catalog or GitHub and enable it as described above.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye