DeepSeek Harness (dsh) cost tracking: token meter, API rates, what to track
DeepSeek Harness (dsh) does not document a dollar cost view. It records provider-reported token usage and shows context pressure, and the price comes from whichever model provider you point it at. For most people that is DeepSeek’s own API, whose rates are published and simple.
dsh is in developer preview and its maintainers warn of breaking changes, so this is as of 2026-11-25, from the dsh README, its docs and DeepSeek’s API pricing page. We did not run a dsh binary for this page. The ACP behavior described at the end was checked on dsh 0.2.2-rc.1, per the install guide.
How dsh is paid for
dsh is MIT-licensed, so what you pay is the model provider. In the Web UI you open Settings, Models, enter a DeepSeek API key and save it, per the Web UI guide. The providers guide says keys are write-only and stored in $DSH_HOME/.credentials.yaml, and that other providers and custom OpenAI-compatible endpoints go in the profile’s cordis.patch.yml under an llm-pi-ai entry, with apiKeyEnv naming the environment variable that holds the key.
DeepSeek’s pricing page lists, per million tokens, in USD (off-peak / peak):
| deepseek-flash | deepseek-v4-pro | |
|---|---|---|
| Input, cache hit | $0.003 / $0.006 | $0.022 / $0.044 |
| Input, cache miss | $0.15 / $0.30 | $0.66 / $1.32 |
| Output | $0.60 / $1.20 | $1.98 / $3.96 |
Off-peak is half the peak rate. Peak hours are 01:00-04:00 and 06:00-10:00 UTC, Monday to Friday, excluding Chinese public holidays, and every other hour is off-peak. Context length is 1M tokens. The page says prices may change, and that charges come out of the granted balance before the topped-up balance. From 12:00 on 2026-11-18 (Beijing time), server-side search and web fetch calls are no longer billed per use: their results are added to the context and charged as tokens.
A worked example, off-peak on deepseek-flash: 2M cache-hit input tokens, 300K cache-miss input and 100K output come to $0.006 + $0.045 + $0.060, about $0.11. The same run on deepseek-v4-pro is $0.044 + $0.198 + $0.198, about $0.44. The cache-hit price is why a long agent session costs far less than its raw token count suggests.
What dsh records
dsh’s token meter, @deepseek-ai/dsh-token-meter, is documented on its subsystem page. Two things matter for cost.
Provider-reported usage. pressureTokens is the “provider-reported prompt size of the most recent request: uncached input plus cache reads and writes”, with response output excluded. It is absent until a provider reports usage.
Context pressure. contextPressure(session) gives approximate occupancy “for a status display”, and the page says these display values do not price a new request and are “a user-facing reference, not a billing or gating input.” Where there is no provider usage yet, the meter falls back to a fixed heuristic, and estimated means no reusable usage anchor exists.
The meter page never mentions dollars: “pricing” there means token counts. So the arithmetic from the table above is yours to do, or a plugin’s. Community plugins that add cost views exist. We have not reviewed them, so check any plugin’s price table against the pricing page before you trust its number.
What is missing
- A documented dollar view. The first-party docs I read give tokens and context pressure, not cost.
- A billing-grade number. The meter says its pressure value is a display reference.
- Rates for non-DeepSeek providers. dsh does not carry a price list for them.
- Cost per tool call. The meter works on requests and context, not on individual tools.
- A view across machines. dsh’s controls are per profile and per machine, and so is its trajectory.
Keeping a running cost visible
- Check the provider’s own dashboard. For DeepSeek, balance and usage live in your DeepSeek account, which is the billed number.
- Use the rate table above on the provider-reported token counts, and note peak hours: the same run costs twice as much between 01:00 and 04:00 or 06:00 and 10:00 UTC on a weekday.
- Prefer cache-friendly sessions. The cache-hit input rate is about 2 percent of the cache-miss rate on deepseek-flash, so restarting a session throws away the cheapest tokens you have.
- If you want the number inside dsh, route model calls through a proxy that prices them, as below.
What tokens and dollars miss
Tokens and dollars say nothing about what the agent did. dsh’s trajectory is written by the process it describes, so it is not an independent record. The ACP plugin sits on dsh’s tools/pre-execute point. It records every tool call, Code Mode sub-calls included, and a deny stops the call. It never sees the model call, so it cannot price it. For priced spend, the installer adds an acp provider to your dsh configuration and installs dsh-acp, which starts dsh with your workspace key set as ACP_BEARER_TOKEN. You then set provider acp as the default model of the profile you launch. Details are in the install guide and Turn on Cost X-Ray.
Frequently asked questions
Does DeepSeek Harness (dsh) show cost?
Not in the docs we read. dsh’s token meter records provider-reported token usage and exposes context pressure for a status display, and its own docs call the pressure value ‘a user-facing reference, not a billing or gating input.’ The token meter page never mentions dollars. Community plugins add cost views, and we have not reviewed them.
How much does DeepSeek charge for dsh usage?
dsh is the harness. You pay the model provider. On the DeepSeek API, deepseek-flash costs $0.15 per million cache-miss input tokens, $0.003 per million cache-hit input tokens and $0.60 per million output tokens off-peak, and twice that at peak. deepseek-v4-pro costs $0.66, $0.022 and $1.98 off-peak. Peak is 01:00-04:00 and 06:00-10:00 UTC, Monday to Friday, excluding Chinese public holidays.
Do search and web fetch calls cost extra in dsh?
From 12:00 on November 18, 2026 (Beijing time), DeepSeek says server-side search and web fetch calls triggered during model calls are no longer billed per use. Their results are added to the model context and charged as token usage instead.
Can the ACP plugin show what a dsh session cost?
Not by itself. The plugin checks and logs tool calls and never sees the model call. The installer can also set up a dsh-acp launcher and an acp provider that route model calls through the ACP proxy, which is what prices them.
Where to read more
- DeepSeek API models and pricing: the rates above
- dsh token meter: provider-reported usage and context pressure
- dsh providers guide: keys and custom endpoints
- dsh controls: sandbox, approvals and the trajectory
- dsh install guide: the plugin and the cost X-Ray
- Turn on Cost X-Ray: the proxy path across harnesses
- Hermes Agent cost tracking: another native-plugin harness
Running dsh? One command adds a native plugin. Each tool call is checked and recorded. A deny stops the call, and the agent gets the reason back.
curl -fsSL https://agenticcontrolplane.com/install.sh | bash
irm https://agenticcontrolplane.com/install.ps1 | iex
What the installer writes · dsh guide · free up to 5 agents