Liu-ty/dsh-balance-display
DeepSeek API balance overlay for DeepSeek Harness
Shows the current DeepSeek API account balance in a collapsible shell.overlay panel: CNY and USD rows with total, granted and topped-up amounts plus availability, a check time and stable error codes. The Host resolves DEEPSEEK_API_KEY through the Harness credentials service for every refresh and calls the official GET https://api.deepseek.com/user/balance endpoint; the browser receives only validated balance fields — the API key is never sent to the browser, persisted, logged, or included in error details.
Install
dsh plugin --profile web add github:Liu-ty/dsh-balance-display#v0.1.0dsh plugin --profile web add github:Liu-ty/dsh-balance-display#v0.1.0 (Git installs fetch source and run the prepare build; a local tarball dsh plugin --profile web add .\dsh-balance-display-0.1.0.tgz also works; verified 2026-08-30). Add the package to pnpm-workspace.yaml if pnpm refuses the prepare build.
Compatibility
DSH web profile; Node.js ^22.19.0 || >=24.0.0; resolves DEEPSEEK_API_KEY through the Harness credentials service; MIT.
Details
- Repo: Liu-ty/dsh-balance-display
- Category: Other
- Stars: 1
- Version: GitHub tag v0.1.0 (npm 0.1.0 exists, repo unclaimed)
- Last push: 2026-08-13
- First seen: 2026-08-13
Recent updates
Collapsible shell.overlay balance panel; CNY + USD rows (total/granted/topped-up); official balance endpoint; key stays server-side.
FAQ
- Where does the balance come from?
- The official GET https://api.deepseek.com/user/balance endpoint, called by the Host on every refresh.
- Is my API key exposed?
- No — it is resolved via the Harness credentials service and never sent to the browser, persisted, logged, or included in errors.
- How is it installed?
- dsh plugin --profile web add github:Liu-ty/dsh-balance-display#v0.1.0 or from the packed tarball.
Alternatives
jasonsun29/ds-balance-card · LemCAE/dsh-balance · YZz-S/dsh-billing-balance