ZiOstudio/dsh-budget-handoff ↗★ 1

dsh-budget-handoff

DeepSeek Harness 会话预算插件:按官方价目表实时算账,预算耗尽时拦截任务并落盘交接快照。 适合需要严格控制单个会话或全局API消费额度的用户。

Package
dsh-budget-handoff
Compatibility
Unverified
Cordis peer range
^4.0.4
Version
0.2.0
License
MIT
Last updated
Oct 7, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ZiOstudio/dsh-budget-handoff

配置(一般不用动)

默认预算是 10 元。要改全局默认值,在 profile 的 cordis.patch.yml 里给插件加 config::

- insert:
    - id: dsh-budget-handoff
      name: dsh-budget-handoff
      config:
        budgetCNY: 20.0
字段类型默认说明
budgetCNYnumber10.0每会话预算,单位人民币元;下限 0.0001。单个会话的临时覆盖请用 /budget,不要改这里。
verbosebooleanfalse打开后把逐笔用量与计费打进 stdout。默认关闭 —— 一次普通任务一行都不打,只留启动横幅、拦截提示和卸载证明

也可以完全不给 config: —— schema 会回填默认值。