gaishilaji/dsh-plugin-cost ↗★ 1
dsh-plugin-cost
DeepSeek Harness cost tracker: per-turn & total token usage and billing (DeepSeek pricing, peak/off-peak aware), rendered in the chat UI.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:gaishilaji/dsh-plugin-cost说明文档
阅读完整 README ↗配置项
| 字段 | 默认 | 说明 |
|---|---|---|
prices | 上表 | { [model]: { cacheHit, cacheMiss, output } },高峰价(元/百万) |
peakMode | auto | auto 按北京时间分时;peak 恒高峰;off-peak 恒空闲 |
defaultModel | deepseek-v4-flash | 读不到模型名时的兜底 |
budget.enabled | false | 是否启用每轮消费限额(也可在 Web 设置卡改) |
budget.perTurn | 1 | 每轮消费上限(元) |
budget.mode | 'warn' | 超限行为:'warn' 仅提示('ask' 预留,未实现) |
限额可双通道配置:cordis.patch.yml 的 config.budget(部署默认层)或 Web 设置页
Plugins → 本插件设置卡(用户层,写入 settings.yaml 后覆盖默认,保存即生效)。