DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-balance

e

dsh-balance

Manifest valid

DeepSeek API balance permanently displayed (beside "Settings" in the sidebar) · DeepSeek API balance badge beside Settings in the DSH sidebar

UI (client)hasBundlePatch

English | 中文

DSH Balance plugin (dsh-balance)

A tiny DeepSeek Harness plugin that shows your DeepSeek API balance in the sidebar footer, right beside Settings.

  • Placed beside Settings — registers the official sidebar.footer.action seat (sidebar foot, next to the Settings row), auto-adapting to the collapsed 56px rail (dot only) and staying inside the sidebar.
  • Live balance — reads the DEEPSEEK_API_KEY already stored by DSH in ~/.dsh/.credentials.yaml, queries the official api.deepseek.com/user/balance endpoint, and caches the result for 60 s.
  • Low-balance warning — turns red with a ⚠ marker when the available balance drops below the threshold (default ¥2, configurable in code).
  • Details on hover — granted / topped-up breakdown, currency and the last successful update time; click to refresh.
  • Bilingual + theme-aware — follows the system language (zh/en) and adapts to light/dark themes through DSH theme tokens.
  • Local-first — the key is read from your own machine, the balance is only passed between the DSH backend and your browser. Nothing is written to disk or reported anywhere else.

Installation

Option 1: One command (recommended)

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

Option 2: Clone from GitHub (backup)

git clone https://github.com/etony668/dsh-balance.git
cd dsh-balance
./install.sh

Then refresh the DSH page (or restart DSH). The balance badge appears in the sidebar footer, beside Settings.

Requirements

  • DSH stores your DeepSeek key in ~/.dsh/.credentials.yaml (set it in Settings → Models if you have not). Without it the badge shows “Balance unavailable — API key not found”.

Repository layout

index.js        package root entry (loader resolves <pkg>/index.js)
lib/index.js    host half: reads the credential, queries the balance API, caches
lib/client.js   browser half: registers the conversation.composer.dock entry
cordis.patch.yml bundle patch used by `dsh plugin add`
install.sh      one-click install (macOS/Linux bash)
reinstall.sh    reinstall into the current runtime + profile fallback link

License

MIT

Comments

Loading…

Similar plugins

dsh-balance-chip

by AKUSH99

Live DeepSeek API balance in the sidebar footer plus an always-visible bottom-right pill: status dot and amount, refreshed every 60 seconds, the API key is read from the local credential store and nev

Tools & CapabilitiesTerminal & ClientsModels & ProvidersManifest valid

★ 0

MIT

JavaScript

Aug 26, 2026

dsh plugin --profile web add dsh-balance-chip

by Rainronin

DeepSeek Harness 插件:DeepSeek API 余额实时监测(官方 /user/balance 快照 + ds_balance 工具 + 峰谷计价状态 + 单会话费用估算 + dsh 原生风格侧边栏徽章)

Manifest valid

★ 3

↓ 118/wk

MIT

JavaScript

Aug 31, 2026

dsh plugin --profile web add @rainronin/dsh-balance-monitor

by zhangjianyu1006156

DeepSeek API 余额显示插件:左下角余额胶囊、低余额预警、余额趋势、一键充值。密钥不出主机端。

Manifest valid

★ 3

↓ 127/wk

MIT

JavaScript

Aug 15, 2026

dsh plugin --profile web add dsh-balance-display

by kai-GitHubaccount

DeepSeek 余额 + Token 用量面板(DSH Web):三级预警、自定义阈值、一键充值、缓存命中率 | Balance & usage panel for DeepSeek Harness

Development & InfrastructureTools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Sep 21, 2026

dsh plugin --profile web add dsh-usage-panel

by Anyway-one

Multi-provider balance monitor with low-balance alerts and trend history for the dsh web GUI

Terminal & ClientsManifest valid

★ 0

JavaScript

Aug 26, 2026

dsh plugin --profile web add dsh-balance

by Jianwen-Xu

DSH 插件:在 Web 侧边栏显示 DeepSeek API 余额与高峰/空闲计费时段

Development & InfrastructureManifest valid

★ 0

MIT

TypeScript

Sep 18, 2026

dsh plugin --profile web add dsh-deepseek-balance