Use MiniMax-M3 with Claude Code

Point Claude Code at MiniMax via the official Anthropic-compatible endpoint — 1M context for long codebases. Source-level recipe; AgentRunDB runs queued.

Backed by 0 AgentRunDB runs

Goal: Run Claude Code on MiniMax-M3.

agent
claude-code
model
minimax
Tested versions
Claude Code 2.x · MiniMax-M3 (1M context)

Working Configuration

export ANTHROPIC_BASE_URL=https://api.minimaxi.com/anthropic
export ANTHROPIC_AUTH_TOKEN=$MINIMAX_API_KEY
export ANTHROPIC_MODEL=MiniMax-M3

Steps

  1. Get a subscription key at platform.minimaxi.com
  2. Export the three variables above
  3. Run claude — you are now on M3 with a 1M-token context window

Why M3

  • 1,000,000-token context — whole-repo sessions without chunking
  • Optimized for agent workflows and tool calling
  • Native multimodal input (images and video via chat completions)

Source: MiniMax official docs (Anthropic-compatible path is their recommended integration). AgentRunDB verification runs are queued — this page updates with real data as runs land.

Related: claude-code × minimax Compatibility