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.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.svg" alt="Measured on agentmods" 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 $0.00000 $0.00899
Sonnet 5 $0.00000 $0.00360
Haiku 4.5 $0.00000 $0.00180

Measured 3d ago against content hash 333b9e06e71f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 3d 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. 3d 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 (2 stars, last pushed 1mo 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

Other skills, from other repositories

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens

agent-platform-model-registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

google/skills · 60 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

google-cloud-solution-agentic-analytics-spark-knowledge-catalog

Discovers requirements and generates guidance to design and deploy a governed, secure agentic-analytics solution for data that's distributed across Google Cloud, other cloud providers, or on-premises. Data that's outside Google Cloud (such as data from Databricks, Snowflake, Salesforce, SAP, or Oracle systems) is…

google/skills · 138 tokens

training-check

Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.

wanshuiyin/Auto-claude-code-research-in-sleep · 35 tokens

nemo-automodel-launcher-config

Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.

NVIDIA/skills · 30 tokens