dsh-usage-cost
Run the following command in DeepSeek Harness:
dsh plugin install Dino6021/dsh-usage-cost
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install Dino6021/dsh-usage-cost in DeepSeek Harness to install; the full source is at https://github.com/Dino6021/dsh-usage-cost . After installation, restart the web server and refresh the page to activate the cost readout.
About this plugin
DeepSeek API token costs are spread across cache-hit, cache-miss, and output buckets, and the peak/off-peak schedule introduced on August 17 makes tracking spend even harder. dsh-usage-cost adds a real-time, per-turn cost line right in the web UI so you can see exactly what the current conversation, workspace, today, and the trailing five hours have each cost.
The plugin works in two layers: a server-side session projection records each message's token buckets and completion timestamp, while the client renders a compact four-segment cost readout. Pricing logic is built in — every sample is automatically classified as off-peak or peak based on its own timestamp, with no manual toggling. All unit-price constants sit at the top of lib/client.js for a one-line update when rates change.
Best suited for heavy DeepSeek V4 Pro callers, developers tracking cache-hit impact on their bill, or teams that need a transparent API spend dashboard.
Use Cases
- Track per-turn DeepSeek API token spend in real time
- Compare cost impact of cache hits versus cache misses
- Monitor cumulative API spend for today and the trailing five hours
Best For
- Developers making heavy DeepSeek API calls
- Engineering teams that need transparent API spend dashboards
- Users tracking DeepSeek peak and off-peak pricing changes
Related Plugins
Free web search plugin for DeepSeek Harness with web search, X search, and page fetch; no signup or API key required, with automatic multi-engine failover.
AnySearch-powered web and vertical search plugin for DeepSeek Harness, offering real-time search, cleaned URL content, concurrent batch search via native web_search/web_fetch, no API key required.
Pixel-perfect webpage clone tool that uses an agent harness to turn any webpage into a scored, full-page React replica.
A bilingual cost-tracking plugin for DeepSeek Harness with session/daily cost, budget, official & custom provider balance, coding plan quotas, peak/off-peak pricing alerts, and history stats.