AI Agent Hub
Back to plugins
🧰

dsh-cost

Web Tools Updated 2026.08.25

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.