360 Secure SkillHub
360 安全技能中心

MiniMax Token Plan Quota

核心功能为查询MiniMax Token Plan的当前周期/本周总额度、剩余额度、重置剩余时间及各模型限额,默认使用中国大陆端点,也支持全球端点。典型场景是用户询问MiniMax订阅额度剩余情况时启用。可通过环境变量、本地配置文件或临时传入API Key调用,输出默认简洁Markdown表格,也支持JSON格式,若模型额度为0会附加相应说明,严格遵循API密钥安全管理规则。

alex-shen1121
alex-shen1121
热度 46.59
最近更新 2026-05-11 17:36:03
分类:数据依赖:代码执行 / 第三方 API / 读写文件应用场景:报告撰写 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add minimax-token-plan-quota
Metadata
name
minimax-token-plan-quota
description
Check MiniMax Token Plan remaining quota, usage window reset time, and per-model remaining limits, especially for the China mainland Token Plan flow on minimaxi.com. Use when the user asks things like “MiniMax 还有多少额度”, “查一下 minimax 订阅剩余额度”, “看看 Token Plan 还剩多少”, or wants a compact quota table for MiniMax Token Plan.

MiniMax Token Plan Quota

Use this skill to query MiniMax Token Plan remaining quota.

Default behavior

  • Default to the China mainland endpoint on www.minimaxi.com
  • Return a compact table with:
    • 项目
    • 周期
    • 总额度
    • 剩余额度
    • 重置剩余时间

Important rule

Interpret the /coding_plan/remains response as remaining quota, not consumed quota.

The script maps:

  • current_interval_total_count → 当前周期总额度
  • current_interval_usage_count → 当前周期剩余额度
  • current_weekly_total_count → 本周总额度
  • current_weekly_usage_count → 本周剩余额度

Do not flip those meanings unless MiniMax docs change.

Secret handling

  • Prefer MINIMAX_API_KEY from env
  • If env is absent, the bundled script will also try ~/.openclaw/.env
  • You may pass --api-key for one-off manual runs
  • If the user pasted a key in the current conversation, use it transiently for the current task only
  • Do not store MiniMax API keys in workspace memory, skill files, or long-term notes
  • If ~/.openclaw/.env is missing or lacks MINIMAX_API_KEY, guide the user to add:
mkdir -p ~/.openclaw
printf "MINIMAX_API_KEY=你的key\n" > ~/.openclaw/.env

Commands

China mainland Token Plan quota

MINIMAX_API_KEY='...' python3 scripts/check_token_plan_quota.py --region cn

Or rely on ~/.openclaw/.env:

python3 scripts/check_token_plan_quota.py --region cn

Global endpoint

MINIMAX_API_KEY='...' python3 scripts/check_token_plan_quota.py --region global

JSON output

MINIMAX_API_KEY='...' python3 scripts/check_token_plan_quota.py --region cn --json

Output style for user replies

Default to the markdown table only when the user asks for a concise result.

Example:

| 项目 | 周期 | 总额度 | 剩余额度 | 重置剩余时间 |
|---|---|---:|---:|---|
| MiniMax-M* | 当前周期 | 1500 | 1500 | 4小时26分钟 |

If some models show total quota 0, explain briefly only when needed:

  • 当前套餐未开通
  • 或该 key 不包含此能力

Resource

scripts/check_token_plan_quota.py

Queries the MiniMax Token Plan quota endpoint and prints either:

  • a compact markdown table
  • or normalized JSON