AI Agent Hub
Back to plugins
🧰

dsh-usage-cost

Web Tools Updated 2026.08.25

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