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.

AI 分析

核心用途是实时监控和控制 Token 消耗成本,支持单会话/每日/每月预算限制与告警。适合对 API 账单敏感、需要精细化管理大模型调用预算的个人或团队用户。

パッケージ
dsh-cost-saver
バージョン
0.2.1
ライセンス
MIT
最終更新
2026/08/21

インストール

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

ドキュメント

README 全文を読む ↗

配置

全部可选,编辑 ~/.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)