Minimax Usage Monitor (CN) for Openclaw

A real-time monitoring tool to track Minimax Coding Plan API usage and sliding window quotas within the Openclaw ecosystem.

lanhaixuan
v1.1.0
Mar 29, 2026
1
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install minimax-usage-cn

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install minimax-usage-cn using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Minimax Usage Monitor (CN)?

This skill provides a streamlined way to track your Minimax Coding Plan usage specifically for the domestic Chinese version (minimaxi.com). It allows developers to monitor their 5-hour sliding window quota, ensuring that AI-driven coding tasks are never interrupted by unexpected API limit hits.

By providing clear status alerts and usage percentages, it empowers developers using Openclaw Skills to manage their resources efficiently without manually checking web consoles. The skill translates raw API data into actionable insights, helping you decide when to push large AI tasks and when to wait for the next resource window.

Minimax Usage Monitor (CN) Use Cases

  • Checking current Minimax API quota before starting intensive AI coding sessions.
  • Automating usage alerts through cron jobs to stay within the 5-hour sliding window.
  • Programmatically fetching usage data in JSON format for integration into custom dashboards or DevOps pipelines.
  • Troubleshooting Resource Limit Exceeded errors by identifying specific quota depletion.

How Minimax Usage Monitor (CN) Works

  1. The skill authenticates with the Minimax API using the provided MINIMAX_API_KEY.
  2. It calls the coding plan remains endpoint to fetch the total interval count and the remaining usage count.
  3. The logic calculates the actual usage and percentage by subtracting the remaining count from the total interval quota.
  4. It maps the usage percentage to a color-coded status (Green, Caution, Warning, or Critical) based on predefined thresholds.
  5. The final output is presented either as a human-readable status report or a structured JSON object.

Minimax Usage Monitor (CN) Setup

Set the required environment variable in your shell configuration or Openclaw environment:

export MINIMAX_API_KEY="your_api_key_here"

The skill requires curl to be installed. To run the script manually:

chmod +x ~/.openclaw/workspace/skills/minimax-usage-cn/scripts/minimax-usage.sh
~/.openclaw/workspace/skills/minimax-usage-cn/scripts/minimax-usage.sh

Minimax Usage Monitor (CN) Data Schema & Taxonomy

The skill processes data from the Minimax API and can output it in the following schema for Openclaw Skills users:

Field Description Example
status Current health status based on usage "GREEN", "CAUTION", "WARNING", "CRITICAL"
used Number of prompts consumed in current window 102
total Total quota available in the 5-hour window 1500
remaining Available prompts remaining before limit 1398
percent Current usage percentage 6
window_end Local time (UTC+8) when current window resets "00:00"

Minimax Usage Monitor (CN) Advanced Features

  • JSON Output Mode: Use the --json or -j flag for programmatic data consumption in external tools.
  • Automated Monitoring: Easy integration with crontab for hourly usage logging and automated threshold alerting.
  • Quiet Mode: Includes a -q flag for silent checks that can be used in background processes.
  • Precise Time Calculation: Automatically converts Unix timestamps to local UTC+8 time for accurate window reset tracking.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*