MiniMax Token Plan Quota
v0.1.0Check MiniMax Token Plan remaining quota, usage window reset time, and per-model remaining limits, especially for the China mainland Token Plan flow on minim...
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description match the provided script and SKILL.md. The included Python script queries MiniMax quota endpoints and formats results; nothing in the files requests unrelated services or privileges.
Instruction Scope
Runtime instructions and the script limit actions to: read MINIMAX_API_KEY from env or ~/.openclaw/.env, call the MiniMax endpoints (China or global), and print a markdown table or JSON. The SKILL.md does not instruct reading other files or exfiltrating data.
Install Mechanism
There is no install spec; this is an instruction + script bundle. No external downloads, package installs, or archive extraction are used.
Credentials
The skill requires a MiniMax API key to function and the SKILL.md/script expect MINIMAX_API_KEY (env or ~/.openclaw/.env). Registry metadata lists no required env vars — that metadata omission is inconsistent but not malicious. No other secrets or unrelated credentials are requested.
Persistence & Privilege
The skill does not request permanent presence (always:false) and does not modify other skills or system-wide configs. It only reads ~/.openclaw/.env if present; it does not write persistent credentials itself.
Assessment
This skill appears to do exactly what it says: call MiniMax quota endpoints and format results. Before installing or running it, be aware that it needs your MiniMax API key (MINIMAX_API_KEY). Provide the key either as an environment variable for the one-off command or store it in ~/.openclaw/.env if you trust the environment. The registry metadata omits declaring that env var — that’s a minor inconsistency but not a security red flag. The script only contacts https://www.minimaxi.com and https://www.minimax.io and does not attempt to send data elsewhere or persist keys. If you have concerns, run the Python script locally and inspect network activity (or run it with a throwaway key) before giving it a real API key.Like a lobster shell, security has layers — review code before you run it.
latest
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_KEYfrom env - If env is absent, the bundled script will also try
~/.openclaw/.env - You may pass
--api-keyfor 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/.envis missing or lacksMINIMAX_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
Comments
Loading comments...
