---
name: minimax-usage-4e993fecdd8c
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.


---
Source attribution: modbender
Original project: https://github.com/modbender/skill-library-mcp/blob/d9c8fe903b5b4e82237dbe8d0df8567783022e18/data/minimax-usage-2/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

MIT License

Copyright (c) 2025 skill-library-mcp contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Dave AI resource metadata

Creator / publisher: modbender
Original project: https://github.com/modbender/skill-library-mcp/blob/d9c8fe903b5b4e82237dbe8d0df8567783022e18/data/minimax-usage-2/SKILL.md
Attribution basis: Source repository record

Fields of work: Data & Analytics, Development & Engineering
Roles: Backend Developer, Data Analyst, DevOps / SRE
Specialties: API
Tools: Discord, Minimax
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 458f62252926deefeb209e75b7b1a3b6ad8395e645ef90d275773671b2bc8824
