bpc-oss/dsh-web-billing
RMB/USD token-billing plugin for DeepSeek Harness (dsh web): official-policy auto pricing with peak/off-peak h
dsh-web-billing is a RMB/USD token-billing plugin for DeepSeek Harness (dsh web / desktop) that makes AI spend visible, itemized, and optimizable. It automatically bills every LLM call against the official DeepSeek pricing policy schedule (including the peak/off-peak pricing effective 2026-08-17), persists a local ledger, shows the account balance from /user/balance, and renders live cost badges in the browser session header. Features: automatic billing per completed LLM call (input, output, cache-read, cache-write tokens × official price); peak/off-peak pricing (automatically applied based on call time per DeepSeek's 2026-08-17 schedule); per-session cost badge in the session header with hover detail (this-session cost breakdown); Settings → Cost page with session history (all sessions since install, total tokens, total cost, per-session drill-down); balance display (current /user/balance with currency auto-set by UI language: USD for English, RMB otherwise); on-demand re-pricing (history re-priced against the current pricing schedule on demand); local/subscription/free-ride classification (distinguishes metered API calls from subscription credits and zero-cost free-tier); local-first ledger (no data leaves $DSH_HOME); export capability.
Install
dsh plugin --profile web add github:bpc-oss/dsh-web-billingInstall from source: dsh plugin --profile web add github:bpc-oss/dsh-web-billing (recommended; no npm package published yet). Or from npm once published: dsh plugin --profile web add dsh-web-billing. Or link a local checkout: dsh plugin --profile web add <path>. Windows users: powershell -ExecutionPolicy Bypass -File scripts/install.ps1 -Profile web. pnpm >= 10 may require allowBuilds authorization (this package has no prepare build, so authorization is usually not needed). Restart dsh web after install. Run only one instance per $DSH_HOME (multiple instances contend for the ledger file).
Compatibility
DeepSeek Harness web profile. Reads token events from DSH's session/event log (same hook as official telemetry). Applies the official DeepSeek pricing policy schedule including peak/off-peak pricing (effective 2026-08-17 in DSH UI language). Balance comes from the DSH /user/balance endpoint. Billing covers only completed assistant/message events captured in the current $DSH_HOME after plugin install — not the official DeepSeek account invoice. Displays USD when DSH UI language is set to English; RMB otherwise. Single-instance per $DSH_HOME recommended.
Details
- Repo: bpc-oss/dsh-web-billing
- Category: Other
- Stars: 11
- Version: GitHub source install from bpc-oss/dsh-web-billing (npm not published; 2026-08-23)
- Last push: 2026-08-22
- First seen: 2026-08-14
Recent updates
The current English README documents: automatic per-call billing, official DeepSeek pricing including peak/off-peak (2026-08-17), local ledger persistence, session header cost badge with hover detail, Settings → Cost history page, /user/balance display with currency by UI language (USD/RMB), on-demand re-pricing, local/subscription/free-ride classification, single-instance-per-$DSH_HOME requirement, install paths (github: direct, npm pending, local path, Windows PowerShell script), pnpm allowBuilds note.
FAQ
- Is this the official DeepSeek billing dashboard?
- No — dsh-web-billing is a local ledger plugin that tracks tokens and estimated cost for completed assistant messages captured in your $DSH_HOME since install. The actual invoice and cross-device usage data are in the DeepSeek console Usage export.
- Does it handle peak/off-peak pricing?
- Yes — it applies DeepSeek's official peak/off-peak pricing schedule (effective 2026-08-17) automatically based on the time of each call; re-pricing history against the current schedule is also supported on demand.
- Can I run multiple instances?
- No — run only one instance per $DSH_HOME; multiple instances contend for the same ledger file and may produce corrupted data.
Alternatives
LeemanCheung/dsh-token-usage · crazywoola/dsh-balance · jelly-000/dsh-balance-monitor