Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques
| [MCP OAuth Console](plugins/microbiosis/mcp-oauth-console/) | Sign in to MCP servers that require OAuth: device-code or authorization-code + PKCE flow, the `Authorization` header written into the MCP configuration, and an opt-in refresh before expiry | [Microbiosis](https://github.com/Microbiosis) |
| [本机大盘 · Local Market Board](plugins/jzlikewei/kurumi-monitor/) | Watch your own machine as a stock terminal: CPU, GPU, temperature, memory, disk, network and every running process become listed stocks with live candlesticks, moving averages, a watchlist, a leaderboard and a trade tape, on macOS and Windows. Requires minimax Code 3.1.2 or later | [jzlikewei](https://github.com/jzlikewei) |
| [Quota Bottle](plugins/7723qqq/quota-bottle/) | An octopus-shaped glass bottle that floats on your desktop and shows the remaining Token Plan quota from a login you configure yourself, with the liquid level and opacity following the remaining share, and a device-code login plus an opt-in local token-usage estimate as fallbacks | [7723qqq](https://github.com/7723qqq) |
| [Agent Quota Dashboard](plugins/hhw247485038/agent-quota-dashboard/) | Track subscription limits for MiniMax Code, Codex, OpenCode, and OpenDesign in a resizable Windows desktop window with compact quota rings | [hhw247485038](https://github.com/hhw247485038) |
| [Site QA](plugins/lonelyguy-se1/site-qa/) | Check local HTML/robots/sitemap for SEO and accessibility gaps, then ask the agent to fix them (Mini App + skill/CLI). Requires MiniMax Code 3.1.6 or later | [LonelyGuySE1](https://github.com/LonelyGuy-SE1) |
| [H3-Image-Executor](plugins/liddalidd/h3-image-executor/) | Turn one sentence into verified 4K images: it plans the shot list, searches for reference images, generates, reviews each image by looking at it, corrects colour cast, runs a bounded fix loop and delivers the result with an acceptance report; multi-image runs generate a character sheet first so the same subject stays the same subject. Needs an H3-Image endpoint and key you configure yourself. Requires MiniMax Code 3.1.6 or later | [liddalidd](https://github.com/liddalidd) |
| [Express Media](plugins/andre-1998/express-media/) | Compress a video to the size each platform accepts and report whether it fits; the bundled limits table shows where every number comes from | [Andre-1998](https://github.com/Andre-1998) |
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求
| [MCP OAuth 令牌台](plugins/microbiosis/mcp-oauth-console/README.zh-CN.md) | 给需要 OAuth 的 MCP 服务器完成登录:设备码或授权码 + PKCE 流程,把 `Authorization` 头写入 MCP 配置,并可选择在到期前自动续期 | [Microbiosis](https://github.com/Microbiosis) |
| [本机大盘](plugins/jzlikewei/kurumi-monitor/README.zh-CN.md) | 把本机当成行情终端来看:CPU、GPU、温度、内存、磁盘、网络与每个运行中的进程都是一只个股,实时 K 线、均线、自选行情、主力动向与逐笔成交,支持 macOS 与 Windows。需要 minimax Code 3.1.2 或更高版本 | [jzlikewei](https://github.com/jzlikewei) |
| [额度瓶](plugins/7723qqq/quota-bottle/README.zh-CN.md) | 一只悬浮在桌面上的章鱼形玻璃瓶,用你自己配置的登录读取 Token Plan 剩余额度;液面与透明度按剩余占比走,拿不到实时额度时回退到设备码登录或手填总额与可选的本机本月用量 | [7723qqq](https://github.com/7723qqq) |
| [Agent 额度看板](plugins/hhw247485038/agent-quota-dashboard/README.zh-CN.md) | 在可缩放的 Windows 桌面悬浮窗查看 MiniMax Code、Codex、OpenCode 和 OpenDesign 的订阅额度,可缩成一组额度圆环 | [hhw247485038](https://github.com/hhw247485038) |
| [Site QA](plugins/lonelyguy-se1/site-qa/) | 检查本地 HTML/robots/sitemap 的 SEO / 无障碍问题,再让 Agent 修复(Mini App + skill/CLI)。需要 MiniMax Code 3.1.6 或更高版本(说明文档为英文) | [LonelyGuySE1](https://github.com/LonelyGuy-SE1) |
| [H3-Image-Executor](plugins/liddalidd/h3-image-executor/README.zh-CN.md) | 把一句话需求跑成经过校验的 4K 图片:规划分镜、检索参考图、生成、看图评审、色偏校正、有限次修正,最后交付图片和验收报告;多图任务会先生成角色设定图锁定主体外观。需要自备 H3-Image 接口地址和 Key。需要 MiniMax Code 3.1.6 或更高版本 | [liddalidd](https://github.com/liddalidd) |
| [急件 · 视频投递](plugins/andre-1998/express-media/README.zh-CN.md) | 把视频压到各平台能收的体积,并如实告诉你发不发得出去;内置上限表标明每个数字的来源 | [Andre-1998](https://github.com/Andre-1998) |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"schemaVersion": 1,
"name": "agent-quota-dashboard",
"displayName": "Agent 额度看板",
"version": "0.1.0",
"description": "在可缩放的 Windows 桌面悬浮窗中查看 MiniMax Code、Codex、OpenCode、OpenDesign 的订阅额度。需手动启用登录凭据和本机用量读取。",
"author": "hhw247485038",
"icon": "icon.png",
"category": "Productivity",
"exampleQueries": [
"查看各客户端账户的额度剩余情况",
"打开客户端额度看板"
],
"apps": [],
"mcpServers": [],
"skills": []
}
21 changes: 21 additions & 0 deletions plugins/hhw247485038/agent-quota-dashboard/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 hhw247485038

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
37 changes: 37 additions & 0 deletions plugins/hhw247485038/agent-quota-dashboard/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Agent Quota Dashboard

[简体中文](README.zh-CN.md)

Agent Quota Dashboard brings the remaining subscription limits for MiniMax Code, Codex, OpenCode, and OpenDesign into one Windows desktop window. Resize it, choose a dark or white background, or dock it as a row of quota rings. The inline view also shows 30 days of MiniMax Code token usage by Agent.

![Dashboard preview with synthetic quota data](docs/preview.png)

## Install and use

1. Copy this entire directory, including `.minimax-plugin/`, into `<MiniMax Code data directory>/plugins/agent-quota-dashboard/`. By default the data directory is `%USERPROFILE%\.minimax`. On MiniMax Code 3.1.11 or later you can also import a published copy of the package directory from its Git URL.
2. Open **Agent 额度看板** in MiniMax Code. In **数据访问**, turn on **启用读取** to authorize the reads described below.
3. Select **悬浮窗** to pin the dashboard. Use **外观** for theme and opacity. The bottom-right arrow docks the window and collapses it into one ring per provider. Each ring shows the provider's shortest available window. Click a ring to restore the previous size or drag a ring to move the group.

Use your own signed-in clients or account keys. OpenCode Go, Go Plus, and Go Teams use the same quota endpoint. OpenCode's response reports actual windows and usage, so the dashboard shows those values without a tier label.

## Tested environment

- Target platform is Windows. The floating-window API requires MiniMax Code 3.1.2 or later.
- Development host uses Windows and MiniMax Code 3.1.21.236. The candidate runtime and consent behavior are tested with Node.js. The candidate still needs an in-client install check for native dragging, docking, resizing, and close behavior.

## Data & access

**启用读取** defaults to off. While it is on, the visible board reads and refreshes provider quotas once per minute. The inline view also reads MiniMax Code usage. Turning the setting off stops new refreshes and clears the displayed results. Requests already started may finish in the background.

| Provider | Local access and outbound destinations |
| --- | --- |
| MiniMax Code | Reads `auth/**/auth.json`. For the inline view, reads `agents/**/agent.md` metadata and queries the `local_runtime_token_usage` table in `v2/sqlite/runtime-state.sqlite` read-only. The data root is discovered via `MINIS_MAX_DATA_DIR`, `MAVIS_DATA_DIR`, `MINIMAX_DATA_DIR`, `DATA_DIR`, or the default `~/.minimax`. This relies on an unspecified Host layout. The account token is used for read-only billing queries to `https://agent.minimax.cn` and `https://www.minimaxi.com`. Usage and Agent metadata stay on the machine. |
| Codex | Starts the installed `codex --disable plugins app-server` and requests `account/read` and `account/rateLimits/read`. Searches PATH, the npm installation, or the executable set by `MINIMAX_AGENT_CLI_CODEX`. Codex handles its own sign-in and service connection. |
| OpenCode | Reads an existing key from `OPENCODE_API_KEY`, `OPENCODE_CONSOLE_API_KEY`, the optional credentials file below, or an OpenCode `auth.json` under `~/.local/share/opencode`, `~/.config/opencode`, `%APPDATA%/opencode`, or `%LOCALAPPDATA%/opencode`. Sends it only to `https://opencode.ai/inference/go/v1/usage`. |
| OpenDesign | Reads a billing control key from `OPEN_DESIGN_CONTROL_KEY`, the optional credentials file below, or a profile in `~/.amr/config.json` (honors `AMR_HOME`, `OPEN_DESIGN_AMR_PROFILE`, and `VELA_PROFILE`). Queries workspaces and billing only at `https://amr-api.open-design.ai`. A custom origin is rejected. |

The optional credentials file is `~/.minimax-quota/credentials.json` or the path in `MINIMAX_QUOTA_CREDENTIALS`. Its `opencode` and `opendesign` entries are strings containing the Console API key and the billing control key, respectively. The plugin only reads that file. Credentials are kept in the Node process. Responses sent to the Mini App page contain quota summaries and local usage statistics.

The Mini App stores the access switch and window preferences in `widget-settings.json` under the Host-provided `context.dataDir`. On Windows, opening the floating view can start `powershell.exe -NoProfile -NonInteractive -EncodedCommand <bundled widget-clip.ps1>` for native window dragging and shaping. The helper receives validated geometry over standard input and is stopped when the Mini App is disposed.

The contribution uses no Agent turns, conversation content, MCP tools, Host navigation, microphone, camera, or system notifications.
32 changes: 32 additions & 0 deletions plugins/hhw247485038/agent-quota-dashboard/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Agent 额度看板

[English](README.md)

在同一个 Windows 桌面悬浮窗查看 MiniMax Code、Codex、OpenCode 和 OpenDesign 的剩余额度。悬浮窗支持缩放、深灰与纯白配色、背景透明度调整,也可缩成一组额度圆环。完整看板还能查看 MiniMax Code 本机近 30 天的 Agent Token 用量。

![额度看板预览,使用模拟数据](docs/preview.png)

## 安装与使用

1. 将完整目录(包括隐藏的 `.minimax-plugin/`)复制到 `<MiniMax Code 数据目录>/plugins/agent-quota-dashboard/`,默认数据目录是 `%USERPROFILE%\.minimax`。MiniMax Code 3.1.11 起,也可用插件页的 Git 仓库导入功能安装已发布的版本。
2. 打开「Agent 额度看板」,在「数据访问」中勾选「启用读取」。
3. 点「悬浮窗」将看板放到桌面。点「外观」调节配色与透明度。点右下箭头缩成一组圆环,每家只显示最短额度窗口。点任意圆环恢复窗口,拖动任意圆环可移动整组。

OpenCode Go、Go Plus 和 Go Teams 共用同一个额度接口。看板显示接口实际返回的剩余额度和重置时间,套餐名可在 OpenCode Console 的计费页面查看。

## 测试环境

- 目标平台为 Windows,桌面悬浮窗至少需要 MiniMax Code 3.1.2。
- 开发环境的 MiniMax Code 版本为 3.1.21.236。候选包在 Node.js 中验证了运行时和数据访问开关,仍需在桌面端安装验证拖动、停靠、缩放与关闭。

## 数据与权限

「启用读取」默认关闭。开启后,看板可见时会查询订阅额度并每分钟刷新,完整看板也会读取本机用量。关掉开关即停止新的刷新并清空显示,已发出的查询可能在后台完成。

- MiniMax Code 只读本机登录、Agent 信息及 SQLite 中的 Token 用量统计。数据目录解析和具体文件见英文版。账户凭据只用于向 `agent.minimax.cn` 和 `www.minimaxi.com` 查询。Agent 信息与本机用量留在设备上。
- Codex 启动本机 `codex --disable plugins app-server` 查询账号与限额,连接由 Codex 自己管理。
- OpenCode 从现有环境变量、凭据文件或本机 OpenCode 登录记录读取 Key,只发送到 `opencode.ai` 额度接口。
- OpenDesign 从环境变量、凭据文件或本机 `.amr/config.json` 读取控制台 Key,只发送到 `amr-api.open-design.ai`。
- 看板仅把数据访问开关和窗口偏好写入 Mini App 私有目录中的 `widget-settings.json`。Windows 悬浮窗可启动随包附带的 PowerShell 脚本来拖动和裁剪窗口。

看板不读取对话内容、发起 Agent 对话或调用 MCP 工具,也不访问主窗口导航、麦克风、摄像头或系统通知。
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading