121212165/dsh-plugin-cost-ledger ↗★ 0
dsh-plugin-cost-ledger
Persistent cost ledger for the DeepSeek Harness: every priced model call lands in a monthly JSONL file; /ledger renders monthly reports, /ledger-export writes CSV, and the agent can query its own spend via ledger_query. 适合需要精确统计、导出和查询模型消费明细的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:121212165/dsh-plugin-cost-ledgerドキュメント
README 全文を読む ↗配置
| 字段 | 默认 | 说明 |
|---|---|---|
enabled | true | 关掉后插件不挂任何东西 |
accounting | own | own:自己从 session 事件记账;assume-price-aware:price-aware 已挂载并负责记账,本插件只读台账文件做报表 |
dataDir | ~/.dsh/cost-ledger | JSONL 台账目录,~ 会展开 |
exportDir | dataDir | CSV 导出目录 |
prices | [] | 中转/自定价目,形状与 price-aware.prices 完全一致 |
holidays | [] | 按错峰计价的北京时间日期(YYYY-MM-DD) |
模糊匹配说明:模型 id 只能低置信度对到价目行时(matchVia: contains/normalized/alias),记录里会带 matchVia 字段标记——金额是估算,核对价目表后再信。