AI Agent Hub
Back to plugins
dsh-balance-and-cost preview

dsh-balance-and-cost

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install boooooooer/dsh-balance-and-cost

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

Open a terminal in DeepSeek Harness, run dsh plugin install boooooooer/dsh-balance-and-cost, then restart DSH to activate the plugin. Source code: https://github.com/boooooooer/dsh-balance-and-cost

About this plugin

If you rely on the DeepSeek API for daily conversation or development, two questions keep coming back: how much credit is left on the account, and how many tokens did this session actually burn? dsh-balance-and-cost answers both right where you work. It injects a live summary bar beneath the DeepSeek Harness home input that shows your current CNY balance, per-session and cumulative token usage with an estimated cost, and whether you are in a peak or off-peak window, so you no longer need to hop over to the web console.

Every figure follows DeepSeek's official three-tier pricing model (input, cache-hit, output) and is stamped at the exact moment of each call to apply the correct peak or off-peak rate. Hover a token number to expand the three-tier breakdown with per-tier cost; hover a model name to compare deepseek-v4-flash and deepseek-v4-pro usage within the same conversation. The dedicated DeepSeek Usage tab in the plugin panel goes further with per-model and per-session tables, a one-click CSV export (BOM-included, opens directly in Excel), and a reset action that wipes all accumulated stats. Everything persists to a local JSON file and survives process restarts.

Written in plain JavaScript with zero dependencies and no build step, the plugin is ready to use straight from GitHub. Usage updates are pushed to the browser in real time via SSE, with a 15-second polling fallback if the connection drops; balance queries are cached on the host for 60 seconds to balance responsiveness against API load. It is built for developers and teams who call the DeepSeek API frequently and want a persistent, at-a-glance view of spend and balance without ever leaving their workbench.

Screenshots

Use Cases

  • Monitor real-time DeepSeek balance and call costs
  • Hover token figures for three-tier breakdown
  • Export CSV reports by model and session

Best For

  • Developers who call the DeepSeek API frequently
  • Teams that need to control API spending
  • Users who want usage at a glance in the workbench