AI Agent Hub
Back to plugins
🖥️

dsh-cost

Client Updated 2026.09.12

Run the following command in DeepSeek Harness:

dsh plugin install david0702/dsh-cost

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

Run dsh plugin install david0702/dsh-cost inside DeepSeek Harness to install; source is available at https://github.com/david0702/dsh-cost .

About this plugin

The DSH bottom stats bar shows turns, elapsed time, TPS, and token totals, but never answers the more practical question: how much did this conversation actually cost? dsh-cost adds a cost pill beside the stats row, settling every request by its real send timestamp and the model that handled it at that moment, rather than retroactively applying the current rate to the entire batch.

The pricing engine splits time into three tiers, each carrying its own per-token prices: legacy rates, the post-flash-cutdown off-peak window, and weekday peak hours. Spend routed to different models within a single turn is attributed to each model separately. Vision tokens in the session are tracked and estimated following the official DeepSeek scaling rules. The pill also surfaces your account balance, auto-refreshing every five minutes; a click forces an instant sync and spins the coin icon for visual confirmation.

Built for developers who write code, compare models, or need precise per-session spend tracking in DSH. If you are tired of digging through logs at month-end to reconstruct your API bill, this small pill puts every cent in its place.

Use Cases

  • Track actual API spend per DSH conversation
  • Compare peak vs off-peak cost differences
  • Reconcile per-model spend mix at month-end

Best For

  • Developers writing code daily in DSH
  • Indie developers tracking API budgets precisely
  • Cost-sensitive users doing multi-model comparisons