DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Plugin Balance Float — DSH Plugin for DeepSeek Harness
← Plugins
P

dsh-plugin-balance-float

Plugin Balance Float

Floating DeepSeek API balance capsule for the DeepSeek Harness Web GUI: a host proxy route plus a click-only status widget injected into every index.html.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:Yochor-Debug/dsh-float#52d1b4a464ab7dda20f2322f0680394fd0f8796d
READMECompatibilityVersions

Compatibility and provenance

Plugin Balance Float is published as dsh-plugin-balance-float and currently resolves to version 1.0.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/20/2026

Versions

1.0.0stable
9/20/2026

Related plugins

Loading related plugins…

Latest
1.0.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/20/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in models-usage.

Usage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with the current session provider's today usage on the sidebar entryWhale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.

README

dsh-plugin-balance-float

A floating DeepSeek API balance capsule for the DeepSeek Harness Web GUI — the Sogou-input-method kind of status pill: it sits in the corner, shows your remaining balance, and gets out of the way.

中文文档见 README.zh.md。

What it does

  • Appears with the page, disappears with it. The host plugin injects the widget into every rendered index.html, so it is not tied to any session and costs no conversation context.
  • Collapsed it shows just the balance plus a status dot: green = healthy, amber = low, red = depleted. A small ▼ hints that it can be opened.
  • Click to open the detail panel: total, granted and topped-up balance, and the last refresh time. Hovering does nothing — the pointer merely passing over the capsule must not pop anything up. Click again (or click elsewhere) to close.
  • Double-click to refresh immediately, on both the collapsed and expanded states; the ↻ icon spins as feedback, and the panel's ↻ button does the same.
  • Auto-refreshes every 5 seconds. Polling pauses while the tab is hidden and catches up on the first visible frame.
  • Draggable, snaps inside the viewport, remembers its position in localStorage, and follows the system light/dark theme.
  • Lives in a closed shadow root, outside the SPA's React tree, so it neither disturbs nor is disturbed by the app's styles.

Install

dsh plugin --profile web add dsh-plugin-balance-float

Then restart dsh web (see Why a restart below) and refresh the page.

Once installed it shows up in Settings → 插件 → 插件列表 → 全局插件 with an enable/disable control, alongside every other installed plugin.

Uninstall:

dsh plugin --profile web remove dsh-plugin-balance-float

Requirements

  • A DeepSeek API key on the machine, as the DEEPSEEK_API_KEY environment variable, or as refs.DEEPSEEK_API_KEY in $DSH_HOME/.credentials.yaml.
  • DeepSeek Harness >= 0.1.5-rc.2 (the profile bundle mechanism this package uses).

Why the balance is fetched on the host

DeepSeek's /user/balance requires Authorization: Bearer <key> and sends no CORS headers. Putting the key in the browser would both expose the credential and be blocked by CORS, so the host half reads the local credential and proxies the call; the browser only ever talks to the same-origin /x-balance-float.

Credential resolution order, per request (nothing is cached long-term):

  1. the DEEPSEEK_API_KEY environment variable;
  2. the Harness credential service, ctx.credentials.resolve('DEEPSEEK_API_KEY');
  3. a direct read of $DSH_HOME/.credentials.yaml as a fallback.

The key never appears in any response.

Files

FileRole
package.jsonManifest: declares dsh.bundle.patch, which is what makes dsh plugin treat this package as a profile layer
cordis.patch.ymlThe package's own profile layer: inserts id: balance-float / name: dsh-plugin-balance-float
lib/index.jsHost half: the GET /x-balance-float proxy route plus the index injection
lib/client.jsBrowser half: the widget's DOM/CSS/drag/poll logic (injected inline)
tools/verify-package.mjsPackage-level verification (manifest, patch, route, injection, click-only interaction)

The host re-reads lib/client.js on every index render, so widget tweaks only need a page refresh — no reinstall, no dsh web restart.

Verify

node tools/verify-package.mjs

Known limitations

  • A restart is required after install. A running dsh composes its profile bundle list once, at boot; patchReload: live watches patch files, not package.json. So a host started before the install does not know about the new layer. Restarting dsh web is the fix.
  • Balance figures come from DeepSeek's own endpoint and are subject to its caching and reporting delay.
  • The widget shows the first currency DeepSeek reports; multi-currency accounts see one line for the primary entry.

License

MIT