Preface¶
DSH (DeepSeek Harness) follows an “everything is a plugin” approach to extensibility. The community directory is an independent site and has no official affiliation with DeepSeek / High-Flyer. For developers running DeepSeek API sessions within the DSH Web GUI, one common requirement is to see the cost estimate for the current session directly in the bottom stats bar. dsh-session-cost is a DSH plugin built for exactly this purpose.
What Is This¶
dsh-session-cost is a DSH plugin that displays the DeepSeek API cost estimate for the current session in the Web GUI’s bottom stats bar.
The repository maintainer is ChengChe106, the license is MIT, and the repository is located at:
- https://github.com/ChengChe106/dsh-session-cost
Core Features¶
Below are the capabilities already listed for this plugin.
- Displays the DeepSeek API cost estimate for the current session in the Web GUI’s bottom stats bar
- Shows four amounts: Cost, Hits, Misses, and Output
- Font and color scheme align with the official stats bar:
12px, theme-adaptive - Reads
uncachedInputTokens,cacheReadTokens,cacheWriteTokens, andoutputTokensfrom the DSHtokenUsagesession projection - Calculates according to official billing rules, where cache writes are billed at the miss unit price
- Automatically switches to peak/off-peak pricing starting from
2026-08-17 00:00(Beijing time), and determines peak hours based on Beijing time - v1 calculates based on
deepseek-v4-flashby default - Displays a “≈” marker to indicate the amount is an estimate
Installation and Activation¶
- If
dshis already installed globally, run:
dsh plugin add dsh-session-cost
- If
dshis not installed globally, install it vianpx:
npx --yes @deepseek-ai/dsh plugin --profile web add dsh-session-cost
- After installation, restart
dsh webto activate the plugin.
Modifying the Default Model¶
v1 calculates based on deepseek-v4-flash by default. To change the default model or prices later, you need to edit the plugin’s configuration file:
lib/client.js
Modify the corresponding values in the DEFAULT_MODEL and the price table at the top of this file.
Use Cases and Notes¶
This plugin is suitable for developers using the DeepSeek API within the DSH Web GUI who want to see a cost estimate for the current session. Please note the following:
- The cost is an estimate for reference only and may differ from the actual bill
- Cache writes are included at the miss unit price
- Model switching and rounding may affect the estimate results
- v1 calculates based on
deepseek-v4-flash; switching models mid-session is not retroactively applied - The plugin runs under the current
dshprocess permissions; you should review the source code, dependencies, and MIT license before installation
Related Links¶
- GitHub: https://github.com/ChengChe106/dsh-session-cost
- Directory page: The verified materials do not provide a directory page URL; you can search for the plugin by name in the DSH community directory. This directory is an independent site and has no official affiliation with DeepSeek / High-Flyer.