mtty-ai/mmx-quota-tool 预览 preview

mtty-ai/mmx-quota-tool

Plugin插件 Native原生 ⭐ 2 MIT Usage & Cost用量与计费

MiniMax 令牌计划额度坞站,适用于 DSH 网页版 — 下拉显示 5 小时使用百分比,点击查看详情面板,非 MiniMax 模型时自动隐藏。

Project Overview项目介绍

This is a native plugin built exclusively for the web version of DeepSeek Harness (DSH), designed to track and display MiniMax model quota usage. It can be installed in one line via the DSH CLI plugin command: dsh plugin --profile web add github:mtty-ai/mmx-quota-tool, after which you just need to restart the dsh web process to activate it. For development, you can manually clone the repository, copy it to your DSH profile's node_modules, and add an entry to the cordis patch config to register it. It mounts a UI indicator directly into DSH's conversation input area next to the existing model selector.

After installation, you need to configure your MiniMax API key as an environment variable before launching dsh web. You can export it directly in your shell before starting DSH, or add it to your shell rc file like ~/.zshrc or ~/.bashrc for persistent configuration. The plugin adds a drop-shaped icon that fills based on your 5-hour usage percentage, changing color from green under 50% to yellow under 80% and red above 80% to give you at-a-glance context. When you click the icon, a detail panel opens showing all MiniMax models' 5-hour and weekly usage, plus reset countdowns.

The plugin follows an MIT open-source license, with no associated costs or closed-source restrictions. It uses a split host-client architecture: the host side runs a scheduled poll of MiniMax's upstream API every 60 seconds by default (configurable via an environment variable) and exposes two HTTP endpoints for the client. The client side polls the host every 5 seconds to get the latest quota data, and automatically hides the indicator if the active default model is not a MiniMax model. It also supports DSH's locale system, switching UI text between Chinese and English based on your DSH interface settings.

这是一款专为 DeepSeek Harness(DSH)网页端开发的原生插件,用于展示 MiniMax 模型的配额使用情况。它会在对话输入区的模型选择器旁添加一个水滴形状的配额指示器,通过填充百分比和不同颜色直观显示当前 5 小时额度的使用占比。它支持通过 DSH 官方插件命令一键安装,也支持手动克隆源码后打补丁完成开发环境的安装。

安装配置完成后,用户在使用 MiniMax 模型时即可看到配额指示器,点击即可展开详情面板,查看所有 MiniMax 模型的 5 小时额度、每周额度使用数据以及重置倒计时。如果当前激活的默认模型不是 MiniMax 模型,插件会自动隐藏指示器,避免占用不必要的界面空间。它适合所有在 DSH 中使用 MiniMax 大模型的用户,帮助实时掌握配额消耗情况。

该插件遵循 MIT 开源协议,使用前需要用户配置自己的 MiniMax API 密钥,可通过环境变量导出密钥,也可将其写入 shell 配置文件永久生效。支持配置 MiniMax 的区域(中国区或全球区)、上游拉取间隔、客户端轮询间隔等参数。插件本身采用前后端分离架构,后端定时拉取配额数据,前端轮询更新界面显示。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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:mtty-ai/mmx-quota-tool

把 mtty-ai/mmx-quota-tool 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

mmx-quota-tool

MiniMax token-plan quota dock for DeepSeek Harness (DSH) web.

Shows a drop-shape icon + 5h usage % in the conversation input area (next to the model selector). Click for a detail panel listing every model's 5h & weekly usage, reset countdown, and absolute numbers. Auto-hides when the active default model is not a MiniMax model.

demo placeholder

Install

dsh plugin --profile web add github:mtty-ai/mmx-quota-tool

Then restart dsh web once.

Manual install (development)

git clone https://github.com/mtty-ai/mmx-quota-tool
cd mmx-quota-tool
# copy or link the package into your profile's node_modules
cp -R . ~/.dsh/profiles/web/node_modules/mmx-quota-tool/

Then add the row to ~/.dsh/profiles/web/cordis.patch.yml:

- insert:
    - id: mmx-quota-tool
      name: mmx-quota-tool

Configuration

This plugin requires a MiniMax API key. Export it before launching dsh web:

export MMX_API_KEY='sk-cp-your-key-here'
dsh web

Or put it in your shell rc (~/.zshrc, ~/.bashrc).

Optional environment variables:

Var Default Purpose
MMX_API_KEY (required) MiniMax Bearer + x-api-key
MMX_REGION cn cn (api.minimaxi.com) or global (api.minimax.io)
MMX_REFRESH_MS 60000 Host poll interval against upstream
MMX_POLL_INTERVAL_MS 5000 (client bundle) Client fetch interval

The client bundle polls the host every 5 s so model-switch visibility is within 5 s; the actual upstream fetch runs every MMX_REFRESH_MS.

Behavior

  • The dock appears in the conversation input area (conversation.input.left), adjacent to the model selector.
  • Icon is a drop/water shape, filled by 5h usage % (lower bar = better):
    • < 50% green
    • < 80% yellow
    • ≥ 80% red
  • Click toggles a detail panel; mouse-leave the dock or panel closes it.
  • Shift+click forces an immediate upstream refresh.
  • The dock is hidden entirely when the active default model is not a MiniMax model — matched providers minimax / minimax-cn / minimax-global / MiniMax* or model prefixes MiniMax- / minimax-.
  • Model name labels follow the active DSH UI locale:
    • zh: 通用 / 视频 / 图像 / 音频 / 语音 / 音乐 / 视觉 / 向量 / 实时 / 长文本
    • en: General / Video / Image / Audio / Speech / Music / Vision / Embedding / Realtime / Long context
  • The dock label, panel header / headline / footer hint all switch language when the user changes DSH's interface language.
  • The default is zh (Chinese) — the language the upstream token-plan model names resolve to most naturally. If the locale service is unavailable the dock still renders.

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-quote-reply 下一个 Next dsh-theme-colorizer →