Skip to content
Back to skills

Minimax Usage 2

ASecurity

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

  • 21 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 7, 2026
toolsbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill minimax-usage-2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Minimax Usage 2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Minimax Usage 2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-minimax-usage-2/badge)](https://www.skillsdirectory.com/skills/modbender-minimax-usage-2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: minimax-usage
description: Check MiniMax coding plan usage/credits remaining. Requires MINIMAX_API_KEY environment variable.
metadata: {"openclaw":{"emoji":"💳","requires":{"bins":["curl","jq"],"env":["MINIMAX_API_KEY"]}}}
---

# MiniMax Usage

Check your MiniMax coding plan credits remaining.

## Usage

```bash
# 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:

```bash
# 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.

Files in this skill

  • SKILL.md1.7 KB
  • scripts/minimax-usage.sh3.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.