dsh-balance-hud
DeepSeek Harness 插件:在桌面端侧边栏底部常驻实时显示账号余额、今日消费与低余额告警。 适合需要实时监控DeepSeek账号余额、消费情况并接收低额告警的用户。
同名パッケージの別リポジトリ
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:poliucode/dsh-balanceドキュメント
README 全文を読む ↗4. 配置
在 profile 的 cordis.patch.yml 里按 id: dsh-balance-hud 覆盖即可(bundle 自带一层默认值)。全部可省略:
| 配置项 | 默认 | 说明 |
|---|---|---|
source | auto | auto / account / api-key |
apiKeyRef | DEEPSEEK_API_KEY | API Key 路由使用的凭据引用名 |
baseUrl | https://api.deepseek.com | 官方接口根地址(可指向代理,允许带路径前缀) |
refreshIntervalSeconds | 60 | 宿主后台刷新间隔,夹紧到 15–3600 |
pollIntervalSeconds | 5 | 下发给浏览器的轮询间隔,夹紧到 5–600 |
requestTimeoutMs | 15000 | 单次 HTTP 超时,夹紧到 3000–60000 |
locale | zh-CN | 账号接口要求的调用方语言(只影响服务端文案) |
displayCurrency | auto | 常驻行显示哪个币种:auto / CNY / USD |
showInRail | true | 侧边栏折叠成图标栏时是否仍显示 |
todaySpend | true | 是否统计并展示今日消费 |
lowBalanceThresholds | { CNY: 2, USD: 0.3 } | 低余额告警阈值(币种 → 金额),0 表示该币种不告警;只写关心的币种 |
dayTimeZone | Asia/Shanghai | 计算「今天」用的时区(DeepSeek 按北京时间计费) |
flow | 见 2.1 | 流速扫光:enabled / windowSeconds / holdMs / thresholds |
debug | false | 输出刷新来源等调试日志(不含凭据) |
示例:
- id: dsh-balance-hud
name: 'dsh-balance-hud'
config:
source: api-key
displayCurrency: USD
refreshIntervalSeconds: 30