Floating-Dreaming/dsh-minimax-usage
DSH (DeepSeek Harness) plugin: MiniMax Token Plan usage in Settings
Listed
1
Usage
Bundle verified
What it does
Adds a "用量" section to the DSH Settings page that shows your MiniMax Token Plan usage (5h and weekly windows with reset countdowns), per-model breakdown, and video bonus credits; fetches `/v1/token_plan/remains` via a trusted plugin that holds the API key, auto-hides when no key is configured. MIT.
Best for
- MiniMax Token Plan users who want 5-hour and weekly usage windows visible in DSH Settings.
- Users who need reset countdowns and per-model usage breakdowns while working.
- MiniMax video users who want bonus call credits shown alongside token-plan usage.
Not ideal for
- Users without a configured MiniMax API key; the entire usage section is hidden.
- Users who do not subscribe to or monitor a MiniMax Token Plan.
- Workflows needing historical analytics beyond the documented live plan windows and breakdowns.
README
MiniMax 用量插件
在 DSH(DeepSeek Harness)设置页「用量」section 展示 MiniMax Token Plan 的 5 小时与周窗口用量。
这是什么
DSH 插件,在设置页的「用量」section 渲染 MiniMax Token Plan 实时数据:
- 5 小时窗口:当前用量百分比 + 剩余时间
- 周窗口:当前用量百分比 + 重置倒计时
-
视频赠送:可调用次数(
video模型按 count 计,不按百分比) - 未配置 API key 时整段 section 自动隐藏(侧栏「用量」入口也不显示)
数据通过 MiniMax 的 https://www.minimaxi.com/v1/token_plan/remains 接口实时获取(trusted plugin 持有 key、60s 缓存 + 10s 限流)。
安装
两种方式,任选其一。
方式一:DSH 官方 dsh plugin add
trusted-plugin/ 声明了 dsh.bundle manifest,DSH 官方安装命令直接认:
# 从 GitHub(git 源一行)
dsh plugin --profile web add "github:Floating-Dreaming/dsh-minimax-usage#main"
# 从 npm
dsh plugin --profile web add @floatingdeaming/minimax-usage
# 从本地 checkout
dsh plugin --profile web add ./trusted-plugin
装完重启 DSH。
方式二:install.ps1 / install.sh
| OS | 命令 |
|---|---|
| Windows | cd D:\Code\minimax-usage-plugin && .\install.ps1 |
| macOS / Linux / WSL / Git Bash | cd /path/to/minimax-usage-plugin && ./install.sh |
从 npm 装:
.\install.ps1 -Source npm -NpmName @floatingdeaming/minimax-usage
./install.sh --source npm --npm-name @floatingdeaming/minimax-usage
脚本做了什么(幂等,已有文件不被覆盖):
- 部署 trusted plugin 源码到
~/.dsh/profiles/web/minimax-usage/ - 创建符号链接
~/.dsh/profiles/web/node_modules/minimax-usage/→ 上面那个目录 - 校验 / 补齐 profile 的
package.json依赖 - 校验 / 补齐 profile 的
pnpm-workspace.yaml的 packages 列表 - 校验 / 补齐 profile 的
cordis.patch.yml的- insert:行 - 跑
npm install
许可证
MIT
Frequently Asked QuestionsFAQ
Use the verified command dsh plugin --profile default add github:Floating-Dreaming/dsh-minimax-usage in a DSH-enabled shell. The command resolves the public package metadata and keeps the plugin attached to the catalog identity shown on this page.
Compatibility follows the bundle and profile status shown above. If a profile is not detected, keep the plugin disabled there and check the repository documentation before enabling it in production.
The GitHub link and activity metadata are the source of truth for releases and maintenance. Revisit this page after a new release to confirm the catalog has observed the latest version.