AI Agent Hub
Back to plugins
🖥️

dsh-usage-plugin

Client Updated 2026.08.26

Run the following command in DeepSeek Harness:

dsh plugin install lurejewel/dsh-usage-plugin

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

Run dsh plugin install lurejewel/dsh-usage-plugin from any directory (source: https://github.com/lurejewel/dsh-usage-plugin), then restart DSH Web and hard-refresh your browser to see the usage panel in the sidebar.

About this plugin

When running DeepSeek Harness Web, one question is easy to overlook: how much official balance is left, and how many tokens have I actually burned over the past few days? The usual answer used to mean spinning up another terminal, firing a curl, or grepping through log files. dsh-usage-plugin moves that answer directly into the browser sidebar. A trigger icon sits just above Settings; one click unfolds a panel showing your live api.deepseek.com balance alongside today and the last 7 days of input, output, and cache token usage with a daily trend. Everything is aggregated from your local $DSH_HOME/sessions logs, with no extra daemons, no database, no cross-origin calls, and the API key never leaves the server.

Under the hood, the plugin scans zstd-compressed session logs frame by frame and de-duplicates by turn and step so usage numbers are never double-counted. Balance queries take the same server-side path the DSH DeepSeek provider already uses, and the browser sees only numbers, never secrets. The panel UI follows DSH design tokens with full light and dark theme support, requiring zero configuration.

Who is this for? Developers who push batches, debug prompts, or share a DSH instance with a team. No extra tooling is required: restart dsh web once, and a compact balance-and-usage panel appears in the sidebar, right where you would expect it.

Use Cases

  • Verify sufficient official balance before running batch jobs
  • Track today and 7-day token consumption trends while debugging prompts
  • Monitor shared DSH instance usage and cache hit rate across the team

Best For

  • Developers who run batch jobs on DSH Web every day
  • Engineers debugging prompts with token-cost awareness
  • Tech leads managing shared DSH instances for a team