In the DeepSeek Harness (DSH) ecosystem, managing the costs and resource consumption of agents or conversations is a common requirement. Although the DeepSeek Open Platform provides billing, it often has delays or lacks clarity. The dsh-show-me-how-much plugin aims to fill this gap by providing real-time local estimates and detailed statistics.
Core Features¶
This plugin primarily addresses usage and cost tracking in the Web interface, with the following capabilities:
- Real-time display: Displays estimated cost and total Token in real time at the far right of the session bottom bar.
- Statistics panel: Go to “Settings → Cost Statistics” to view statistics by date and time, including cache hit rate, daily trends, and model details.
- Model recognition and customization: Automatically distinguishes between DeepSeek V4 Flash and V4 Pro, and supports custom fallback pricing.
- Persistence and replay: Uses the Harness Projection mechanism, so statistics can still be replayed when historical sessions are reopened.
- Counting logic: Streaming usage and the final message use replacement semantics, preventing double-counting.
Installation and Enablement¶
Install it using the official command:
dsh plugin --profile web add github:kam74515-boop/dsh-show-me-how-much#v0.1.0
After installation, restart the Harness Web service:
dsh web
Pricing and Billing Logic¶
By default, the plugin uses the official DeepSeek V4 RMB price list (2026-08-15) for calculations. The cost calculation formula is as follows:
(缓存命中输入 × 命中价 + (未命中输入 + 缓存写入) × 未命中价 + 输出 × 输出价) / 1,000,000
The default price configuration is as follows:
| Model | Cache-hit input | Non-cache-hit input | Output |
|---|---|---|---|
| DeepSeek V4 Flash | ¥0.02/M | ¥1/M | ¥2/M |
| DeepSeek V4 Pro | ¥0.025/M | ¥3/M | ¥6/M |
The plugin recognizes uncachedInputTokens, cacheReadTokens, cacheWriteTokens, and outputTokens returned by Harness. If the provider reports cache-write Tokens, that portion is priced as non-cache-hit input.
Local Development¶
If you need to inspect the source code or debug locally, follow these steps:
git clone https://github.com/kam74515-boop/dsh-show-me-how-much.git
cd dsh-show-me-how-much
npm install
npm run check
dsh plugin --profile web add .
Notes¶
- Estimate nature: The amounts are estimates based on usage returned by the provider and the current price list; they are not equivalent to DeepSeek Open Platform bills.
- Third-party providers: Promotional credits, discounts, price adjustments, and third-party providers may cause differences.
- Version dependency: The project is developed for DeepSeek Harness
0.1.0-rc.6. Harness is currently in Developer Preview, and later versions may require plugin API synchronization.
Summary¶
dsh-show-me-how-much is a practical statistics plugin that helps developers quickly understand conversation costs and Token consumption. The plugin is open-sourced under the MIT license, and the maintainer is kam74515-boop.