fishxcode/dsh-plugin-deepseek-balance

DeepSeek Harness Web client plugin that displays real-time DeepSeek API balance.

Adds a DeepSeek Balance tab to the DSH Web settings plugin area. It shows the live balance from the official GET https://api.deepseek.com/user/balance endpoint (availability plus every balance_infos entry), records one balance point per day in localStorage and draws a trend line once two points exist, and optionally reads daily cost and token usage from the DeepSeek Platform using a pasted userToken — rendering a bar+line chart of daily cost and tokens via ECharts, with summary stats for total cost, request count, input/output/cached tokens and cache hit rate. A draggable always-on-top mini window shows the latest balance and a sparkline.

Coding & Development ★ 0 updated 2026-08-14 ✅ runtime-tested
View on GitHub ↗

Install

⚠️ Install command not yet confirmed — check the README on GitHub for the exact command.

Compatibility

DSH web client plugin; the package metadata declares the client entry at ./client and the build output must be wrapped into the window.ModuleLoader.load({ id, factory }) client-loader format. Credentials live in browser localStorage (dsh-plugin-deepseek-balance.apiKey, ...platformToken). The daily-usage feature depends on undocumented private DeepSeek Platform endpoints and may be rate-limited by the WAF, surfacing clear errors.

Details

Recent updates

README documents the security boundary: the API key is sent only to api.deepseek.com, and the Platform userToken (a full session credential in the same localStorage trust domain) is only POSTed to the plugin's same-origin host endpoint, which proxies usage without persisting the token.

FAQ

How do I install dsh-plugin-deepseek-balance?
The README documents a source build (npm ci, npm run bundle) and enabling the built package through the Harness plugin loader rather than a one-line plugin-add command; the npm name is unpublished (404 verified 2026-09-11), so confirm the current install path against the repository.
Where are my API key and userToken stored?
Both in the current browser's localStorage (keys dsh-plugin-deepseek-balance.apiKey and ...platformToken). The API key goes only to api.deepseek.com; the Platform userToken is POSTed only to the plugin's same-origin host endpoint, and a "Clear token" control is provided.
Why does the daily usage chart fail?
That feature calls undocumented private DeepSeek Platform endpoints, so the WAF may rate-limit or block it; the README notes failures surface as clear error messages rather than silent zeros.

More plugins in Coding & Development

Browse more in Coding & Development

Guides for Coding & Development plugins