Coding

Minimax Usage

Try it

Check MiniMax coding plan usage/credits remaining. Requires MINIMAX_API_KEY environment variable.

What it does

Check your MiniMax coding plan credits remaining.

The skill document

MiniMax Usage

Check your MiniMax coding plan credits remaining.

Usage

# Check remaining credits
bash /home/claw/.openclaw/workspace/skills/minimax-usage/scripts/minimax-usage.sh

# Only alert when remaining drops below 20%
bash /home/claw/.openclaw/workspace/skills/minimax-usage/scripts/minimax-usage.sh --threshold 20

Options

FlagDescription
--threshold 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 * * * * bash /home/claw/.openclaw/workspace/skills/minimax-usage/scripts/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.

Related skills

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.

by Iván535 installs31 stars

More from khaney64

Browse all skills

Query your Yahoo Fantasy Baseball league — roster, standings, matchups, free agents, transactions, and daily lineup optimization.

by khaney6442 installs

Analyze OpenClaw session logs to report token usage, costs, and performance metrics grouped by agent and model. Use when the user asks about API spending, to...

by khaney64110 installs1 stars

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 gam...

by khaney6449 installs2 stars

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 collecti

by khaney6434 installs

Scan session logs for leaked credentials. Checks JSONL session files against known credential patterns and reports which AI provider received the data.

by khaney6453 installs

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...

by khaney64107 installs2 stars