poliucode/dsh-balance ↗★ 2

dsh-balance-hud

侧边栏常驻显示账号余额与今日消费 适合需要实时监控DeepSeek账号余额、消费情况并接收低额告警的用户。

套件
dsh-balance-hud
相容性
待驗證
版本
0.4.1
授權
MIT
最近更新
2026年10月26日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:poliucode/dsh-balance

4. 配置

在 profile 的 cordis.patch.yml 里按 id: dsh-balance-hud 覆盖即可(bundle 自带一层默认值)。全部可省略:

配置项默认说明
sourceautoauto / account / api-key
apiKeyRefDEEPSEEK_API_KEYAPI Key 路由使用的凭据引用名
baseUrlhttps://api.deepseek.com官方接口根地址(可指向代理,允许带路径前缀)
refreshIntervalSeconds60宿主后台刷新间隔,夹紧到 15–3600
pollIntervalSeconds5下发给浏览器的轮询间隔,夹紧到 5–600
requestTimeoutMs15000单次 HTTP 超时,夹紧到 3000–60000
localezh-CN账号接口要求的调用方语言(只影响服务端文案)
displayCurrencyauto常驻行显示哪个币种:auto / CNY / USD
showInRailtrue侧边栏折叠成图标栏时是否仍显示
todaySpendtrue是否统计并展示今日消费
lowBalanceThresholds{ CNY: 2, USD: 0.3 }低余额告警阈值(币种 → 金额),0 表示该币种不告警;只写关心的币种
dayTimeZoneAsia/Shanghai计算「今天」用的时区(DeepSeek 按北京时间计费)
flow见 2.1流速扫光:enabled / windowSeconds / holdMs / thresholds
debugfalse输出刷新来源等调试日志(不含凭据)

示例:

- id: dsh-balance-hud
  name: 'dsh-balance-hud'
  config:
    source: api-key
    displayCurrency: USD
    refreshIntervalSeconds: 30