minimax-usage

minimax-usage is a skill for Claude Code, Codex from humanerd-drew/opencode-drewgent. It costs 0 tokens per session (1,799 once invoked), scanned A, original, MIT.

A terminal-based way to check remaining MiniMax Token Plan usage through its API. MiniMax is an AI service, and the guide reads its current usage and reset information without opening the web console.

In plain words
What is it for?
Use it to check the current five-hour and weekly allowance, see remaining model usage, and diagnose usage-query errors.
Why use it?
It makes usage checks quick from the command line and explains the required request method, credentials, and response format.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to check the current five-hour and weekly allowance, see remaining model usage, and diagnose usage-query errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/humanerd-drew/opencode-drewgent/minimax-usage
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add humanerd-drew/opencode-drewgent --skill minimax-usage
Clone the repo
git clone --depth 1 https://github.com/humanerd-drew/opencode-drewgent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for minimax-usage

README.md
[![agentmods](https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/minimax-usage/github.svg)](https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/minimax-usage)
Your own site
<a href="https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/minimax-usage"><img src="https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/minimax-usage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for minimax-usage

Your own site · 80×15
<a href="https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/minimax-usage"><img src="https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/minimax-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,799 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01799
Opus 5.5 $0.00000 $0.00720
Sonnet 5.5 $0.00000 $0.00360
Haiku 4.5 $0.00000 $0.00180

Measured 3mo ago against content hash 333b9e06e71f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

minimax-usage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/devops/minimax-usage/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.


name: minimax-usage description: Check MiniMax Token Plan usage, current 5h interval, and weekly remaining — terminal-friendly output (no browser/console). Use when the user asks about "Token Plan 남은거", "minimax 사용량", "리셋까지 얼마", "주간 한도", or wants a quick status check without opening platform.minimax.io/console. title: MiniMax Token Plan — Terminal Usage Check domain: devops space: growth type: workflow tags: [minimax, token-plan, api, usage, {{AGENT_NAME_LOWER}}] created: 2026-06-02 updated: 2026-06-02 links:

  • "[[@memory/growth/INTEGRATION_PROTOCOL]]"
  • "[[@identity/SELF_MODEL]]"
  • "[[@identity/brain/rules]]"---

MiniMax Token Plan — Terminal Usage Check

Skip platform.minimax.io/console — query the Token Plan API directly from the terminal.

1. API Endpoint (discovered 2026-06-02)

GET https://api.minimax.io/v1/api/openplatform/coding_plan/remains
Authorization: Bearer ${MINIMAX_API_KEY}

Why GET, not POST: trial showed POST returns 404 page not found. GET returns JSON.

Auth source: MINIMAX_API_KEY from ~/.{{AGENT_NAME_LOWER}}/.env (also exported in ~/.zshrc).

2. Response Schema (important: percentages, not absolute counts)

{
  "model_remains": [
    {
      "model_name": "general",                       // "general" = text models (M3, etc.), "video" = video gen
      "start_time": 1780376400000,                   // interval start (ms epoch)
      "end_time": 1780394400000,                     // interval end
      "remains_time": 9819982,                       // ms until interval reset
      "current_interval_remaining_percent": 49,      // 0~100, percent REMAINING
      "current_interval_status": 1,                  // 0=inactive, 1=active, 2=exhausted, 3=unlimited
      "weekly_start_time": 1780272000000,
      "weekly_end_time": 1780876800000,              // weekly window = 7 days
      "weekly_remains_time": 492219982,              // ms until weekly reset
      "current_weekly_remaining_percent": 48,
      "current_weekly_status": 1,
      "current_interval_total_count": 0,             // ⚠ always 0 — see Pitfall P1
      "current_interval_usage_count": 0              // ⚠ always 0
    },
    // {model_name: "video", ...} typically reports unlimited (status 3, percent 100)
  ],
  "base_resp": { "status_code": 0, "status_msg": "success" }
}

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 125 lines · 0 tokens per session scan A 333b9e06e71f

Subscribe to this mod's changes

minimax-usage is a skill published in the GitHub repository humanerd-drew/opencode-drewgent (3 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,799 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

minimax-usage compared with skills from other repositories

minimax-usage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
minimax-usagehumanerd-drew/opencode-drewgentSkill34mo agoMITA0Claude Code, Codex
agent-platform-model-registrygoogle/skillsSkill26kyesterdayApache-2.0A60Claude Code, Codex
llm-evaluationsickn33/agentic-awesome-skillsSkill51ktodayMITA25Claude Code
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill26kyesterdayApache-2.0A132Claude Code, Codex
training-checkwanshuiyin/Auto-claude-code-research-in-sleepSkill20k2d agoMITA35Claude Code
tao-run-inference-serviceNVIDIA/skillsSkill4.3kyesterdayApache-2.0A92Claude Code
nemo-automodel-launcher-configNVIDIA/skillsSkill4.3kyesterdayApache-2.0A30Claude Code