GiantGKL/dsh-cost

Shows live conversation cost and DeepSeek account balance in the composer stats row: cumulative token usage over the whole session log × official DeepSeek pricing as a live estimate (hover for input/output/cache-read breakdown and pricing tier), and account balance queried from the official GET /user/balance endpoint (click to refresh, auto-poll every 60s, USD/CNY conversion in the opposite-locale UI).

Messaging & Communication ★ 3 updated 2026-08-13 ✅ runtime-tested
View on GitHub ↗

Install

npm install dsh-cost

npm package dsh-cost 0.2.1 (registry-verified 2026-08-25). Per README: npm install dsh-cost, then mount it in the deployment's cordis.yml (or a profile's cordis.patch.yml) with a plugins: - name: 'dsh-cost' row. The web client composes automatically via the dsh.client declaration (platform: web); no further configuration required. Host half follows the llm-deepseek adapter settings (apiKeyEnv default DEEPSEEK_API_KEY, baseURL default https://api.deepseek.com).

Compatibility

DeepSeek Harness (deployment or profile via cordis.yml / cordis.patch.yml). Currency follows the UI locale: RMB in the Chinese UI, USD in the English UI. DeepSeek only — hides itself for non-DeepSeek providers.

Details

Recent updates

v0.2.1: session-cost estimate in composer stats row; balance query with 60s auto-poll; locale-aware currency; DeepSeek-only visibility.

FAQ

How is the cost estimate computed?
Cumulative token usage over the whole session log × official DeepSeek pricing, shown as a live estimate; hovering reveals the input/output/cache-read token breakdown and pricing tier.
How does the balance work?
It queries the official DeepSeek GET /user/balance endpoint, refreshes on click, auto-polls every 60s, and converts currency for the opposite-locale UI (USD↔CNY with an estimated rate).
Does it work with non-DeepSeek providers?
No — the cost hides itself for non-DeepSeek providers; the host half follows the llm-deepseek adapter settings.

Alternatives

jelly-000/dsh-balance-monitor · lanlandeli/dsh-usage-stats · omdsh-dev/dsh-tool-stat

More plugins in Messaging & Communication

Browse more in Messaging & Communication

Guides for Messaging & Communication plugins