How to Save Cost with MiniMax Coding Plan and Use It for Claude Code
If you are paying $100/month for Claude Code Max and wondering if there is a cheaper way, MiniMax deserves your attention. MiniMax offers an Anthropic-compatible API that works directly inside Claude Code — same setup, same workflow, roughly half the price.
This guide covers how MiniMax coding plans work, the real cost comparison, how to set it up in 5 minutes, and what tradeoffs you should expect.
Why Consider MiniMax for Coding
MiniMax M2.5 launched in February 2026 as an agentic coding model built specifically for tasks like task decomposition, planning, tool use, and full-stack development. The key selling points:
- Anthropic-compatible API: Point Claude Code at MiniMax and everything works — skills, agents, hooks, commands, CLAUDE.md files
- Mixture-of-Experts architecture: 230B parameters with only 10B active per query
- Coding Plan subscription: Predictable monthly pricing instead of variable token costs
- Built-in MCP tools: Web search and image understanding included with the plan
MiniMax Coding Plan Pricing Comparison
Here is how MiniMax stacks up against Claude Code and other coding plans:
| Plan | Price/mo | Prompts/5hr | Speed | Best For |
|---|---|---|---|---|
| MiniMax Starter | $10 | 100 | ~50 TPS | Light use, testing |
| MiniMax Plus | $20 | 300 | ~50 TPS | Regular developers |
| MiniMax Max | $50 | 1,000 | ~50 TPS | Heavy daily use |
| MiniMax Plus HS | $40 | 300 | ~100 TPS | Speed matters |
| MiniMax Max HS | $80 | 1,000 | ~100 TPS | Power users |
| Claude Code Pro | $20 | Usage limits | Varies | Casual users |
| Claude Code Max 5x | $100 | 5x Pro | Priority | Heavy users |
| Claude Code Max 20x | $200 | 20x Pro | Priority | Enterprise |
Key insight: MiniMax Max at $50/month gives you 1,000 prompts per 5-hour window. Claude Code Max 5x at $100/month gives you 5x the Pro limit — but the actual usage depends on how your coding tool counts prompts.
Important: One prompt in a coding tool typically triggers 5-30 model calls behind the scenes (code analysis, search, generation, validation). Different platforms count differently — some count user prompts, others count API requests. Check the specific platform for how quotas work.
What You Gain with MiniMax
- MCP tools included: Web search and image understanding come bundled — no extra setup for these features
- Anthropic-compatible: Drop-in replacement for most Claude Code workflows
- Predictable pricing: Flat monthly fee instead of variable token meter
- High-speed tier available: Up to 100 TPS for users who need fast responses
- Multiple tool support: Works with Claude Code, Roo Code, Kilo Code, Cline, OpenCode, and more
What You Lose Compared to Claude
- Model pinning unavailable: Anthropic lets you pin specific model versions. MiniMax Coding Plan does not offer this — model versions can change without notice
- Different reasoning quality: For complex architectural decisions or deep debugging, some users still prefer Claude Opus
- No guaranteed consistency: When model versions change, output style may shift slightly
- Support ecosystem: Claude Code has deeper IDE integration in some tools
How to Set Up MiniMax with Claude Code
The whole setup takes about 5 minutes.
Step 1: Subscribe and Get Your API Key
- Go to MiniMax Coding Plan
- Choose your plan (Max at $50/month is the sweet spot for most users)
- Subscribe and grab your API key from account settings
Note: The Coding Plan key is separate from pay-as-you-go keys — they are not interchangeable.
Step 2: Clear Existing Anthropic Variables
unset ANTHROPIC_AUTH_TOKEN
unset ANTHROPIC_BASE_URL
This prevents conflicts with your old Anthropic configuration.
Step 3: Update Claude Code Config
Edit ~/.claude/settings.local.json:
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.minimax.io/anthropic",
"ANTHROPIC_AUTH_TOKEN": "YOUR_CODING_PLAN_API_KEY",
"API_TIMEOUT_MS": "3000000",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": 1,
"ANTHROPIC_MODEL": "MiniMax-M2.7",
"ANTHROPIC_SMALL_FAST_MODEL": "MiniMax-M2.7",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "MiniMax-M2.7",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "MiniMax-M2.7",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "MiniMax-M2.7"
}
}
The timeout is set to 3,000,000ms (50 minutes) for long agentic tasks. Adjust as needed.
Step 4: Add MCP Tools (Optional but Recommended)
The Coding Plan includes web search and image understanding. Add them:
claude mcp add -s user MiniMax \
--env MINIMAX_API_KEY=YOUR_API_KEY \
--env MINIMAX_API_HOST=https://api.minimax.io \
-- uvx minimax-coding-plan-mcp -y
Or add manually to .mcp.json:
{
"mcpServers": {
"MiniMax": {
"command": "uvx",
"args": ["minimax-coding-plan-mcp", "-y"],
"env": {
"MINIMAX_API_KEY": "YOUR_API_KEY",
"MINIMAX_API_HOST": "https://api.minimax.io"
}
}
}
}
Step 5: Verify It Works
- Launch Claude Code
- Type
/model— should showMiniMax-M2.7 - Run a few test tasks (refactoring, test generation, PR review)
- Confirm your custom commands and agents work
Real Cost Comparison
Here is what users actually report spending:
| Setup | Monthly Cost | What You Get |
|---|---|---|
| Claude Code Max 5x (Anthropic direct) | $100 + API overages | 5x Pro usage, priority access |
| MiniMax Max + Claude Code Pro (fallback) | $50 + $20 | $70 total, MiniMax daily + Claude for hard tasks |
| MiniMax Max only | $50 | 1,000 prompts/5hr, M2.7 model |
| MiniMax Plus HS | $40 | 300 prompts/5hr, ~100 TPS speed |
Smart strategy: Use MiniMax Max ($50/month) for daily development. Keep Claude Code Pro ($20/month) for complex tasks that need deeper reasoning. Total: $70/month instead of $100+ with better coverage for edge cases.
Common Mistakes and How to Avoid Them
Mistake 1: Not clearing old Anthropic variables
If ANTHROPIC_AUTH_TOKEN is still set, Claude Code will still route to Anthropic instead of MiniMax. Run the unset commands before starting.
Mistake 2: Ignoring quota resets
The 5-hour rolling window means your oldest usage falls off as time passes. Do not wait for a fixed daily reset — your quota auto-refunds as usage rolls out of the window.
Mistake 3: Mixing Coding Plan key with pay-as-you-go
These are separate key types. If you have both set, double-check your config is using the correct one.
Mistake 4: Not verifying model version
Model versions on managed plans can change. Run /model at the start of each session to confirm which version you are using.
Mistake 5: Skipping the fallback plan
For complex architectural decisions or tasks you cannot afford to get wrong, keep Claude API access as a fallback. A 10-second config swap back to Anthropic is worth the insurance.
When MiniMax Coding Plan Makes Sense
Good fit:
- You use Claude Code daily and want to reduce costs
- You have established Claude Code workflows you want to keep
- You want predictable monthly pricing
- You use MCP tools (web search, image understanding)
Stick with Claude direct:
- You need guaranteed model version pinning
- You primarily work on complex architectural decisions
- You need Claude Code Max 20x for enterprise scale
- You rely on specific Claude-exclusive features
FAQ
Q: Can I use both MiniMax and Claude Code together?
A: Yes. Keep both configurations. Use MiniMax for daily development (refactoring, test generation, boilerplate) and switch to Claude when you hit something that needs deeper reasoning. Total cost: around $70/month instead of $100+.
Q: Does MiniMax work with all coding tools?
A: MiniMax supports Claude Code, Roo Code, Kilo Code, Cline, OpenCode, Codex CLI, and more. Claude Code is the most popular, but alternatives work too.
Q: What is the 5-hour rolling window?
A: Your quota refreshes on a rolling basis — as time passes, your oldest usage falls off and quota frees up. You do not wait for a fixed daily reset. For example, if you use 100 prompts at 2pm, by 7pm those 100 are rolling out of the window.
Q: How many prompts do I actually get?
A: MiniMax Max gives 1,000 prompts per 5-hour window. But remember: one coding task typically triggers 5-30 model calls. So 1,000 prompts might translate to 50-100 actual coding tasks depending on complexity.
Q: Is the quality good enough for production code?
A: For most developers, yes. MiniMax M2.7 scores well on SWE-Bench (coding benchmarks). For complex architectural decisions, deep debugging, or work where you cannot afford mistakes, keep Claude as your fallback.
Q: Can I switch back to Anthropic anytime?
A: Yes. Change your settings.local.json back to Anthropic values and restart. Takes about 10 seconds. No lock-in.
Q: Are there annual discounts?
A: Yes. MiniMax annual plans save $100-300 depending on the tier. Max plan at $500/year instead of $600/year.
Key Takeaways
- MiniMax Coding Plan starts at $10/month vs Claude Code at $20-200/month
- MiniMax Max at $50/month is the sweet spot for most developers
- Setup takes 5 minutes — just update settings.local.json with MiniMax API endpoint
- All Claude Code features work — skills, agents, hooks, commands, CLAUDE.md
- Keep Claude Code Pro as fallback for complex tasks ($20 extra/month)
- Verify model version at start of each session (run /model)
- Smart combo: MiniMax Max ($50) + Claude Pro ($20) = $70/month total
- No model pinning on MiniMax — versions can change without notice
- Web search and image MCP tools included with the plan
- Annual plans save $100-300 per year
Next Steps
Ready to cut your coding costs?
- Start with MiniMax Max at $50/month (best value for daily use)
- Follow the 5-minute setup guide above
- Keep Claude Code Pro as fallback for complex tasks
- Monitor your usage for the first week to gauge if the quota fits your workflow
- Consider annual billing to save $100+ per year
The $50/month vs $100/month difference sounds small, but over a year it is $600 savings. That pays for other tools, courses, or just about anything else. And with the Anthropic-compatible API, you do not have to change how you work.

