MiniMax Token Plan Quota
Use this skill to query MiniMax Token Plan remaining quota.
Default behavior
- - Default to the China mainland endpoint on INLINECODE0
- 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 → 当前周期总额度 - INLINECODE3 → 当前周期剩余额度
- INLINECODE4 → 本周总额度
- INLINECODE5 → 本周剩余额度
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 INLINECODE7
- 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:
CODEBLOCK0
Commands
China mainland Token Plan quota
CODEBLOCK1
Or rely on ~/.openclaw/.env:
CODEBLOCK2
Global endpoint
CODEBLOCK3
JSON output
CODEBLOCK4
Output style for user replies
Default to the markdown table only when the user asks for a concise result.
Example:
CODEBLOCK5
If some models show total quota 0, explain briefly only when needed:
Resource
scripts/check_token_plan_quota.py
Queries the MiniMax Token Plan quota endpoint and prints either:
- - a compact markdown table
- or normalized JSON
MiniMax Token Plan Quota
使用此技能查询 MiniMax Token Plan 剩余额度。
默认行为
- - 默认使用 www.minimaxi.com 上的中国大陆端点
- 返回一个紧凑的表格,包含:
- 项目
- 周期
- 总额度
- 剩余额度
- 重置剩余时间
重要规则
将 /coding_plan/remains 的响应解释为剩余额度,而非已消耗额度。
脚本映射关系:
- - currentintervaltotalcount → 当前周期总额度
- currentintervalusagecount → 当前周期剩余额度
- currentweeklytotalcount → 本周总额度
- currentweeklyusagecount → 本周剩余额度
除非 MiniMax 文档变更,否则不要颠倒这些含义。
密钥处理
- - 优先从环境变量 MINIMAXAPIKEY 获取
- 如果环境变量不存在,捆绑脚本也会尝试读取 ~/.openclaw/.env
- 可传递 --api-key 参数用于一次性手动运行
- 如果用户在当前对话中粘贴了密钥,仅在当前任务中临时使用
- 不要将 MiniMax API 密钥存储在工作区内存、技能文件或长期笔记中
- 如果 ~/.openclaw/.env 缺失或缺少 MINIMAXAPIKEY,引导用户添加:
bash
mkdir -p ~/.openclaw
printf MINIMAXAPIKEY=你的key\n > ~/.openclaw/.env
命令
中国大陆 Token Plan 额度
bash
MINIMAXAPIKEY=... python3 scripts/checktokenplan_quota.py --region cn
或依赖 ~/.openclaw/.env:
bash
python3 scripts/checktokenplan_quota.py --region cn
全球端点
bash
MINIMAXAPIKEY=... python3 scripts/checktokenplan_quota.py --region global
JSON 输出
bash
MINIMAXAPIKEY=... python3 scripts/checktokenplan_quota.py --region cn --json
用户回复的输出样式
当用户要求简洁结果时,默认仅返回 markdown 表格。
示例:
markdown
| 项目 | 周期 | 总额度 | 剩余额度 | 重置剩余时间 |
|---|
| MiniMax-M* | 当前周期 | 1500 | 1500 | 4小时26分钟 |
如果某些模型显示总额度为 0,仅在必要时简要说明:
资源
scripts/checktokenplan_quota.py
查询 MiniMax Token Plan 额度端点,输出:
- - 紧凑的 markdown 表格
- 或标准化的 JSON