ljcscp/dsh-session-cost
ljcscp★ 1JavaScript最后同步: 2026-08-14
Session cost & balance readout for DeepSeek Harness (DSH) Web GUI: official pricing, peak/off-peak hours, per-model costing
README 摘要
dsh-session-cost DeepSeek account balance and session-cost readout for the DeepSeek Harness (DSH) Web GUI. - Account balance — queries the official GET /user/balance endpoint (the API key stays on the host, resolved per refresh through the DSH credentials seam) - Session spend — token usage × official DeepSeek prices , auto-fetched from the official pricing page every 6h, so price changes never require a plugin update - Peak/off-peak pricing — the 2026-08-17 rollout is applied automatically: peak hours 09:00-12:00 / 14:00-18:00 (Beijing), off-peak at half price - Per-model costing — the session's actual model (deepseek-v4-flash / deepseek-v4-pro) is read from the newest assistant message's provenance and priced at its own bucket The composer dock shows one readout under the shipped stats line: Hover for the breakdown (input / cache read / output, model, pricing source) and the balance split (granted + topped up). Requirements - DeepSeek Harness 0.1.0-rc.5 or newer (web profile) - A DeepSeek API key stored through the DSH credentials seam ( DEEPSEEK API KEY — the web Models page writes it) Installation From a git URL (no npm account needed): From npm: From a local checkout (developm…
在 GitHub 查看完整 README →