dsh-llm-cost
Per-turn, per-step LLM cost metering for DeepSeek Harness: a costUsage session projection, a cost line under each message, and an LLM+web price auto-maintenance tool.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:chenyinrusi/dsh-llm-cost说明文档
阅读完整 README ↗配置
cordis.patch.yml 里该行的 config 可设(全部可选):
| 键 | 默认 | 说明 |
|---|---|---|
pricing | 内置快照 | 内联的定价覆盖,合并到快照之上 |
pricingFile | ~/.dsh/llm-cost/pricing.override.json | refresh 工具写出的覆盖文件 |
refreshProvider | 无 | 价格抽取调用的 provider 路由(可选:配了则优先用) |
refreshModel | 无 | 价格抽取调用的模型 id(可选:配了则优先用) |
配置由 zod Config schema 校验(cordis 在 apply 前执行):省略 config 键 = 全默认;config: {} 合法;不要写空 config: 键——YAML 会解析成 null,被 schema 响亮拒绝(带 entry 名)。未知键被静默丢弃。