dshbase

插件目录 / Developer / mmx-quota-tool

mmx-quota-tool

未验证 mtty-ai

✓ 持续维护 基于 1 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
语言
2026-08-16最近推送
跨平台平台

功能简介

MiniMax token-plan quota dock for DSH web — drop-shape 5h usage %, click for detail panel, auto-hides for non-MiniMax models

我们的评价
未验证 — 尚未实测

MiniMax token-plan quota dock for DSH web — drop-shape 5h usage %, click for detail panel, auto-hides for non-MiniMax models 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

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.

Architecture

Half File Responsibility
Host src/index.js 60 s upstream poll + exposes two HTTP routes
Client client/client.js 5 s poll + mounts the dock UI in conversation.input.left

The host registers two routes on the profile's webServer:

  • GET /api/mmx-quota-tool/quota — current snapshot
  • POST /api/mmx-quota-tool/refresh — force refresh

Returns { rows, lastFetchedAt, lastError, lastStatus, model, isMmx, refreshIntervalMs }.

The client polls quota and renders null when isMmx === false, so
switching to a non-MiniMax model hides the dock within 5 s.

Files

.
├── README.md
├── LICENSE
├── package.json             # dsh.bundle + dsh.client declaration + exports
├── cordis.patch.yml         # dsh bundle patch (registers the row)
├── src/index.js             # host: HTTP routes + 60s upstream poll
└── client/client.js         # browser: 5s poll + React UI + injected <style>

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 mmx-quota-tool」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

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

Headless(CLI)profile:

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

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-27 · 标记 webonly
备注:验证: web-only;待 L4 web CDP;L4 web CDP runtime-fail on dsh 0.1.0-rc.8. 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7795 个插件 →