deepseek-balance
DSH Web 插件:实时刷新并展示 DeepSeek API 充值/赠送/总余额的悬浮窗口。主机端代理余额接口,客户端渲染可拖拽悬浮层。
AI 分析
在DSH Web端提供可拖拽的悬浮窗,实时展示DeepSeek API的各项余额,且密钥保留在主机端。适合需要随时监控DeepSeek API额度消耗的用户。
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 README ↗deepseek-balance
DSH (DeepSeek Harness) Web plugin — 实时查看 DeepSeek API 余额,以悬浮窗展示。
A DSH Web client plugin that displays your DeepSeek API balance (total / topped-up / granted) in a real-time floating window (悬浮窗), refreshed every 30 seconds.
Features
- 🪟 Floating window — draggable overlay card rendered in the DSH
shell.overlayslot, collapsible via− / +. - 🔄 Real-time refresh — polls the balance every 30 s (configurable) plus a manual refresh button.
- 🔒 Key stays on host — the host half reads the
DEEPSEEK_API_KEYcredential and proxiesGET https://api.deepseek.com/user/balance; the API key never reaches the browser. - 🌓 Theme-aware — uses the DSH design tokens (
--dsw-*) so it matches light/dark mode.
Requirements
- A running DSH web profile (
dsh --profile web). - A DeepSeek API key stored through the credentials service (
DEEPSEEK_API_KEY), or exported in the launching environment.
Install
Register the plugin in the web profile's cordis.patch.yml and install the package into the profile's node_modules:
- insert:
- id: deepseek-balance
name: deepseek-balance
Then place this package (or a symlink) under ~/.dsh/profiles/web/node_modules/deepseek-balance/, restart dsh web, and refresh the GUI — the floating balance window appears.
Files
lib/index.js— host half: registers the/deepseek-balanceproxy route.lib/client.js— client bundle: renders the floating window and polls the route.
License
MIT