How to use dsh-usage-billing
Tracks API usage and computes billing estimates for DeepSeek Harness sessions, helping users monitor costs.
This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.
This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.
Quick start
Tracks API usage and computes billing estimates for DeepSeek Harness sessions, helping users monitor costs.
— source: plugins.ai_summary
Install & verify
dsh plugin --profile web add dsh-usage-billing
Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.
— source: plugins.install
Key points
- 全自动统计:监听
llm/stream,所有会话的每次模型调用都会被记录(输入/输出/缓存命中/未命中 tokens) - 历史回填:首次启动自动扫描本机会话日志,重建历史用量与消费,并附会话标题
- 分段计费:按北京时间自动归入「调价前旧价 / 调价后高峰 / 调价后空闲」三段
- 预算告警通知:跨 80%/100% 阈值时桌面 toast 主动提醒(每日每档一次),进度条临近变橙、超支变红
- 定价可配置:价格表、高峰时段、调价边界日期、美元汇率均可编辑(改动只对后续调用生效),一键恢复默认
— source: plugin_wiki.readme_en (fallback readme_raw)
Pitfalls
Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.
— source: general rule