dsh-usage-cost:在 DSH 用量弹窗里把 token 折算成金额
dsh-usage-cost 是 O789Real 维护的 DSH 客户端插件,在自带「本轮用量」与会话级「Token 用量」弹窗中,于每行 token 右侧显示人民币金额并追加合计。定价遵循 DeepSeek 官方 CNY 价目表与峰谷时段,本轮弹窗按该轮发生时刻判价,口径与 dsh-whale-widget 同源。安装命令为 dsh plugin --profile desktop add dsh-usage-cost;支持 usage-cost-pricing.json 运行时改价与 health/report 自检。
Read Moredsh-usage-cost: Real-Time Monitoring Plugin for DeepSeek Session Usage and Costs
`dsh-usage-cost` is a local usage-monitoring plugin for DeepSeek Harness that addresses the tedium of manual accounting. It does not upload data; all calculations are performed locally. The plugin provides a persistent status-bar capsule and a detail panel that display the model name, token count, and current/cumulative cost in real time. It combines streaming estimation with authoritative calibration after each request completes, and supports custom price lists. Current session data is persisted in projection mode, while today’s/this month’s and per-model cumulative data are written to JSON files, so they are retained after restarts. After installation, restart DSH to use it.
Read Moredsh-usage-cost: Lightweight API Cost Statistics Plugin for DeepSeek Harness
`dsh-usage-cost` is a lightweight plugin for DeepSeek Harness developed by fflow2023, used to calculate API costs. It follows the "everything is a plugin" philosophy, providing read-only cost estimates by replaying persistent session logs. It does not inject any content into the model, ensuring zero impact on token consumption and KV Cache. The plugin supports displaying the current session cost at the bottom of the session and shows a statistics list of global cumulative totals, peak/off-peak splits, and breakdowns by model (V4 Pro/Flash) and session in the settings page. Billing is based on peak/off-peak prices effective on 2026-08-17, with unpriced models counted in `unpricedTokens`. Its implementation is pure JavaScript with zero build steps and zero runtime dependencies, and the Host side event handling complexity is O(1). Users can access it via GitHu...
Read Moredsh-usage-cost: Calculate DeepSeek API cost per session per round
`dsh-usage-cost` is a DeepSeek Harness plugin designed to calculate API costs in real-time on the Web, round by round, per session. By projecting `usageTimeline` on the server side, the plugin records the token usage (including misses, outputs, and cache read/writes) and timestamps for each assistant turn. It provides cost readings across four dimensions in the chat interface: Conversation, Workspace, Today, and Last 5 Hours. Its core advantage is the automatic adaptation to the peak and valley pricing logic implemented since August 17th, which switches rates based on timestamps; if historical sessions lack timeline data, it falls back to flat-rate calculation. The plugin is distributed as an official bundle, requiring no additional building when installed from the Git repository—users simply need to execute the install command, restart the Web app, and refresh the page. Users can customize settings by editing `lib/client.js`.
Read More