DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-plugin-balance-badge

d

dsh-plugin-balance-badge

Identified

Always-visible account topped-up balance pill in the sidebar header, refreshed automatically and showing the same number as Settings → Account.

dsh-plugin-balance-badge

DeepSeek Harness npm license

Always-visible DeepSeek account balance for DeepSeek Harness. A small pill in the top-left window strip of the sidebar shows the same Topped-up balance as Settings → Account, and keeps itself up to date.

The balance pill in the sidebar window strip

⬤ ⬤ ⬤        ⌄
   ●  ██ $16.59        ← the balance pill (macOS window strip)
   🐋 deepseek HARNESS
   ⊕ Новая сессия

Features

  • Same number as Settings → Account — reads the DeepSeek account Remote, not a separate/provider-specific API.
  • Refreshes itself: on load, every 60 s while the page is visible, immediately when the window regains focus, and immediately when the stored account credential changes (sign-in, sign-out, grant rotation). Click the pill to refresh on demand.
  • Honest states: … while loading, -- when signed out / unavailable, and the last known amount plus a "stale" hint when a refresh fails — never a fake zero.
  • Bonus balance is shown separately in the tooltip (only when positive), exactly like Settings → Account; it is never added to the topped-up amount.
  • Localized (en / ru / zh) and styled with Harness theme tokens, so it follows the active theme and language.
  • Pure presentation: no tools, no config, no Host service of its own.

Requirements

  • DeepSeek Harness 0.2.x with the DeepSeek account feature available (the same feature that renders Settings → Account).
  • On the macOS desktop build the pill sits in the window strip; on Web/Windows/Linux shells it is placed beside the Settings row at the sidebar foot instead.

Install

From npm (prebuilt, recommended)

dsh-plugin-balance-badge

An npm install is prebuilt: no repo download, no allowBuilds approval, and a download figure on the storefront. Use the GitHub spec below only to pin a commit that is not published yet.

From the GUI (Desktop and Web)

Settings → Plugins → Add plugin, then paste one of:

dsh-plugin-balance-badge
github:reg4916/dsh-plugin-balance-badge
github:reg4916/dsh-plugin-balance-badge#v1.0.0

The Desktop app owns its profile, so this (or an agent using the plugin_manager tool) is the supported path there.

With an agent (plugin_manager tool)

Ask the agent to run install_bundle with the target dsh-plugin-balance-badge (or the GitHub spec github:reg4916/dsh-plugin-balance-badge). It installs the package, selects the bundle, and applies it through the profile's HMR when available.

From the CLI (non-managed profiles)

dsh plugin --profile <profile> add dsh-plugin-balance-badge

Manual (development)

git clone https://github.com/reg4916/dsh-plugin-balance-badge.git
# in your profile package.json: "dsh-plugin-balance-badge": "link:/abs/path/to/clone"
# and append "dsh-plugin-balance-badge" to "dsh.profile.bundles"
ln -s /abs/path/to/clone <profile>/node_modules/dsh-plugin-balance-badge

Restart the app once if the profile's HMR is not running; afterwards client-plugin edits are picked up by the running page.

Uninstall

Remove the dependency entry and the bundle name from the profile package.json, remove node_modules/dsh-plugin-balance-badge (and the lockfile importer entry if you edited it by hand), then restart the app.

How it works

PieceDetail
Datactx.remote.account.getState() (local credential read) → ctx.remote.account.getBalance({ version, locale, timezoneOffsetSeconds }) only while signed in
Host chainaccountController → deepseekAccount → Platform GET /api/v0/users/get_user_summary (normal_wallets / bonus_wallets)
Placement (macOS)frame slot shell.overlay, entry balance-badge, fixed at the window strip next to the traffic lights
Placement (other)sidebar.footer.action, beside Settings (rail-aware)
Renderingplain React from the page module table; no @deepseek-ai/* import
Refreshone shared poller per plugin (single-flight, 15 s floor, stale results dropped, paused while hidden)

The module is a browser artifact for the Harness module table (window.__ModuleLoader__.load({ id, factory })) plus an empty Host row (index.js = export function apply() {}).

Development

node test/contract.test.mjs     # loads client.js with a stubbed page and asserts
                                # registration, live data flow, formatting and states

Publishing

npm login          # once per machine
npm publish        # unscoped name, publishes as public 1.x

publish.yml also publishes from GitHub Actions with npm provenance and needs the repository secret NPM_TOKEN (an npm automation token); run it from Actions → publish → Run workflow. Keep the package repository field pointing at this repo — the registry links npm packages to entries that way.

.
├── package.json         # dsh.bundle.patch + dsh.client manifest
├── cordis.patch.yml     # inserts the balance-badge row into the profile layer stack
├── index.js             # Host half (no Host service)
├── client.js            # browser half: dictionaries, stylesheet, poller, pill
├── locale/{en,ru,zh}.json
├── icon.svg
├── test/contract.test.mjs
├── CONTRIBUTING.md / SECURITY.md
└── .github/       # issue + PR templates, CI (`test.yml`), publish workflow

Tuning: POLL_MS / MIN_GAP_MS in client.js.

Русский

Плагин показывает баланс аккаунта DeepSeek маленькой «таблеткой» в верхней полосе окна рядом с кнопками управления (на macOS) — тот же Topped-up balance, что в Настройки → Аккаунт. Обновляется сам: при запуске, раз в 60 секунд, при возврате фокуса в окно и при смене учётной записи; по клику — принудительное обновление, при наведении — бонусный баланс и время обновления. Установка: Настройки → Плагины → Add plugin → github:reg4916/dsh-plugin-balance-badge.

Contributing & security

Bug reports and pull requests are welcome — see CONTRIBUTING.md for the development loop and the ground rules. Please report security issues privately per SECURITY.md, not in a public issue.

License

MIT

Comments

Loading…

Similar plugins

dsh-balance

by etony668

DeepSeek API 余额常驻显示(侧边栏「设置」旁)· DeepSeek API balance badge beside Settings in the DSH sidebar

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

Oct 17, 2026

dsh plugin --profile web add @etony668/dsh-balance

余额看板,可以添加多个按量计费/Token plan,同时查询余额。| Balance dashboard, allowing the addition of multiple pay-as-you-go/Token plans, while simultaneously checking balances.

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

dsh plugin --profile web add dsh-balance-inquiry

DeepSeek account balance in the dsh web sidebar footer with live config hot reload and an editable Settings → Plugins card.

Tools & CapabilitiesTerminal & ClientsModels & ProvidersManifest valid

★ 0

↓ 114/wk

dsh plugin --profile web add @choi-p/dsh-deepseek-balance

by dsh-plugin-lab

DSH plugin: shows your DeepSeek account balance at the bottom of the left sidebar (native UI)

Tools & CapabilitiesManifest valid

★ 4

MIT

TypeScript

Oct 20, 2026

dsh plugin --profile web add dsh-ds-balance

by zlZayn

DSH 插件:在左侧栏底部显示 DeepSeek 账户余额(原生 UI),设置页提供连接、展示币种、预警阈值与刷新节奏的配置卡片。(原生嵌入“设置-插件-插件配置”)

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 2

↓ 362/wk

MIT

TypeScript

Sep 19, 2026

dsh plugin --profile web add dsh-ds-balance

by lxy7747-hash

A DeepSeek Harness plugin that pins the signed-in DeepSeek account balance (recharge + bonus) to the Web sidebar foot.

Manifest valid

★ 0

MIT

JavaScript

Oct 20, 2026

dsh plugin --profile web add dsh-balance-badge