Session billing and quota plug-in
Wanbinyu/dsh-billing · skills
GitHub repository for the DeepSeek Harness ecosystem.
★ 2GitHub stars
0Forks
2026-08-17Last updated
TypeScriptLanguage
MITLicense
Project overview
DeepSeek 官方示例价格使用 CNY 每 100 万 token:缓存命中 0.02、缓存未命中输入 1、输出 2。实际价格请按你的合同配置;DeepSeek 的峰谷价格可能变化。
价格键优先使用精确的 provider/model,例如 openrouter/deepseek-v4-flash;只写模型 ID(例如 deepseek-v4-flash)仍然有效,并作为所有 provider 的兼容回退。如果在 bundle 已插入后修改 billing 行,Harness 的 patch 会替换整段 config,因此需要保留所有希望继续使用的配置字段。
usage 采用 request/header 对 step 进行归属;同一 (turn, step) 的后续样本会同时替换会话累计和本轮数据中的早期样本,避免重复计费;没有前置 header 的 usage 会放入保留的 (unknown) bucket。latestTurn 在首次收到 usage 后出现,供客户端显示最近一轮的费用和 Token 明细。
Install command
dsh plugin --profile web add github:Wanbinyu/dsh-billing