dsh-deepseek-balance
Manifest validFloating DeepSeek account balance card for the dsh web UI: shows total, granted and topped-up balance per currency, refreshed every 60 seconds. Draggable and collapsible; the API key resolves from the
dsh-deepseek-balance
Persistent DeepSeek API balance & usage plugin for the web profile.
What it does
- Registers a floating card on
shell.overlay(top-right, draggable, collapsible). - Shows the DeepSeek account balance (total / granted / topped-up), refreshed every 60 s.
- Shows official platform consumption (current-month cost, today's cost, month tokens)
from the private dashboard endpoints
platform.deepseek.com/api/v0/usage/costand.../usage/amount?month=<M>&year=<Y>, authenticated with the platformuserToken(from the browser:JSON.parse(localStorage.userToken).value). API keys cannot access these endpoints. Codes 40002/40003 mean the token expired — re-fetch it. - Shows today's local usage: API request count, input/output tokens, cache hits
(measured from the harness's own
llm/streamcalls; not platform billing data). - API key resolution priority: manual key (typed in the card, in-memory) > credentials
service
DEEPSEEK_API_KEY>DEEPSEEK_API_KEYenvironment variable. The platform userToken is entered manually in the card and kept in memory only.
Layout
package.json— declaresdsh.client(web bundle) +./clientexport.lib/index.js— host half:llm/streamusage counter, HTTPS balance query,/api/dsh-deepseek-balanceJSON route on the harness web server.lib/client.js— web bundle (plain__ModuleLoader__format, no build step): the floating card UI.
Install
Installed by hand at ~/.dsh/profiles/node_modules/dsh-deepseek-balance and wired into
the profile composition via ~/.dsh/profiles/web/cordis.patch.yml:
- insert:
- id: deepseek-balance
name: dsh-deepseek-balance
Takes effect on the next harness start. To remove, delete the insert entry and the package directory.
Notes
- Official consumption comes from the private dashboard endpoints, which are unofficial
and may change without notice; they require a fresh platform
userToken. - Local usage stats are counted from the harness's own model calls and reset on restart; they are not DeepSeek platform billing data.
Comments
Loading…
Similar plugins
by Yochor-Debug
Floating DeepSeek API balance capsule for the DSH Web GUI: a corner pill shows the remaining balance, clicking expands the total, granted and topped-up breakdown, double-clicking refreshes at once and
★ 0
MIT
JavaScript
Sep 22, 2026
dsh plugin --profile web add dsh-plugin-balance-floatby etony668
DeepSeek API 余额常驻显示(侧边栏「设置」旁)· DeepSeek API balance badge beside Settings in the DSH sidebar
★ 0
MIT
JavaScript
Sep 29, 2026
dsh plugin --profile web add @etony668/dsh-balanceby Utmotc
Shows the API balance of the provider behind the current model as a dsh Web sidebar card, with per-package progress bars, currency/credit-aware units, a settings tab, and subscription and credit quota
★ 0
MIT
JavaScript
Sep 29, 2026
dsh plugin --profile web add @utmotc/dsh-balance-cardby zlZayn
DSH 插件:在左侧栏底部显示 DeepSeek 账户余额(原生 UI),设置页提供连接、展示币种、预警阈值与刷新节奏的配置卡片。(原生嵌入“设置-插件-插件配置”)
★ 2
↓ 362/wk
MIT
TypeScript
Sep 19, 2026
dsh plugin --profile web add dsh-ds-balanceby Andrew111888
A floating credit/quota widget for the DeepSeek Harness Web: shows DeepSeek / OpenCode Go balances and usage, and tracks DSH session token usage and estimated cost by day, month, and model.
★ 6
↓ 248/wk
BSD-3-Clause
JavaScript
Aug 26, 2026
dsh plugin --profile web add dsh-plugin-balanceby ricardolicong
DeepSeek API quota (balance) widget for the dsh web GUI: a floating wallet card showing balance, today’s consumption and live conversation cost; banknotes blow out of the wallet while the agent is bus
★ 0
MIT
JavaScript
Aug 16, 2026
dsh plugin --profile web add dsh-deepseek-quota