hhy66/dsh-balance-stats ↗★ 0

dsh-balance-stats

DSH 设置页插件:DeepSeek 账户余额与本机会话 token 消耗统计面板

包名
dsh-balance-stats
兼容性
待验证
Harness 依赖范围
^0.1.0-rc.6
Cordis 依赖范围
^4.0.1
版本
0.6.0
许可证
MIT
最近更新
2026年8月25日

同名包的其他仓库

安装

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

⚙️ 配置

编辑 ~/.dsh/profiles/web/cordis.patch.yml(也可直接改插件自带的 cordis.patch.yml 默认值):

- id: dsh-balance-stats
  config:
    refreshIntervalMs: 3000      # 余额查询间隔(毫秒):3 秒 = 悬浮胶囊余额 3 秒热刷新
    warningThreshold: 10        # 余额低于此值 → 黄灯(元)
    dangerThreshold: 5          # 余额低于此值 → 红灯(元)
    dailyBudget: 20             # 单日预算上限(元);0 = 关闭预算制动
    currency: CNY
    prices:                     # 非 V4 模型的静态单价(元/百万 token)
      deepseek-chat: { cacheHit: 0.5, cacheMiss: 2, output: 8 }

改完重启 dsh web 生效。