TSE2006/dsh-spend-meter ↗★ 1

@local/spend-meter

Shows the remaining DeepSeek balance and this conversation's spend in the composer dock

套件
@local/spend-meter
相容性
待驗證
版本
1.0.0
授權
MIT
最近更新
2026年11月1日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TSE2006/dsh-spend-meter

配置示例

在 profile 的 cordis.patch.yml(%USERPROFILE%\.dsh\profiles\ \)里给 spend-meter 行加 config:

- id: spend-meter
  config:
    holidays: ['2026-10-01', '2026-10-02']   # 法定节假日全天按空闲价
    searchPerCall: 0.005
    turnHistory: 120
    currency: CNY
    budget:
      daily: 20            # 今日上限,单位同 currency;不配或填 0 表示不限
      monthly: 200         # 本月上限
      warnRatio: 0.8       # 到这个比例变黄,超过 100% 变红并提示
    models:
      deepseek-flash:
        peak: { cacheHit: 0.04, cacheMiss: 2, output: 8 }
        offPeak: { cacheHit: 0.02, cacheMiss: 1, output: 4 }

本插件不声明 Config,config 不做 schema 校验,字段全部按上表兜底。