AI Agent Hub
Back to plugins
🧠

dsh-cost-tracker

Memory Updated 2026.08.16

Run the following command in DeepSeek Harness:

dsh plugin install ruozhi5067/dsh-cost-tracker

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

Run dsh plugin install ruozhi5067/dsh-cost-tracker inside DeepSeek Harness to install this plugin; the full source repository is at https://github.com/ruozhi5067/dsh-cost-tracker .

About this plugin

When you are juggling several projects in DSH, knowing where tokens went and what they cost usually means opening every session and digging through logs. dsh-cost-tracker moves that ledger to the bottom of the sidebar: a persistent spend card that shows the cross-project total and the current project's cached-input, non-cached-input, and output token breakdown at a glance, with no switching or manual tallying required.

Its defining capability is full coverage. Beyond the active session in memory, the plugin incrementally reads persisted session logs, so projects you have not even opened still show up in the tally. Costs are computed against the official DeepSeek Chinese-language pricing page (CNY per token), auto-refreshed at startup, every twelve hours, and whenever the last refresh is older than six hours; a built-in fallback price table kicks in if the fetch fails. Expanding the card reveals per-project token splits and the corresponding model unit price, with (turn:step) deduplication to prevent double-counting.

If you manage multiple DeepSeek projects in DSH, care about API spend, and would rather not maintain a separate spreadsheet, this plugin was built for you. All computation is local; no session or personal data ever leaves your machine. It runs as a two-layer pair (host plugin plus dynamic widget), auto-restores after a restart, and is managed entirely through the Cordis panel to approve, stop, or remove it, without adding any extra UI surface.

Use Cases

  • Running several DeepSeek projects in parallel and needing a unified per-project token and cost view in one place
  • Measuring cached vs non-cached input token ratios to assess real API cost efficiency
  • Automatically picking up the latest CNY unit prices whenever DeepSeek updates its pricing page

Best For

  • Solo developers juggling multiple DeepSeek projects within DSH
  • Small teams that need per-project API cost accounting for DeepSeek models
  • DSH users who want spend visibility in the sidebar without opening a separate spreadsheet