DeepSeek account balance and session cost under the composer, with a live peak/off-peak pricing badge (Beijing time), a countdown to the next pricing switch, hover price tables, and usage advice.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:huanyuLv/dsh-balance-tide
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. Only install sources you trust, and pin a commit (github:owner/repo#sha).
README
English | 简体中文
DeepSeek Harness (DSH) Web plugin: account balance + peak/off-peak pricing tide indicator.
A live readout row under the composer:
[standard] peak pricing starts in 2d 5h | Balance ¥28.78 | ~¥0.42 this session | ?
Once peak/off-peak pricing takes effect (2026-08-17), the badge and countdown follow Beijing time in real time:
[off-peak] peak in 2h 15m | Balance ¥28.78 | ~¥0.42 this session | ? ← off-peak hours
[peak] off-peak in 1h 30m | Balance ¥28.78 | ~¥0.42 this session | ? ← peak hours
Features
- Pricing badge:
standard(before 2026-08-17) /peak/off-peak, judged live in Beijing time - Countdown: time remaining until the next pricing switch, ticking every second — plan your usage ahead
- Balance: live balance from the official
/user/balanceendpoint (granted / topped-up split) - Session cost: estimated at current-period prices (reuses
sessionProjections; same-turn/step samples replace rather than double-count) - Hover details: full price tables for the current and the next period, the peak/off-peak gap (peak = off-peak × 2), peak windows, and usage advice
?icon: opens the official pricing page https://api-docs.deepseek.com/zh-cn/quick_start/pricing/- Zero config: reuses
DEEPSEEK_API_KEYfrom DSH credentials — no key in the repo, ever - i18n: UI follows the interface language (中文 / English)
Peak/off-peak schedule (Beijing time)
Per the official pricing page (2026-08 edition):
- From 2026-08-17 00:00, peak/off-peak pricing applies; before that, current flat prices
- Peak windows: 09:00–12:00 and 14:00–18:00; all other hours are off-peak
- Off-peak = half of peak
| Model (per 1M tokens) | Flat (hit / miss / output) | Off-peak | Peak |
|---|---|---|---|
| deepseek-v4-flash | 0.02 / 1 / 2 | 0.05 / 1.5 / 4.5 | 0.10 / 3.0 / 9.0 |
| deepseek-v4-pro | 0.025 / 3 / 6 | 0.15 / 4.5 / 13.5 | 0.30 / 9.0 / 27.0 |
Install
From npm (once published)
dsh plugin --profile web add dsh-balance-tide
From the Git URL
dsh plugin --profile web add https://github.com/huanyuLv/dsh-balance-tide
From a local directory
dsh plugin --profile web add file:/path/to/dsh-balance-tide
Restart dsh web to take effect. Requires pnpm (npm i -g pnpm).
Configuration (in $DSH_HOME/profiles/web/cordis.patch.yml)
- id: dsh-balance-tide
config:
refreshIntervalMs: 300000 # how often the host polls the balance API
clientPollIntervalMs: 30000 # how often the browser re-reads the cache
currency: CNY
Compatibility
- DeepSeek Harness
0.1.0-rc.6+ (web profile) - Cross-platform: pure JavaScript + standard browser CSS, no native modules
- License: MIT
Links
More in this category
zhu1090093659/dsh-web-ui#packages/dsh-web-ui-all★ 2078
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 962
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
omdsh-dev/DSH-better-sidebar★ 834
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-at-file★ 147
Codex-style `@file` mentions: search workspace files in the composer and attach their contents to prompts.
huiliyi37/dsh-tianshu-tui★ 139
A terminal UI (TUI) for DeepSeek Harness.
Nagi-ovo/dsh-visualize★ 86
In-conversation generative UI: the model renders interactive HTML cards into the chat stream, with streaming preview and sandboxed rendering.