TheTianzz/dsh-billing ↗★ 6

dsh-billing

显示 DeepSeek 账户余额与会话费用,含命令、工具和 Web 悬浮显示。 关注 API 花费的用户适用;可自定义各模型单价与峰谷价。

包名
dsh-billing
兼容性
待验证
版本
0.4.1
许可证
MIT
最近更新
2026年8月14日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TheTianzz/dsh-billing

配置(全部可选)

config.pricing 按模型覆盖单价(元/百万 tokens),支持峰谷价自动切换(见 host.js 顶部默认值)。例如:

config:
  pricing:
    deepseek-v4-pro:
      cacheHit: 0.025
      cacheMiss: 3
      output: 6
      schedules:
        - effectiveAt: '2026-08-17T00:00:00+08:00'
          timezoneOffsetMinutes: 480
          peakWindows: [[9, 12], [14, 18]]
          offPeak: { cacheHit: 0.15, cacheMiss: 4.5, output: 13.5 }
          peak: { cacheHit: 0.30, cacheMiss: 9.0, output: 27.0 }