AlexeyDemin0/dsh-balance-window
A sidebar-foot chip showing the DeepSeek wallet balance and what the last turn cost, expanding into a panel with the recharge/granted split, today's total, peak-tariff status and a per-turn cost breakdown.
Adds a fixed chip to the DSH sidebar foot, right beside Settings, showing the platform.deepseek.com wallet balance and what the last turn cost; it stays visible in the 56px rail too. Hovering it or focusing it with the keyboard opens a panel above with the balance, the recharge/granted split, the newest turn (number, cost, tokens, steps, model, and a peak flag when the peak tariff applied), today's total and turn count, the read timestamp and the estimate disclaimer. Balance comes from the Host calling GET https://api.deepseek.com/user/balance with the stored key; turn cost is folded from durable assistant/message usage records and priced at the published off-peak rates, with peak windows at x2. Clicking the chip forces a refresh. The chip occupies slot sidebar.footer.action (entry id balance-window, order 20) and cannot be dragged or dismissed; config keys refreshMs, timeoutMs, keepTurns, usdToCny and path live on its row in cordis.patch.yml.
Install
dsh plugin --profile web add @alexey_demin/dsh-balance-windowCopied verbatim from the # from npm line of the README's ## Install shell block. @alexey_demin/dsh-balance-window 0.1.2, whose registry repository field (git+https://github.com/AlexeyDemin0/dsh-balance-window.git) resolves back to this repo.
Compatibility
Requires DeepSeek Harness >= 0.2.0-rc.2 running the Web UI (dsh web), because the visible half is a platform: web client plugin. A stored DEEPSEEK_API_KEY (Settings -> Models) is required, or on Desktop an account login, where the Host falls back to the deepseekAccount service. Reload the page after installing; the Host loads a plugin module once per process, so installing or toggling plugins means restarting dsh web. Nothing else is needed — no build step and no runtime dependencies.
Details
- Repo: AlexeyDemin0/dsh-balance-window
- Category: Usage & Billing
- Stars: 0
- Version: 0 stars, JavaScript, MIT, created 2026-10-16; installs from npm package @alexey_demin/dsh-balance-window 0.1.2, whose registry repository field resolves back to this repo; English README, with plugin copy shipped in English, Russian and Chinese.
- Last push: 2026-10-16
- First seen: 2026-10-16
Alternatives
LemCAE/dsh-balance · luokai-demo/dsh-plugins#plugins/dsh-balance-plugin · GPIOX/dsh-api-balance