AI Agent Hub
Back to plugins
🧰

dsh-token-monitor

Web Tools Updated 2026.08.18

Run the following command in DeepSeek Harness:

dsh plugin install chencmb2077-ui/dsh-token-monitor

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

Run dsh plugin install chencmb2077-ui/dsh-token-monitor to add the plugin to your current DSH profile (source: https://github.com/chencmb2077-ui/dsh-token-monitor)

About this plugin

Chattling with DeepSeek inside the DSH web shell can quietly burn through tokens and drain your account balance, yet checking either usually means switching out of the terminal and hunting through a dashboard. dsh-token-monitor pins that information to a bottom-right floating card so you can glance at it without ever leaving your workspace.

It tracks two things with a clean separation of concerns. On the usage side, it listens to every assistant message event, buckets tokens per session, and maintains a running global total; the llm/stream channel adds live in-flight call visibility and a context-pressure estimate, so you can see how full the window is in real time. On the balance side, a local node subprocess queries the official DeepSeek API with a 60-second cache and optional manual refresh; the API key is passed only through the child process environment, never logged and never returned in any HTTP response, keeping the security boundary tight. The widget itself reads theme CSS variables so it adapts to light and dark modes automatically, and it collapses into a compact pill to stay out of the way.

Anyone running a DSH web deployment and calling the DeepSeek API day-to-day will find it genuinely useful; even if you are on a different provider, the token-usage tracking still works. It is a pure static host plugin with no client bundle and no build step - install it into a profile and it loads with the deployment config automatically, surviving restarts without manual re-injection.

Use Cases

  • Glance at token spend and context pressure during long conversations
  • Compare per-session usage against the global total while running multiple sessions
  • Check DeepSeek balance from inside the terminal before it runs low

Best For

  • Developers who call the DeepSeek API daily from the DSH web shell
  • Engineers who want lightweight token-spent visibility without extra dashboards
  • DSH users on any provider who only need token-usage tracking