DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-api-cost

d

dsh-api-cost

Manifest valid

API cost tracker for DeepSeek Harness: per-chat token cost, configurable prices, currency+language selectors, live exchange rates.

UI (client)hasBundlePatch

dsh-api-cost

A DeepSeek Harness plugin that tracks API token cost from real usage data, per chat, with configurable prices, currency + language selectors, and live exchange rates.

Features

  • Per-chat cost — listens to session events (assistant/message with the provider-reported usage) and accumulates cost separately for every chat.
  • Price freeze on use — each token is billed at the prices in effect when the request happened; changing prices never rewrites already-spent amounts.
  • Session-header indicator — shows the current chat's cost next to the context indicator; click opens a menu (prices, clear this chat, counting switch).
  • Flexible prices — set a price per 1M tokens separately for input, output and cache tokens.
  • Language — Russian and English UI (selectable in settings).
  • Currency — RUB / USD / EUR / CNY (selectable in settings).
  • Live rates — exchange rates auto-loaded hourly from a free, open source (open.er-api.com) and shown in settings.

Install

The package is a standard DSH bundle. Add it from its source (npm package or GitHub): use the DSH plugin manager or the /plugin-manager command. After installation:

  1. Enable the dsh-api-cost plugin.
  2. Open Settings → API Cost: pick language and currency, set prices, save.

Development

# syntax check
node --check lib/client.js
node --check lib/index.js

State is stored in $DSH_HOME/token-cost-state.json (or ~/.dsh/token-cost-state.json).

License

MIT

Comments

Loading…

Similar plugins

dsh-plugin-cost-tracker

by dexwebcode

Track your DeepSeek API balance in real time, see how much each message costs, and monitor the total cost of every chat you have. Never run out of credits mid-conversation again.

Manifest valid

★ 0

MIT

JavaScript

Nov 15, 2026

dsh plugin --profile web add dsh-cost-tracker

by WFMinerva

DeepSeek Harness (dsh) Web 插件:每条 AI 回复下显示该轮真实花费(人民币,官方峰谷价)

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Sep 10, 2026

dsh plugin --profile web add dsh-turn-cost

by LAwLi3tCoding

DSH API usage and cost ledger with per-pool reports and CNY/USD display

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 0

MIT

JavaScript

Sep 22, 2026

dsh plugin --profile web add dsh-api-ledger

by lantiosity

Real-time per-session token cost for the DeepSeek Harness web GUI, with per-provider pricing and configurable peak/off-peak tariffs

Development & InfrastructureManifest valid

★ 0

MIT

JavaScript

Oct 22, 2026

dsh plugin --profile web add @lantiosity/dsh-token-fee

by Yvesgao

DSH 插件:回答前先预估 token 用量与 DeepSeek API 费用,回答后展示实际账单(Web 聊天内嵌行)

Tools & CapabilitiesManifest valid

★ 3

↓ 27/wk

MIT

JavaScript

Aug 30, 2026

dsh plugin --profile web add dsh-cost-estimate

by PennChong95

DeepSeek Harness 插件:在上下文用量右侧显示本会话 token 用量与人民币费用(按 DeepSeek 官方价目折算)

Manifest valid

★ 0

MIT

JavaScript

Oct 20, 2026

dsh plugin --profile web add @max/dsh-cost-meter