nonewind/dsh-spend

Token usage & cost monitor for DeepSeek Harness — floating widget with multi-dimensional stats, time-series ch

A token usage and cost monitor for DeepSeek Harness: a floating widget shows real-time per-session token counts across multiple dimensions (prompt, completion, cache hits, cache misses), auto-detects whether the account is on the Code Plan or Token billing and applies the correct pricing table, and displays estimated spend for the current session alongside cumulative statistics. Historical session spend can be reviewed in a side panel with breakdowns by model, date, and workspace.

Coding & Development ★ 7 updated 2026-09-07 ✅ runtime-tested
View on GitHub ↗

Install

dsh plugin --profile web add dsh-spend

dsh plugin --profile web add dsh-spend (npm dsh-spend 0.6.2, repo nonewind/dsh-spend, verified npm 2026-08-30).

Compatibility

DSH web profile; auto-detects Code Plan vs. Token billing; no API key beyond the standard DSH DeepSeek key; MIT.

Details

Recent updates

Real-time token HUD (prompt/completion/cache); auto-detected billing plan (Code Plan vs Token); per-session + cumulative spend; historical breakdown by model/date/workspace.

FAQ

How does it detect the billing plan?
It reads the DeepSeek account plan metadata from the standard account API (using the same key DSH already has) and applies either the Code Plan or Token billing rate table accordingly — no manual configuration.
Does it track costs across multiple DSH sessions?
Yes — spend is accumulated across sessions in a local store, and the history panel shows breakdowns by session, model, date, and workspace.
Can I export the spend data?
The local store uses a simple JSON format in the DSH data directory; you can copy or script against it, though the plugin does not currently provide a built-in export button.

Alternatives

juhe291/dsh-token-panel · Cassius0924/dsh-usage-dashboard · STARDUSTLC666/dsh-calendar

More plugins in Coding & Development

Browse more in Coding & Development

Guides for Coding & Development plugins