dsh-balance
Real-time DeepSeek account balance readout in the session header: host /api/balance route resolves the API key through the credentials seam (never sent to the browser), 60-second auto-poll plus manual refresh.
会话标题栏实时显示 DeepSeek 账户余额:host 端 /api/balance 路由经凭据 seam 解析 API key(密钥绝不下发浏览器),60 秒自动轮询并支持手动刷新。
How to install
dsh plugin add @sky_sun/dsh-balance About
账户余额显示插件(@sky_sun/dsh-balance) 在 DeepSeek Harness Web UI 的**会话标题栏右侧**显示 DeepSeek 账户余额,**每 60 秒自动刷新**,点击可手动刷新。 功能 显示账户余额(充值余额 + 赠送余额,人民币) 60 秒轮询 + 点击手动刷新 API key 只在 host 进程内解析,**绝不下发浏览器**(只回传余额数字) 路由只接受环回来源请求(防 DNS rebinding 读他人余额) 余额接口失败时优雅降级为"查询失败",不崩界面 技术要点 **双面插件**:host 半注册 GET /api/balance 路由(ctx.webServer),用 ctx.credentials 解析 DEEPSEEK_API_KEY 调 DeepSeek /user/balance;client 半在 conversation.session.header.utilities 插槽渲染余额组件 **baseURL 复用 llm-deepseek 约定**:默认官方 https://api.deepseek.com,可用 DEEPSEEK_BASE_URL 环境变量覆盖 安装 powershell 安装到你的 profile(本插件声明了 dsh.bundle.patch,安装后自动挂载) dsh plugin --prof…
Recommendation signals
Meta
- License
- MIT
- Language
- TypeScript
- GitHub stars
- 1
- mo. downloads
- –
- Last push
- 2026-08-17
- Created
- 2026-08-17
Links
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- dsh-plugin
Related plugins
dsh-context
bowenliang123/dsh-context
DSH context insight panel: Context dashboard + /context command + Context browser — one-stop context lifecycle management with categorized composition, content details, evolution trends, compaction/injection events, and stats.
TokenLedger
zh667/TokenLedger
Sidebar usage panel that attributes tokens to the relay site that served each request, read from your existing provider config: today/month/all-time totals, per-site and per-model breakdowns, a year activity heatmap, and New API / Sub2API / DeepSeek balances.
dsh-damage-pulse
wssfk12138/dsh-damage-pulse
Tracks DeepSeek token usage, per-call and session costs, and account balance with cache-aware charge animations in the DSH Web UI.
dsh-usage-chart
Max-Samson/dsh-usage-chart
Token, cost, and balance dashboard under the composer: live indicator plus zero-dependency SVG charts for per-turn usage, estimated cost, and DeepSeek account balance.