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. 适合需要精确统计、导出和查询模型消费明细的用户。

パッケージ
dsh-plugin-cost-ledger
互換性
未検証
Cordis ピア範囲
>=4.0.0
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/10/01

インストール

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

ドキュメント

README 全文を読む ↗

配置

字段默认说明
enabledtrue关掉后插件不挂任何东西
accountingownown:自己从 session 事件记账;assume-price-aware:price-aware 已挂载并负责记账,本插件只读台账文件做报表
dataDir~/.dsh/cost-ledgerJSONL 台账目录,~ 会展开
exportDirdataDirCSV 导出目录
prices[]中转/自定价目,形状与 price-aware.prices 完全一致
holidays[]按错峰计价的北京时间日期(YYYY-MM-DD)

模糊匹配说明:模型 id 只能低置信度对到价目行时(matchVia: contains/normalized/alias),记录里会带 matchVia 字段标记——金额是估算,核对价目表后再信。