AI Agent Hub
Back to plugins
🧩

dsh-cost-tracker

admin-security Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install Visol-456/dsh-cost-tracker

Paste the following prompt into your AI chat to install this plugin:

To install the dsh-cost-tracker plugin in DeepSeek Harness, run dsh plugin install Visol-456/dsh-cost-tracker, the source code is located at https://github.com/Visol-456/dsh-cost-tracker。

About this plugin

With the recent adjustments to DeepSeek's pricing strategy, including the introduction of peak-hour rates, managing costs has become more complex. Standard tools often rely on rough estimates rather than actual financial data. This plugin addresses that gap by precisely tracking every model invocation and converting token usage—including cache hits and misses—into real RMB costs, allowing you to cross-reference data with the official platform dashboard effortlessly.

At its core, it offers a comprehensive cost monitoring solution. The plugin not only displays real-time costs per call but also aggregates data into session-level summaries and a global statistics page. The global view features a dual Y-axis trend chart to visualize cost, token volume, and cache hit rates over time, complete with model and source filtering. Data is persisted locally, and the plugin ensures strict accuracy through built-in price table validation.

Whether you are a developer seeking fine-grained budget control or an enterprise looking to analyze cost distribution during peak hours, this tool is designed for you. It complements routing plugins like dsh-llm-fallbacks by focusing strictly on "how much was spent," providing the transparency needed for effective LLM cost management.

Use Cases

  • Monitor LLM call costs
  • Analyze spending during peak hours
  • Verify official usage data

Best For

  • Developers needing budget control
  • Enterprise users of DeepSeek API
  • DevOps engineers managing compute resources