dsh-api-cost
Manifest validAPI cost tracker for DeepSeek Harness: per-chat token cost, configurable prices, currency+language selectors, live exchange rates.
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/messagewith the provider-reportedusage) 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:
- Enable the
dsh-api-costplugin. - 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
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.
★ 0
MIT
JavaScript
Nov 15, 2026
dsh plugin --profile web add dsh-cost-trackerby WFMinerva
DeepSeek Harness (dsh) Web 插件:每条 AI 回复下显示该轮真实花费(人民币,官方峰谷价)
★ 0
MIT
JavaScript
Sep 10, 2026
dsh plugin --profile web add dsh-turn-costby LAwLi3tCoding
DSH API usage and cost ledger with per-pool reports and CNY/USD display
★ 0
MIT
JavaScript
Sep 22, 2026
dsh plugin --profile web add dsh-api-ledgerby lantiosity
Real-time per-session token cost for the DeepSeek Harness web GUI, with per-provider pricing and configurable peak/off-peak tariffs
★ 0
MIT
JavaScript
Oct 22, 2026
dsh plugin --profile web add @lantiosity/dsh-token-feeby Yvesgao
DSH 插件:回答前先预估 token 用量与 DeepSeek API 费用,回答后展示实际账单(Web 聊天内嵌行)
★ 3
↓ 27/wk
MIT
JavaScript
Aug 30, 2026
dsh plugin --profile web add dsh-cost-estimateby PennChong95
DeepSeek Harness 插件:在上下文用量右侧显示本会话 token 用量与人民币费用(按 DeepSeek 官方价目折算)
★ 0
MIT
JavaScript
Oct 20, 2026
dsh plugin --profile web add @max/dsh-cost-meter