Thedeergod666/dsh-musage
DSH 端的 AI 套餐余额监控插件,跟随当前模型自动切换。目前支持 5 个 provider(minimax / deepseek / kimi / openrouter / zhipu)。
Project Overview项目介绍
dsh-musage is a native plugin built exclusively for DeepSeek Harness (DSH), designed as a companion to the standalone Musage desktop AI quota monitoring application. It integrates real-time quota and balance checking for AI API providers directly into DSH’s composer toolbar, placed neatly next to the model selector so it does not interfere with your workflow. It automatically updates the displayed information whenever you switch the active model in DSH, and currently supports 5 of the most widely used AI providers: MiniMax, DeepSeek, Kimi, OpenRouter, and Zhipu GLM. It does not block input or conversation areas, and only shows a quiet warning with error details on hover if quota data fails to load.
This plugin was built for DSH users who want to keep an eye on their AI API usage without having to switch to a separate desktop application to check balances. It automatically pulls the API keys you have already configured in DSH’s model settings for the supported providers, so you do not need to re-enter your credentials anywhere else. It correctly handles both time-based quota plans, displaying remaining percentage for 5-hour and weekly windows, and balance-based accounts, displaying remaining credit in the correct currency for your account. The plugin is non-intrusive and will not add any extra clutter to your DSH workspace, fitting seamlessly into the existing DSH layout.
dsh-musage is released under the permissive MIT open source license, so you can use or modify it freely per the license terms. You can install it with a single command from the terminal: dsh plugin --profile web add github:Thedeergod666/dsh-musage, or once it is indexed in the DSH plugin registry, you can install and update it directly from DSH’s settings menu in the plugin market. It requires three built-in DSH services to work: subprocess, credentials, and timer, all of which are included with a standard DSH installation so no extra dependencies are needed. Note that this plugin currently only supports 5 providers, while full 14-provider support and extra features like system tray are available in the standalone Musage desktop app.
dsh-musage 是专为 DeepSeek Harness (DSH) 开发的原生插件,是独立桌面用量监控工具 Musage 的 DSH 伴侣形态。它将 AI 服务商套餐用量/余额的实时监控嵌入 DSH 编辑器工具栏,会跟随当前使用的模型自动切换显示对应的用量信息,目前已支持 MiniMax、DeepSeek、Kimi、OpenRouter、智谱 GLM 共 5 家主流 AI 服务商。
本插件面向日常使用 DSH 编写代码、需要随时查看 AI 套餐剩余用量的用户。它会自动复用你已经在 DSH 模型设置中配置好的对应服务商 API Key,无需重复填写凭证。针对按时长计费的套餐会显示剩余百分比,针对余额计费的账号会显示剩余金额,嵌入工具栏不遮挡对话或输入区域,拉取失败仅静默提示不刷屏。
本插件采用 MIT 开源许可证,可通过 dsh plugin --profile web add github:Thedeergod666/dsh-musage 一条命令安装,收录后也可在 DSH 插件市场一键安装更新。它依赖 DSH 自带的 subprocess、credentials、timer 三个服务,无需额外安装依赖。目前仅覆盖 5 家主流服务商,完整支持 14 家服务商的全功能版本需要搭配独立的 Musage 桌面端使用。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-musage(Thedeergod666/dsh-musage)
仓库:https://github.com/Thedeergod666/dsh-musage
本站详情页:https://www.yhbd.top/plugins/thedeergod666-dsh-musage/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 6 · 最近提交 2026-09-30 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:Thedeergod666/dsh-musage
把 Thedeergod666/dsh-musage 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-musage
DSH (DeepSeek Harness) 版的 Musage — 在 DSH composer 工具栏里实时显示 5 家 AI 套餐 provider 的用量余额, 跟着当前模型自动切换.
Screenshots



这是什么
Musage 是我 (Thedeergod666) 维护的 Tauri 桌面应用, 核心功能是实时跨 14 个 AI 套餐 provider 监控用量 (悬浮窗 + 系统托盘). 桌面形态完整有效, 但跟 DSH 这类 AI harness 生态割裂, 用户切到 DSH 工作时看不到用量.
dsh-musage 把 Musage 的核心能力搬进 DSH 浏览器页面里:
- ✅ 5 个 provider 当前实装: MiniMax · DeepSeek · Kimi · OpenRouter · 智谱 GLM (zai-coding-cn)
- ✅ 跟着模型自动切换 — 切到 minimax-cn 显示套餐用量, 切到 deepseek 显示余额, 切到 zai-coding-cn 显示智谱套餐, … 全自动
- ✅ 复用 DSH 已配 API Key — 在 DSH 模型设置里配过 minimax / deepseek / openrouter / zhipu 的话, plugin 立刻拿到, 不需重复填
- ✅ 5h + 周 双窗口套餐 (minimax / kimi / zhipu) 或 余额 (deepseek / openrouter) 自动选合适显示
- ✅ 零侵入 — 注册到
conversation.input.rightslot (紧邻 model select 左侧), 不挡对话/输入 - ✅ 失败静默 — 拉数据失败只显示
Provider ⚠, hover 看具体错误, 不刷屏
演示

(GIF: minimax 5h/周 双窗口 → 切到 deepseek 自动显示余额 → 切到 zai-coding-cn 显示智谱套餐. 中间切换无刷新无 loading 态.)
支持的 Provider
| Provider (DSH route id) | 显示 | 端点 | Schema 来源 |
|---|---|---|---|
minimax / minimax-cn / minimax-en |
MiniMax 5h X% | 7d Y% |
api.minimaxi.com/coding_plan/remains |
Musage minimax.rs (ccswitch 逆向, 2026-06-01 双 schema) |
deepseek / deepseek-official |
DeepSeek ¥X.XX (CNY) / $X.XX (USD) |
api.deepseek.com/user/balance |
Musage deepseek.rs |
kimi / kimi-coding |
Kimi 5h X% | 7d Y% |
api.kimi.com/coding/v1/usages |
Musage kimi.rs |
openrouter |
OpenRouter $X.XX |
openrouter.ai/api/v1/credits |
Musage openrouter.rs |
zhipu / zai-coding-cn |
Zhipu 5h X% | 7d Y% |
open.bigmodel.cn/api/monitor/usage/quota/limit |
Musage zhipu.rs |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
edison7009/EchoBird
Han-1413141/dsh-cost-meter
Ychris12138/dsh-usage-stats
wink-run/tokenbank
JingbiaoMei/Tokdash
slywalker2006/dsh-passwords
songoao25/dsh-bottom-info-bar
LiZhenNet/dsh-antigravity