chenyinrusi/dsh-llm-cost ↗★ 1

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

패키지
dsh-llm-cost
호환성
미검증
Harness peer 범위
^0.1.1-rc.2
Cordis peer 범위
^4.0.1
버전
0.6.1
라이선스
MIT
최근 업데이트
2026. 8. 24.

같은 패키지 이름의 다른 저장소

설치

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