AI Agent Hub
Back to plugins
dsh-ui-cost preview

dsh-ui-cost

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install uaapple/dsh-ui-cost

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

Run dsh plugin install uaapple/dsh-ui-cost in your terminal to install the plugin from https://github.com/uaapple/dsh-ui-cost into your current DSH session.

About this plugin

The stock DSH stats strip reports turn counts, LLM wall times, and TTFT, yet it never answers the question most users care about: how much is this conversation actually costing? dsh-ui-cost takes over that same stats line as a pure browser plugin, appending billed-token totals and a live cost figure right next to the existing performance metrics, so spend and throughput are visible at a glance without leaving the composer.

Cost is computed from the session durable tokenUsage projection: non-cached input and cache writes at the cache-miss input rate, cache reads at the hit rate, and output at the output rate, all priced against the model currently selected for the session (deepseek-v4-flash and deepseek-v4-pro today). Rates are sourced from the official pricing table and follow the announced peak/off-peak schedule automatically (peak 09:00-12:00 and 14:00-18:00 Beijing time, off-peak at half rate), and a model switch re-prices immediately with no refresh.

Because the plugin never modifies the ui-conversation core, a DSH upgrade that restores the stock core cannot break it, and if the plugin itself ever crashes the shadowing mechanism silently falls back to the native strip. It is designed for developers and teams who use DSH Desktop or the Web client regularly, monitor per-turn or cumulative API spend, and switch between multiple models on the fly.

Screenshots

Use Cases

  • Monitor per-turn token billing and cost in real time while chatting in DSH Desktop
  • See instant re-pricing when switching between DeepSeek models without a refresh
  • Track peak and off-peak rates applied to cache-hit and non-cached input automatically

Best For

  • Developers who monitor per-turn or cumulative API spend while working with DeepSeek models
  • Teams that switch between multiple models and need at-a-glance cost comparison
  • Plugin users who want an enriched stats strip without modifying the DSH core