minimax-usage
Check MiniMax coding plan usage/credits remaining. Requires MINIMAX_API_KEY environment variable.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/khaney64/minimax-usage-2MiniMax Usage
Check your MiniMax coding plan credits remaining.
Usage
# Check remaining credits
minimax-usage.sh
# Only alert when remaining drops below 20%
minimax-usage.sh --threshold 20
Options
| Flag | Description |
|---|---|
--threshold <percent> | Only output when remaining % is below this value. If omitted, always outputs. |
Output
Returns a Discord-formatted message:
- Title with model name (warning icon when below threshold)
- Remaining requests out of total with percentage
- Reset time in Eastern Time
- Time left in H:MM:SS
Example: Below threshold alert
When remaining usage falls below the configured threshold:
⚠️ MiniMax Usage Alert — MiniMax-M1
Remaining: 42 of 500 requests (8.4%)
Resets: Feb 17, 2026 12:00 AM ET
Time left: 7:23:15
When above the threshold, the command produces no output and exits with code 0.
Cron Job
The --threshold flag makes this ideal for a cron job that runs periodically and only sends an alert when available credits drop below a percentage:
# Check every 30 minutes, alert if below 20%
# Requires MINIMAX_API_KEY to be set in the cron environment
*/30 * * * * minimax-usage.sh --threshold 20 | discord-webhook
No output is produced when usage is above the threshold, so downstream commands (e.g. a webhook) are only triggered when credits are running low.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-khaney64-minimax-usage-2": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
session-cost
Analyze OpenClaw session logs to report token usage, costs, and performance metrics grouped by model. Use when the user asks about API spending, token usage, session costs, or wants a usage summary.
leak-check
Scan session logs for leaked credentials. Checks JSONL session files against known credential patterns and reports which AI provider received the data.
discogs-sync
Add and remove albums from a Discogs wantlist or collection by artist and album name, master ID, or release ID. Search marketplace pricing for vinyl, CD, and other formats. List wantlist and collection contents. Use when the user asks to add or remove a record from their Discogs wantlist or collection, check what's on their wantlist, look up marketplace prices, or find what a record is selling for. Also supports bulk operations via CSV/JSON file input.
baseball
Fetch MLB game schedules, live game status, box scores, player search, and season statistics via the MLB Stats API. Use when the user asks about baseball games, scores, who is playing today, game results, live updates, pitching matchups, MLB schedule information, player lookups, or player stats.
quodd
Fetch real-time stock quotes via Quodd API. Get current prices, daily high/low, and after-hours data for US equities. Use when the user asks for stock prices, quotes, market data, or ticker information.