minimax-setup

minimax-setup is a command for Claude Code from XinyuQu/llm-review. It costs 22 tokens per session (495 once invoked), scanned C, a copy of deepseek-setup, Apache-2.0.

A guided setup command for connecting MiniMax to the LLM Review add-on. MiniMax is connected with an API key because it does not provide an official command-line option here.

In plain words
What is it for?
Use it to check MiniMax setup, add or change its API key, and configure MiniMax for code reviews.
Why use it?
It walks you through checking the connection and storing the key without putting it directly in a command's visible arguments. This avoids guessing at the setup steps.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the llm-review plugin — 1 skill, 16 commands shipped together

Good fit Use it to check MiniMax setup, add or change its API key, and configure MiniMax for code reviews.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add XinyuQu/llm-review
Claude Code
/plugin install llm-review

Made for: Claude Code.

Or install llm-review, the plugin that ships this one along with the rest of its 1 skill, 16 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/xinyuqu/llm-review/minimax-setup/github.svg)](https://agentmods.dev/commands/xinyuqu/llm-review/minimax-setup)
Your own site
<a href="https://agentmods.dev/commands/xinyuqu/llm-review/minimax-setup"><img src="https://agentmods.dev/badge/commands/xinyuqu/llm-review/minimax-setup/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-setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/xinyuqu/llm-review/minimax-setup"><img src="https://agentmods.dev/badge/commands/xinyuqu/llm-review/minimax-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 495 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod 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.00022 $0.00495
Opus 5 $0.00011 $0.00247
Sonnet 5 $0.00004 $0.00099
Haiku 4.5 $0.00002 $0.00049

Measured 9d ago against content hash ff451e514ed2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade C, and why

minimax-setup scanned grade C with 2 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 9d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Advanced — the **user** runs this in their own terminal (never you): `printf %s 'THE_KEY' | node "${CLAUDE_PLUGIN_ROOT}/scripts/llm-review.mjs" config-set --provider minimax --transport api --api-key-stdin` (key via st

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

**Security — hard rule:** never run any command containing the literal key yourself; a crafted key can inject shell commands. If the user pasted a key into the chat, do NOT put it in a command — tell them it is now expos
Origin

This is a copy

86% identical to deepseek-setup — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/minimax-setup.md · 29 lines

What it actually says

Guided setup for the minimax provider. Follow this exactly; do not improvise extra steps.

Step 1 — probe status:

node "${CLAUDE_PLUGIN_ROOT}/scripts/llm-review.mjs" setup --provider minimax --json

Parse the JSON: mode, api (hasKey, primaryEnv, keyHelp), ready, resolvedTransport, reviewCommand. MiniMax is mode: api-only (no official CLI) — API key only, no subscription option.

Step 2 — if already ready: tell the user it's set up, then AskUserQuestion once: Keep current setup vs Reconfigure. If keep → show status and stop.

Step 3 — API KEY FLOW:

  1. Tell the user where to get a key: api.keyHelp.

  2. Offer how to provide it, most secure first:

    • Recommended: run /plugin, open llm-review config, paste the key into the secure prompt (stored in the OS keychain).
    • Or export api.primaryEnv in their shell for this session.
    • Advanced — the user runs this in their own terminal (never you): printf %s 'THE_KEY' | node "${CLAUDE_PLUGIN_ROOT}/scripts/llm-review.mjs" config-set --provider minimax --transport api --api-key-stdin (key via stdin, never in argv; writes ~/.config/llm-review/config.json, chmod 600).

    Security — hard rule: never run any command containing the literal key yourself; a crafted key can inject shell commands. If the user pasted a key into the chat, do NOT put it in a command — tell them it is now exposed, to add it via the keychain (/plugin) or their own shell env, and to rotate it.

  3. Re-run the Step 1 probe and present it.

Step 4 — finish: state whether the provider is now ready and show the exact review command (reviewCommand, i.e. /llm-review:minimax). Use AskUserQuestion at most once in this flow.

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. 9d ago First seen · 29 lines · 22 tokens per session scan C ff451e514ed2

Subscribe to this mod's changes

minimax-setup is a command published in the GitHub repository XinyuQu/llm-review (6 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 22 tokens to every session and 495 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (asks for root, unrestricted tool access). It is 86% identical to deepseek-setup, differing in 12 lines, and is treated as a copy.