AI Agent Hub
Back to plugins
🖥️

dsh-token-usage-xc

Client Updated 2026.09.03

Run the following command in DeepSeek Harness:

dsh plugin install xchannel1987/dsh-token-usage-xc

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

Run dsh plugin install xchannel1987/dsh-token-usage-xc in your DeepSeek Harness terminal, then restart DSH to activate the plugin; the source repository is available at https://github.com/xchannel1987/dsh-token-usage-xc .

About this plugin

When you work with multiple models in DSH, token consumption is scattered across individual assistant/message events. There is no per-model summary, and answering how much was spent today or which days were the heaviest requires digging through raw logs. dsh-token-usage-xc fills that gap by adding a dedicated Today's Token Usage section in the Settings page, showing input, output, cache-read, cache-write, and request counts for every model at a glance.

The plugin listens to the usage field in session/event, archives entries by event time into calendar days, and computes cache hit rate. Beyond the daily breakdown, a 7-day stacked bar chart lets you switch dates and filter by model. Data is persisted locally per day, survives restarts, and entries older than seven days are auto-pruned. With the optional header badge enabled, you can glance at the day's total right from the session toolbar without opening Settings.

If you frequently call multiple models, care about cost and cache efficiency, or want a lightweight usage dashboard without spinning up a separate backend, this plugin installs directly into the DSH client and works out of the box.

Use Cases

  • Review today's per-model input, output, and cache token breakdown at a glance
  • Identify usage spikes and patterns via the 7-day stacked trend chart
  • Monitor cache hit rate across models to optimize API costs

Best For

  • DSH users making frequent multi-model API calls daily
  • Independent developers focused on API cost and cache efficiency
  • Small teams seeking a lightweight usage dashboard without extra backend infrastructure