dsh-convo-cost
在终端中运行以下命令:
dsh plugin install ljr282341583/dsh-convo-cost
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness 终端中执行 dsh plugin install ljr282341583/dsh-convo-cost 即可安装本插件,完整源码地址为 https://github.com/ljr282341583/dsh-convo-cost
插件介绍
When you drive conversations through the DeepSeek API, cost is often invisible—tokens fly, money drains, and you only find out how much a session actually cost by digging through invoices after the fact. dsh-convo-cost puts a real-time cost line right below the conversation input bar, updating instantly as each assistant/message usage event lands, so you always know where you stand: ¥x.xx · xx tok.
Hover over the status line for a full breakdown: call count, input tokens (with cache-hit split), output tokens (with reasoning split), the active pricing mode (base or peak/valley), and the model name. Pricing is strictly aligned to the official DeepSeek rate card (CNY per million tokens) and auto-switches to peak pricing during Beijing-time peak windows effective 2026-08-17. Unknown models are billed at ¥0 to avoid inflating estimates. The entire price table lives in a single config block in lib/index.js—update it once after an official price change and you are done.
It is built for developers who call the DeepSeek API frequently and want to keep a live eye on per-conversation spend, especially those juggling multiple models or operating in cost-sensitive peak/valley environments. No extra SDK or dashboard needed: install the plugin, restart dsh web, and the cost line appears.
使用场景
- 开发调试时实时查看当前对话的 token 消耗与费用
- 多模型混用时对比不同会话的实际花费
- 峰谷计价切换后确认当前时段适用的价格档位
适合人员
- 频繁调用 DeepSeek API 的开发者
- 需要按峰谷价精确核算成本的团队
- 对单次会话费用敏感、希望实时可见的技术人员