Preface¶
When running conversations or debugging plugins in DeepSeek Harness (DSH) for extended periods, checking wallet balances and whether the current time is billed at peak rates often requires opening another page or estimating from memory. The official price list distinguishes between peak and idle periods, and the rules for weekends and holidays are not intuitive. The community plugin dsh-sidebar-status (maintainer: sunzphy, category: web tools) pins the account’s recharge balance, gift balance (if any), and the current peak/idle time slot at the bottom of the sidebar, and provides a one-click jump to the official recharge page to reduce context switching.
What Is This¶
dsh-sidebar-status is a browser-side plugin for the DSH Web client (MIT license, current package version 0.1.0). It occupies a fixed status area at the bottom of the sidebar, displaying the DeepSeek account wallet balance (recharge balance + gift balance when available) and the peak / idle time slot calculated according to the DeepSeek mainland China price list. Balance data comes from DSH’s account subsystem; it does not read DEEPSEEK_API_KEY, nor does it call the api.deepseek.com/user/balance API-Key route.
UI mockup (from the project README):
Balance ¥10.46 ⟳ ● Idle period Recharge
- Balance: shown when data is available; silently omitted when unavailable—never shows 0 or a placeholder.
- ⟳: manually refresh the balance.
- Time slot: hover the mouse to see when the next peak or idle period begins; the time slot is computed locally and is independent of login state—it is displayed whenever the plugin can compute it.
- Recharge: opens the official recharge page.
Directory page: https://www.skillhub.cn/plugins/sunzphy/dsh-sidebar-status
Source code and docs: https://github.com/sunzphy/dsh-sidebar-status
Core Features¶
Balance¶
The balance is read only once each on window focus and after each answer round; there is no scheduled polling. The data comes from the wallet of the logged-in DeepSeek account, relying on the account subsystem that requires DSH >= 0.1.7-rc.2.
Peak / Idle Time Slots¶
The rules align with the DeepSeek mainland China price list: peak is Beijing time Monday–Friday (excluding statutory holidays in China) 9:00–12:00 and 14:00–18:00, with unit prices twice those of idle periods; idle covers all other times, including weekends and statutory holidays all day.
Implementation notes: weekends and fixed-date holidays such as New Year’s Day, Labor Day, and National Day are determined by simple rules; Qingming uses the Shouxing formula; Spring Festival, Dragon Boat Festival, and Mid-Autumn Festival use astronomical calculations (Meeus new-moon series + Intl month labels), so no holiday table needs to be maintained every year. Consecutive holidays formed by makeup workdays are not modeled—a weekday that is actually a holiday solely due to a makeup arrangement may still display as peak, and the error is in the direction of “quoting a higher price than actual,” never a lower one.
For slot selection, CSS, and astronomical algorithm details, see the top comment and each #region section in lib/client.js in the repository.
Installation and Activation¶
Install in one command from the Web side, then refresh the page:
dsh plugin --profile web add github:sunzphy/dsh-sidebar-status
Other methods:
- Download the
.tgzfrom Releases and rundsh plugin --profile web add <file path>. - Desktop (Electron):
--profile desktopis rejected by the CLI. For manual installation, place the package into~/.dsh/profiles/desktop/node_modules/and add a host entry to~/.dsh/profiles/desktop/cordis.patch.yml(do not writeinject:, as this plugin has no host-side behavior; writing a non-existent service name will cause the plugin to fail to start with no visible error in the UI):
- insert:
- id: sidebar-status
name: 'dsh-sidebar-status'
Uninstall the Web installation:
dsh plugin --profile web remove dsh-sidebar-status
For manual installation, delete the corresponding line from the patch and remove the package directory.
Environment Requirements and Typical Outcomes¶
| Condition | Description |
|---|---|
| DSH | >= 0.1.7-rc.2 (engines matches README) |
| Account | To view balance, a DeepSeek account must be logged in; with only an API Key and no login, only the time slot is shown |
| Billing basis | DeepSeek mainland China price list |
DSH Version Channels¶
The account subsystem was added in 0.1.7. On npm, latest is still 0.1.5-rc.3 (no account), so npx @deepseek-ai/dsh web by default can only show the time slot, not the balance. When balance is needed, explicitly use next:
npx @deepseek-ai/dsh@next web
DeepSeek Harness Desktop ships with 0.1.7-rc.2 built in, so no separate channel switch is normally needed.
Login and Web / Desktop¶
Account login is Desktop (Electron) renderer-only in the official implementation (the account capability is not registered when dshDesktop is not detected). Therefore:
| Environment | Balance | Time slot |
|---|---|---|
| Desktop + logged-in account | ✅ | ✅ |
| Desktop + API Key only | ❌ | ✅ |
Pure dsh web |
❌ (no login entry) | ✅ |
| Web, but previously logged in on desktop | ✅ (credentials shared) | ✅ |
Use Cases and Notes¶
This is suitable for developers who want to keep the wallet balance and current billing time slot visible in the DSH sidebar at all times, and who need to jump to recharge from the same location. The plugin runs under the permissions of the current DSH process. Before installing, it is recommended to review the repository source code and the MIT license to ensure it meets your security and compliance requirements.
The community directory SkillHub and the GitHub repository are maintained by the community and have no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem follows the “everything is a plugin” principle, and this plugin is one optional extension within it.
Conclusion¶
dsh-sidebar-status brings account balance, peak/idle time slots, and the recharge entry point into the bottom of the sidebar: time slots are computed locally and do not depend on login; balance is tied to DSH 0.1.7’s account capability and desktop login. For installation, follow the README—on the Web, --profile web add github:sunzphy/dsh-sidebar-status is all you need.