Keeps a pricing-period badge in the sidebar footer of the Web UI. It shows whether the DeepSeek API is currently in an off-peak or peak period, plus how long until the next switch. Click it to open the rules, the price table currently in force, and the balance of the signed-in DeepSeek account.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:hojas/dsh-price-tip
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
English · 中文 — this is the English edition of README.md, which stays canonical.
A DSH (DeepSeek Harness) plugin that keeps a pricing-period badge in the sidebar footer of the Web UI. It shows whether the DeepSeek API is currently in an off-peak or peak period, plus how long until the next switch. Click it to open the rules, the price table currently in force, and the balance of the signed-in DeepSeek account.

The sidebar footer in the running app: a green crescent = off-peak, a green slogan next to the status text, and a countdown to the next switch on the right.

Click to expand: the current period and its discount, time remaining and the switch instant (local time zone, following the UI language), the slogan, the account balance (topped-up and granted balance, last-updated time, refresh and top-up actions), the price table (bold = price in force, struck through = peak price), and the rules and sources at the bottom. For the sidebar and panel in the dark theme, see docs/verification.md.
What it reminds you of
| Period | Beijing time | Price |
|---|---|---|
| Peak | Mon–Fri 09:00–12:00 and 14:00–18:00 (Chinese public holidays excluded) | Standard price |
| Off-peak | All other times, including all day on weekends and public holidays | 50% of the peak price |
⚠️ The 2025 "00:30–08:30 off-peak discount" scheme was withdrawn on 2025-09-05, and
deepseek-chat/deepseek-reasonerwere retired on 2026-07-24 — neither is the rule in force. The rules and the price table follow the official DeepSeek pricing page (checked 2026-10-10).
Features
- Follows the calendar: weekends and public holidays are off-peak the whole day; the 19 holidays that fall on weekdays in 2026 are built in, and years the calendar does not cover are labelled "estimated from weekdays".
- Balance: opening the panel reads the signed-in DeepSeek account once (topped-up balance, granted balance, two decimals with thousands separators — the same figures as "Settings → Account"), with a last-updated time, a manual refresh, and a top-up entry point. It goes through DSH's own Remote namespace and the plugin never touches any credential; when signed out it shows a single line of text, and a profile without an account controller hides the whole section. It reads only when the panel opens — no polling.
- Mood value: off-peak tells you to "Stand up and pedal", peak reminds you to "Wince as you pedal" — the sidebar line already carries it, and opening the panel gives the full sentence, "cheap hours — go all out" / "peak rates — every push stings".
- Bilingual: the copy lives in the Harness locale namespace, so switching the UI language takes effect immediately.
- Zero dependencies, no build step:
client.jsis committed, so it works as soon as it is installed; the host half registers no tools and no session state. - Hackable: the rules, holidays and price table live in
src/policy.js; balance formatting and its state machine live insrc/balance.js. Rebuild after editing — see docs/development.md.
How to install
The plugin has zero dependencies and no lifecycle scripts, and it ships its build output, so installing it
needs no build step. All three paths below were exercised on DSH 0.2.0-rc.2 (the verification record is in
docs/verification.md).
| Path | What to do | When to use it |
|---|---|---|
| GitHub (recommended) | Settings → Plugins → paste https://github.com/hojas/dsh-price-tip |
General use |
| Tarball | Run pnpm pack, then paste the absolute path of the .tgz into the install box |
Offline / intranet / pinned version |
| Local directory | git clone, then paste the absolute path of that directory into the install box |
You want to change the code |
The first two give you only the runtime files and the documents (no src/, scripts/ or test/); use the
local directory if you want to change the rules. The command-line equivalent (non-desktop profiles only):
dsh plugin --profile <profile> add https://github.com/hojas/dsh-price-tip
Installation notes
- The desktop app only takes the UI path: the
desktopprofile is owned exclusively by Electron and the command line refuses it (profile "desktop" is managed exclusively by the Electron application). - Refresh the page after installing: the client bundle is appended to the boot graph by HMR, and a refresh makes sure it takes effect.
- A local directory installs a symlink (
link:): after editing, runnode scripts/build-client.mjsand refresh — no reinstall needed. - Version coupling: the styles use only
--dsw-alias-*theme tokens, the slot issidebar.footer.action, anddsh.client.injectdepends on the sidebar and locale client packages shipped with DSH; the balance is read through the optionalremote.accountnamespace (profiles without an account controller hide that section automatically). If DSH renames the slot, the locale API or the account Remote, this plugin has to follow.
Documents
| Document | Contents |
|---|---|
| docs/development.md | File layout, customising the rules, rule sources and edge assumptions, design trade-offs, build and tests |
| docs/verification.md | Verification status: what was actually exercised, screenshots, what was not verified, method |
Both documents are written in Chinese.
Links
More in this category
bowenliang123/dsh-context★ 5628
DSH context insight panel: Context dashboard + /context command + Context browser — one-stop context lifecycle management with categorized composition, content details, evolution trends, compaction/injection events, and stats.
Han-1413141/dsh-cost-meter★ 774
Per-session and daily API cost, budget with usage %, official balance, history dashboard, and one-click official price sync with peak/off-peak pricing.
wssfk12138/dsh-damage-pulse★ 291
Tracks DeepSeek token usage, per-call and session costs, and account balance with cache-aware charge animations in the DSH Web UI.
zh667/TokenLedger★ 207
Sidebar usage panel that attributes tokens to the relay site that served each request, read from your existing provider config: today/month/all-time totals, per-site and per-model breakdowns, a year activity heatmap, and New API / Sub2API / DeepSeek balances.
Ychris12138/dsh-usage-stats★ 193
Multi-provider usage dashboard with provider/model token breakdowns, calendar drill-downs, account balances, and OpenCode Go / Z.ai subscription quota tracking.
PolinniZhong/dsh-personal-center★ 114
Personal center for DeepSeek Harness: cross-session usage statistics with per-provider and per-model breakdown (auto-discovers configured models), per-model cost estimation, global custom instructions, a data-driven desktop pet with bitmap & vector skins, and a conversation status overview, all local and offline.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.