DoggyHU/dsh-plugin-quota-monitor
DoggyHU★ 1JavaScript最后同步: 2026-08-20
DSH sidebar footer quota & balance monitor: DeepSeek Rage + OpenCode Go HP/MP/SP + SCNet (国家超算) Credits local estimate. 设置→插件管理可配置数据源与费率表。
README 摘要
dsh-plugin-quota-monitor DSH(DeepSeek Harness)侧边栏底部的 额度与余额监控 插件:一条怒气条 + 各服务商状态条,并在 设置 → 插件管理 → 余额监控 里提供完整配置页。 RPG 风格的映射: HP 血(红)= 月额度 · 魔法 MP(蓝)= 周额度 · 耐力 SP(黄)= 5h 额度 · 怒气 Rage(金)= DeepSeek 余额 。 预览 国家超算中心(scnet · Credits) OpenCode Go(HP / MP / SP) 设置页( 设置 → 插件管理 → 余额监控 ): 功能 - 怒气 Rage(金,始终显示) :DeepSeek 官方接口实时余额( api.deepseek.com/user/balance ),显示 ¥ 剩余金额。 - OpenCode Go ( opencode-go ):官方用量接口的 月 / 周 / 5h 三个窗口 → HP / MP / SP,显示剩余 $ 与细条。 - 国家超算中心(scnet) :Token Plan Credits 剩余 (单条,绿色)。scnet 没有公开的用量查询接口 ,本插件改为 本地估算 :直接读取 DSH 自己的会话日志( $DSH HOME/sessions/ / .jsonl(.zstd) ,纯 Node 解压 Zstandard 多帧),统计本月经 scnet 消耗的 token,再按 scnet 官方费率表折算成 Credits。 - 自动识别数据源 :默认 auto —— 从 DSH settings.yaml 的 agent-default-model.provider 自动选择(opencode-go / scnet),也可手动指定。 - 设置页 :数据源切换、每个条目的开关、scnet 月度额度与 模型费率表 (JSON 可编辑,含 DeepSeek-V4-Flash-0731 / GLM-5 / Kimi-K3 / MiniMax-M3 / Qwen3.8-Max 等 13 个官方费率)。 - 60 秒轮询 + 切回页面即时刷新;窄侧栏折叠为圆形小徽标。 安装 重启 dsh web 进程后生效(client bundle 与 host 都需要重启进程,刷新页面不够)。 密钥从环境变量或 /.dsh/.credentials.yaml 读取(环境变量优先): 数据源 密钥 DeepSeek 怒气 DEEPSEEK API KEY OpenCode Go OPENCODE GO API KEY scnet Credits(本地估算) 无需密钥,读本地会话日志 设置 打开 设置 → 插件管理 → 余额监控 : - 数据源 :自动(跟随默认模型)/ OpenCode Go / 国家超算中心。 - OpenCode 显示…
在 GitHub 查看完整 README →分类
Enhancement suite for Gemini, AI Studio, Claude & ChatGPT — plus a prompt manager for any web UI, DeepSeek Harness included. / 面向 Gemini、AI Studio、Claude 与 ChatGPT 的增强套件;提示词管理器可用于任意 Web UI,含 DeepSeek Harness。
★ 19,772
zhu1090093659/dsh-web-uiPlugin and skin collection for DeepSeek Harness (DSH) Web UI - task board, git graph, right-side panel, remote mobile UI, pet, live token stats, and skin center.
★ 5,470
omdsh-dev/DSH-better-sidebar开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/侧边对话/Git/子代理页面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git, and sub-agent pages.
★ 2,596