360 Secure SkillHub
360 安全技能中心

Minimax Usage

该 Skill 提供 minimax-usage.sh 脚本:读取同目录 .env 中的 MINIMAX_CODING_API_KEY 与 MINIMAX_GROUP_ID,调用 MiniMax 开放平台 coding_plan/remains 接口,获取编码套餐已用/剩余提示数与重置时间,并输出 GREEN 等状态告警,帮助用户控制 API 用量。

thesethrose
thesethrose
热度 73.05
最近更新 2026-05-11 15:48:53
分类:自动化依赖:代码执行 / 第三方 API / 读写文件应用场景:自动化脚本 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add minimax-usage
Metadata
name
minimax-usage
description
Monitor Minimax Coding Plan usage to stay within API limits. Fetches current usage stats and provides status alerts.
metadata
{"clawdbot":{"emoji":"📊"}}

Minimax Usage Skill

Monitor Minimax Coding Plan usage to stay within limits.

Setup

Create a .env file in the same directory as the script:

MINIMAX_CODING_API_KEY=your_api_key_here
MINIMAX_GROUP_ID=your_group_id_here

Get your GroupId from: https://platform.minimax.io/user-center/basic-information (under "Basic Information")

Usage

./minimax-usage.sh

Output Example

🔍 Checking Minimax Coding Plan usage...
✅ Usage retrieved successfully:

📊 Coding Plan Status (MiniMax-M2):
   Used:      255 / 1500 prompts (17%)
   Remaining: 1245 prompts
   Resets in: 3h 17m

💚 GREEN: 17% used. Plenty of buffer.

API Details

Endpoint:

GET https://platform.minimax.io/v1/api/openplatform/coding_plan/remains?GroupId={GROUP_ID}

Required Headers:

accept: application/json, text/plain, */*
authorization: Bearer {MINIMAX_CODING_API_KEY}
referer: https://platform.minimax.io/user-center/payment/coding-plan
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36

Limits

Metric Value
Reset window 5 hours (dynamic)
Max target 60% usage
1 prompt ≈ 15 model calls

Notes

  • Coding Plan API key is exclusive to this plan (not interchangeable with standard API keys)
  • Usage from 5+ hours ago is automatically released from the count