Thedeergod666/dsh-musage 预览 preview

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 桌面端使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 的用量余额, 跟着当前模型自动切换.

dsh-plugin cordis-plugin dsh ai-usage coding-plan MIT v0.1.0 5 providers

Screenshots

MiniMax 5h/7d dual window

DeepSeek balance

OpenRouter balance

这是什么

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.right slot (紧邻 model select 左侧), 不挡对话/输入
  • ✅ 失败静默 — 拉数据失败只显示 Provider ⚠, hover 看具体错误, 不刷屏

演示

demo

(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 →

← 上一个 Prev dsh-git-plugin 下一个 Next deepseek-harness-plugins →