iiiweiii/dsh-cost-saver0

dsh-cost-saver

Cost-saving companion for DeepSeek Harness: peak/off-peak schedule advisor, cache-hit analysis, budget caps with alerts, real-time composer.dock status bar and cost panel.

包名
dsh-cost-saver
版本
0.2.1
许可证
MIT
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:iiiweiii/dsh-cost-saver

配置

全部可选,编辑 ~/.dsh/profiles/web/cordis.patch.ymlcost-saver 一节的 config

- insert:
    - id: cost-saver
      name: dsh-cost-saver
      config:
        currency: USD            # USD | CNY
        peakHours: [[9, 12], [14, 18]]
        peakOffpeakRatio: 2      # 闲时价 = 高峰价 / 该比值
        prices:                  # 覆盖模型价格(USD / 1M tokens)
          deepseek/deepseek-v4-flash:
            input: 0.15
            output: 0.29
            cacheRead: 0.02
            cacheWrite: 0.15
        budgets:
          session: 10            # 单会话预算上限(USD)
          daily: 50
          monthly: 500
        warnRatio: 0.8           # 达到预算 80% 时告警
        overLimit: alert         # alert | block
        webhookUrl: ""           # 可选告警 webhook(POST JSON)