minimax-plan-usage
v1.0.0查询 MiniMax Token Plan 剩余用量。slash command。 查询 MiniMax Token Plan 剩余次数和重置时间,支持 M2.7/Speech/视频/图片/音乐等模型的用量查询。 Query MiniMax Token Plan usage and reset time. Sup...
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
The skill declares python and MINIMAX_API_KEY and its script calls a MiniMax 'remains' endpoint to report model quotas — this matches the name/description. One minor inconsistency: the package homepage in metadata is platform.minimax.io while the script and SKILL.md default API host are https://www.minimaxi.com (extra 'i'); this is likely a benign domain variation but worth verifying the correct official API host before use.
Instruction Scope
SKILL.md describes only querying the MiniMax remains endpoint and the script only reads MINIMAX_API_KEY (and optional MINIMAX_API_HOST). It does not access other files, system paths, or send data to unrelated endpoints. Note: the script maps API fields to human labels and may misinterpret API field names (e.g., using current_interval_usage_count as 'remaining') — this is a correctness issue, not a security one.
Install Mechanism
There is no install spec (instruction-only) and the code relies on the third-party 'requests' package. The script prints an error asking the user to 'pip install requests' if missing; the skill does not declare or automate that dependency. No remote archives or untrusted downloads are used.
Credentials
Only MINIMAX_API_KEY is required (with an optional MINIMAX_API_HOST). These are appropriate and proportionate for calling the MiniMax Token Plan API. The skill does not request unrelated secrets or system credentials.
Persistence & Privilege
The skill is not always-enabled and requests no system config changes or elevated privileges. disable-model-invocation is true (the skill cannot call the model autonomously), reducing autonomous blast radius.
Assessment
This skill appears to do exactly what it says: call MiniMax's token-plan remains endpoint and print usage. Before installing, verify the API host (minimaxi.com vs minimax.io) is the official MiniMax endpoint you expect, and only provide a Token Plan key (MINIMAX_API_KEY) that is scoped appropriately. Ensure your environment has Python and the 'requests' package (pip install requests) or the script will fail. Review the script if you want to confirm it only sends the API key to the MiniMax host and doesn't perform additional actions. If you have concerns about sharing the token, consider creating a limited-scope token for this purpose.Like a lobster shell, security has layers — review code before you run it.
Runtime requirements
Binspython
EnvMINIMAX_API_KEY
latest
MiniMax Token Plan 用量查询
实时查询 MiniMax Token Plan 各模型的剩余额度,无需打开网页。
功能
- 查询 M2.7 文本模型的窗口剩余次数和重置倒计时
- 查询 Speech 2.8 语音模型的窗口剩余次数
- 查询视频、图片、音乐等模型的窗口剩余次数
- 显示各模型窗口重置剩余时间
使用方式
在 Discord 中输入 /minimax_usage
技术细节
脚本调用 MiniMax 官方接口:
GET https://www.minimaxi.com/v1/api/openplatform/coding_plan/remains
返回数据包含 model_remains 数组,每项对应一种模型。
环境变量
| 变量 | 必填 | 默认值 | 说明 |
|---|---|---|---|
MINIMAX_API_KEY | 是 | — | Token Plan API Key |
MINIMAX_API_HOST | 否 | https://www.minimaxi.com | API 地址,国内版用此地址 |
输出示例
**MiniMax Token Plan 用量**
**M2.7**
剩余次数: 431 / 600
重置倒计时: 2h 0m 46s
**Speech 2.8**
剩余次数: 0 / 0
重置倒计时: 6h 0m 46s
注意事项
- 需要已设置
MINIMAX_API_KEY环境变量(Token Plan 专属 Key,非普通 API Key) - 返回的
remaining是本窗口剩余次数,total是窗口总限额 remains_time单位为毫秒,表示距离窗口重置的剩余时间- 适用于 MiniMax Token Plan 订阅用户
Comments
Loading comments...
