Mystery-God/dsh-balance
Mystery-God★ 1JavaScriptLast synced: 2026-08-15
模型账户余额悬浮窗插件 for DeepSeek Harness Web GUI — floating model-account balance monitor with a settings master switch
README excerpt
dsh-balance · 模型余额悬浮窗 模型账户余额悬浮窗插件 for DeepSeek Harness Web GUI(dsh-web-ui 插件生态)。 右下角悬浮展示模型账户余额(每 60 秒自动刷新),可拖动、收起、关闭;设置页位于「设置 → 插件 → 模型余额悬浮窗」,带「显示余额悬浮窗」总开关。支持 DeepSeek / 硅基流动 / Moonshot / OpenRouter 余额接口(按 baseURL 域名自动识别)。 A floating model-account balance monitor for the DeepSeek Harness Web GUI: a draggable bottom-right card auto-refreshing every 60s, with a master show/hide switch on its Plugins-settings page. Supports DeepSeek / SiliconFlow / Moonshot / OpenRouter balance endpoints (auto-detected from the configured base URL). 功能 · Features - 💰 余额悬浮窗 · Floating balance card (右下角,可拖动):总余额大字 + 充值/赠送明细 + 更新时间;⟳ 手动刷新、– 收起成小胶囊、× 关闭(留一枚 ¥ 胶囊随时唤回)。Draggable card with total balance, breakdown lines, refresh / collapse / close buttons. - 🔄 实时刷新 · Auto refresh :每 60 秒自动查询,结果 host 侧缓存 30 秒,不频繁打接口。Polls every 60s; results cached 30s host-side. - 🔌 总开关 · Master switch :「设置 → 插件 → 模型余额悬浮窗」里可一键关闭/开启悬浮窗,设置持久化到 /.dsh/balance/settings.json 。One-click show/hide on the Plugins-settings page, persisted locally. - 🔐 密钥安全 · Credential safety :余额查询全部走 host 端 fetch;API key 可在设置页直接填写(存于 /.dsh/balance/settings.json ,接口只回传脱敏预览),或经 credentials 服务解析(环境变量 → /.dsh/.credentials.yaml → .env ),永不下发到浏览器。Balanc…
View full README on GitHub →