Xpersona
M

Minimax Usage Cn

CLAWHUB · Unverified

Monitor Minimax Coding Plan usage to stay within API limits. Fetches current usage stats and provides status alerts. Use when checking API quota, monitoring... Skill: Minimax Usage Cn Owner: lanhaixuan Summary: Monitor Minimax Coding Plan usage to stay within API limits. Fetches current usage stats and provides status alerts. Use when checking API quota, monitoring... Tags: latest:1.1.0, minimax:1.0.5, monitor:1.0.5, usage:1.0.5 Version history: v1.1.0 | 2026-03-29T13:03:32.685Z | auto minimax-usage-cn v1.1.0 introduces JSON output mode and cron usage guidance. - Added supp

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s171r6m5te3p5t8gyadxmbpmjs83j3kf:minimax-usage-cn
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-lanhaixuan-minimax-usage-cn/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

27,273 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: minimax-usage-cn
description: Monitor Minimax Coding Plan usage to stay within API limits. Fetches current usage stats and provides status alerts. Use when checking API quota, monitoring usage, or before running large AI tasks. Shows 5-hour sliding window status.
homepage: https://www.minimaxi.com
metadata:
  openclaw:
    emoji: "📊"
    category: "AI工具"
    requires:
      env:
        - MINIMAX_API_KEY
      bins:
        - curl
    primaryEnv: MINIMAX_API_KEY
---

# Minimax Usage (国内版)

Monitor Minimax Coding Plan usage to stay within API limits.

---

## 目录结构

```
~/.openclaw/workspace/skills/minimax-usage-cn/
├── SKILL.md
└── scripts/
    └── minimax-usage.sh   # Main script
```

---

## 功能

- Check current usage quota
- Monitor 5-hour sliding window
- Get usage alerts before hitting limits

---

## When to Use This Skill

Use this skill whenever:

- User asks to check Minimax usage
- Before running large AI tasks
- When approaching limit warnings

---

## API Specification

**Endpoint:** `GET https://www.minimaxi.com/v1/api/openplatform/coding_plan/remains`

**Headers:**
```
Authorization: Bearer <MINIMAX_API_KEY>
Content-Type: application/json
```

**注意:** 此接口仅适用于国内版 `www.minimaxi.com`。

---

## Response Fields

| 字段 | 含义 | 示例 |
|------|------|------|
| `remains_time` | 订阅周期剩余时间 (秒),和5小时窗口无关 | 8277752 |
| `current_interval_total_count` | 周期总配额 (固定1500) | 1500 |
| `current_interval_usage_count` | **当前窗口剩余可用次数** | 1263 |
| `model_name` | 模型名称 | MiniMax-M2.5 |
| `start_time` / `end_time | 当前5小时滑动窗口起止时间 (毫秒时间戳) | 1773558000000 |

### 计算公式(重要!)

```python
# ❌ 错误理解
已用 = current_interval_usage_count  # 误以为这是"已用量"

# ✅ 正确理解
剩余 = current_interval_usage_count  # 这是"剩余可用次数"
已用 = current_interval_total_count - current_interval_usage_count
使用率 = (current_interval_total_count - current_interval_usage_count) / current_interval_total_count * 100%
```

**示例**:API 返回 `current_interval_total_count=1500`, `current_interval_usage_count=1263`
- 剩余 = 1263 次
- 已用 = 1500 - 1263 = **237 次**
- 使用率 = 237 / 1500 = **15.8%**

### 状态阈值

| 剩余量 | 使用率 | 状态 |
|--------|--------|------|
| >600 | <60% | 💚 GREEN |
| 375-600 | 60-75% | ⚠️ CAUTION |
| 150-375 | 75-90% | ⚠️ WARNING |
| <150 | >90% | 🚨 CRITICAL |

---

## Output Format

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

📊 Coding Plan Status (MiniMax-M2.5):
   Used:      102 / 1500 prompts (6%)
   Remaining: 1398 prompts
   Window:    20:00 - 00:00 (UTC+8)
   Resets in: 约 1h 13m

💚 GREEN: 6% used. Plenty of buffer.
```

### JSON Output Mode

For programmatic use, add `--json` or `-j` flag:

```bash
./minimax-usage.sh --json
```

Output:
```json
{
  "status": "GREEN",
  "used": 102,
  "total": 1500,
  "remaining": 1398,
  "percent": 6,
  "model": "MiniMax-M2.5",
  "window_start": "20:00",
  "window_end": "00:00",
  "resets_in_seconds": 4380
}
```

### Cron 定时检查

添加到 crontab 每小时检查一次:

```bash
# 编辑 crontab
crontab -e

# 添加以下行(每小时检查并记录)
0 * * * * cd /home/rocfly/.openclaw/works

_meta.json

{
  "ownerId": "kn7fvzgcp5s1b420711z4z9tfh80fwb3",
  "slug": "minimax-usage-cn",
  "version": "1.1.0",
  "publishedAt": 1774789412685
}

skill-card.md

## Description:

Monitor Minimax Coding Plan usage to stay within API limits, fetch current usage stats, provide status alerts, and show 5-hour sliding window status.

This skill is ready for commercial/non-commercial use.

## Publisher:

[lanhaixuan](https://clawhub.ai/user/lanhaixuan)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and operators use this skill to check Minimax Coding Plan quota, monitor remaining usage in the current 5-hour window, and decide whether to proceed with larger AI tasks.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill sends MINIMAX_API_KEY to www.minimaxi.com to retrieve quota information.

Mitigation: Install only if you trust www.minimaxi.com with the API key and use the script only for quota checks.

Risk: Cron examples can expose the API key to scheduled environments or write usage output to unsafe locations.

Mitigation: Adapt cron paths, intentionally scope the API key for cron, choose a safe log location, and document how to remove the scheduled job.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/lanhaixuan/skills/minimax-usage-cn)
- [Publisher Profile](https://clawhub.ai/user/lanhaixuan)
- [Minimax Homepage](https://www.minimaxi.com)
- [Minimax Coding Plan Usage Endpoint](https://www.minimaxi.com/v1/api/openplatform/coding_plan/remains)

## Skill Output:

**Output Type(s):** [Text, JSON, Shell commands, Guidance]

**Output Format:** [Human-readable terminal output or JSON from the usage-check script, with Markdown guidance in the skill documentation.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires MINIMAX_API_KEY and curl; supports --json/-j for programmatic output.]

## Skill Version(s):

1.1.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Minimax Usage Cn and adjacent AI workflows.