deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:huanyuLv/dsh-balance-tide
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT 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
standard (before 2026-08-17) / peak / off-peak, judged live in Beijing time/user/balance endpoint (granted / topped-up split)sessionProjections; same-turn/step samples replace rather than double-count)? icon: opens the official pricing page https://api-docs.deepseek.com/zh-cn/quick_start/pricing/DEEPSEEK_API_KEY from DSH credentials — no key in the repo, everPer the official pricing page (2026-08 edition, last verified 2026-08-15):
| 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 |
From npm (recommended)
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).
$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
allowedHosts: [] # register your domain here if you front dsh with a reverse proxy
When the official prices or the schedule change, override them in config — no need to wait for a plugin release:
- id: dsh-balance-tide
config:
tideCutoff: '2026-08-17T00:00:00+08:00' # when peak/off-peak pricing starts
peakWindows: # peak hours (Beijing time, [start, end))
- { start: 9, end: 12 }
- { start: 14, end: 18 }
tidePrices: # per-tier prices (per 1M tokens)
flat:
deepseek-v4-flash: { cacheHit: 0.02, cacheMiss: 1, output: 2 }
peak:
deepseek-v4-flash: { cacheHit: 0.1, cacheMiss: 3, output: 9 }
offpeak:
deepseek-v4-flash: { cacheHit: 0.05, cacheMiss: 1.5, output: 4.5 }
peakWindows: [] means there are no peak hours at all — use it if the tiered pricing
is ever withdrawn.
DEEPSEEK_API_KEY from DSH credentials. The apiKey config
option is an escape hatch only — it lands in a config file in plaintext, so avoid it.
baseUrl must be https; plaintext http is rejected outright (it would put the key on
the wire)./query-tide serves your account balance, so readers are checked.
The Host must be localhost, an IP literal, or a domain registered in allowedHosts
(this blocks DNS rebinding); any request carrying an Origin must be same-origin (this
blocks arbitrary web pages from reading your balance). Rejected reads get a 403.baseUrl never leaks to the frontend.deepseek-chat / deepseek-reasoner are no longer listed on the official pricing page —
the static entries in prices are a fallback, not a verified quote.npm install
npm test
0.1.0-rc.6+ (web profile)CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。