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.

AI 분석

核心用途是精确计量和展示每次对话的 LLM 消耗成本。适合需要监控 API 账单、对每一步推理开销进行可视化审计的用户,支持通过配置文件自定义价格表。

패키지
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 名)。未知键被静默丢弃。