chenyinrusi/dsh-llm-cost0

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.

包名
dsh-llm-cost
版本
0.5.0
许可证
MIT
最近更新
2026年8月16日

安装

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

配置

cordis.patch.yml 里该行的 config 可设(全部可选):

默认说明
pricing内置快照内联的定价覆盖,合并到快照之上
pricingFile~/.dsh/llm-cost/pricing.override.jsonrefresh 工具写出的覆盖文件
refreshProvider价格抽取调用的 provider 路由(可选:配了则优先用)
refreshModel价格抽取调用的模型 id(可选:配了则优先用)

配置由 zod Config schema 校验(cordis 在 apply 前执行):省略 config 键 = 全默认;config: {} 合法;不要写空 config:——YAML 会解析成 null,被 schema 响亮拒绝(带 entry 名)。未知键被静默丢弃。