dsh-cost
Run the following command in DeepSeek Harness:
dsh plugin install zydg/dsh-cost
Paste the following prompt into your AI chat to install this plugin:
To install the dsh-cost plugin in DeepSeek Harness, please run the command: dsh plugin install zydg/dsh-cost or visit https://github.com/zydg/dsh-cost for installation.
About this plugin
When frequently using large language models, it is difficult to track token consumption, cache hit rates, and specific costs in real-time, especially within complex sessions. The dsh-cost plugin aims to address these blind spots by automating these statistics.
The plugin's core capability lies in its deep integration with the DeepSeek API. It not only tracks input, output, and cache hit tokens for each turn in real-time but also calculates costs precisely based on the official peak-valley time-based pricing, factoring in the exact time of each call. After each turn, a summary line automatically appears at the end of the response, clearly showing the current turn's consumption, hit rate, estimated cost, and account balance, making every penny transparent.
This tool is ideal for developers, AI researchers, and teams that frequently use the DeepSeek API. Whether for code generation, data analysis, or daily conversation, it helps users accurately assess the cost-effectiveness of different times and models. By supporting historical session replay, data persistence, and export functionality, it provides long-term usage analysis to help users optimize resource allocation and avoid overspending.
Use Cases
- Monitor real-time costs and balance changes of DeepSeek API.
- Analyze token consumption and cache hit rates for each conversation turn.
- Export call records for offline cost analysis.
Best For
- Developers requiring strict budget management.
- Users analyzing data with large language models.
- Teams needing transparency in API usage.
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.