AI Agent Hub
Back to plugins
🧰

dsh-token-cost-meter

Web Tools Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install YZz-S/dsh-token-cost-meter

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

In DeepSeek Harness, install this plugin with the command dsh plugin install YZz-S/dsh-token-cost-meter; the full source code is at https://github.com/YZz-S/dsh-token-cost-meter.

About this plugin

When using DeepSeek Harness for AI conversations, users often lack real-time visibility into token consumption and associated costs, making expense management opaque. This plugin addresses that by embedding a sleek stats line below the input box in the web interface, displaying the current session's cumulative token usage and estimated cost in CNY. Prices are fetched dynamically from DeepSeek's official pricing page and auto-switch between peak and off-peak rates, ensuring transparency and accuracy. Beyond basic tracking, it features graceful degradation to a built-in snapshot if fetching fails, supports three-level model detection for various scenarios, and processes all data locally to safeguard privacy. Whether for everyday use or advanced development, this functionality empowers users to manage costs more precisely and enhance their overall experience.

Use Cases

  • Track token usage and costs in real time during DeepSeek sessions
  • Monitor API call expenses to avoid budget overruns
  • Analyze cost differences across models in development or testing environments

Best For

  • Developers or researchers needing to control AI usage costs
  • Enterprise users or teams using the DeepSeek API
  • Individual users sensitive to token-based billing