ChatGPTClaudeGrok / X / CursorGemini

dsh-spend-tracker: Session Spend Estimates for DeepSeek Harness

broklam/dsh-spend-tracker

Models & ReasoningVerified
Listed on 2026-11-17
Page last updated 2026-11-20

A DSH plugin that estimates the spend of your open chat, showing a reading under the composer with token, cache, activity, and per-model breakdowns.

dsh-spend-tracker is a DSH plugin that adds an estimated spend reading to the statistics row under the composer, so you always know what the open chat has cost and where that money went. It prices usage from DeepSeek's published rates, distinguishes peak and off-peak periods, and expands on click into spend by token bucket, activity counts, and per-model detail. Sessions with no provider-reported usage show nothing, and models without a configured price show their token count instead, so an unknown price never reads as zero. The panel is measured once when it opens and stays put while values update, which suits long-running conversations.

How to Install

install
dsh plugin --profile <your-profile> add github:broklam/dsh-spend-tracker

Replace --profile with the profile name you actually run (see ls ~/.dsh/profiles/): usually web in the browser UI, desktop or desktop-NNN in the desktop app.

Category
Models & Reasoning
Platform
DSH Plugin
Author
broklam
Distribution
Plugin

dsh-spend-tracker Key Features

Estimated spend under composerClick for cost breakdown panelPeak/off-peak pricing appliedCache hit and activity statsPer-model spend breakdown
Listed on dsh-plugin.org

dsh-spend-tracker Repo Summary

What Does It Do?

Session spend is a DSH plugin for DeepSeek Harness that adds an estimated spend reading to the composer statistics row under the input box, showing what the open chat has cost so far and where that spend went. It solves the problem of not knowing the cost of a long conversation: the figure is priced from DeepSeek's published rates, distinguishes peak and off-peak periods, and expands into a detailed breakdown when clicked. The plugin is maintained by Broklam under the MIT license, written in JavaScript, and was last updated on 2026-11-16.

Core Features

  • Estimated spend reading: shows a value like ≈$0.67 in the statistics row under the input box, where ≈ marks an estimate rather than a bill, sitting beside the built-in turns/steps and token readings.
  • Click-to-open breakdown panel: lists spend by token bucket (input, cache read, cache write, output, reasoning, cache hit), activity counts (turns, steps, tool calls, tool errors, retries, compactions), and spend and tokens per model.
  • Peak and off-peak pricing with auto-refresh: each request is priced at the peak or off-peak rate for the time its usage settled, the panel names the rate that applies right now and when it next changes, and the price table refreshes itself from DeepSeek's published pricing page.
  • Unknown prices never read as zero: a session with no provider-reported usage shows nothing, and a model with no configured price shows its token count instead.
  • A panel that stays put: it is measured once when it opens and does not move while values update, long content scrolls inside it, and the title and rate status stay above the scroll area.

How to Use This Plugin?

After enabling it in DSH, open a chat with at least one completed model call; the reading appears after the first settled response. Click the reading to open the breakdown panel, and close it with Escape, a click outside, or by activating another stats control. Warnings such as unpriced usage or a truncated model list stay visible at the bottom of the panel, while the rest of the explanation sits behind a collapsed "About this estimate" row. Prices are configurable in units of your currency per million tokens; the bundled table covers the two models in DeepSeek's built-in catalog, with off-peak at half of peak. Disable the row to remove the reading and stop the statistics.

How to Troubleshoot This Plugin?

If no reading appears, first confirm the chat has at least one completed model call and that the row is turned on; a session with no provider-reported usage shows nothing by design. If the reading shows a token count instead of a currency amount, that model has no configured price, so add it to the price table as described in the official documentation.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: broklam/dsh-spend-tracker. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub
ChatGPTClaudeGrok / X / CursorGemini

DSH Plugin FAQ