Configure the latest MiniMax M-series models in any AI coding tool that supports custom OpenAI-compatible or Anthropic-compatible endpoints.
The pages above walk through the most popular AI coding tools step-by-step. For other tools that accept a custom Base URL + API Key, use the values below.
Chatbox is a free, open-source, cross-platform AI client supporting advanced LLMs, custom API keys (BYOK), and AI agents across desktop, mobile, and web.
OpenCode is an open-source terminal AI coding agent by SST, with multi-provider support and LSP integration.
Option 1: One-click setup wizard
Option 2: Manual setup
Run:
npx -y mmx-cli@latest agent setup
Select OpenCode. If it is missing, keep OpenCode selected in the second multi-select. The wizard installs the official npm package, verifies its version, and makes MiniMax M3 the default model.Run opencode when setup finishes. See One-click setup wizard for command options and backup behavior.
OpenCode has built-in MiniMax-M3 support — no config file needed.
1
Install OpenCode
curl -fsSL https://opencode.ai/install | bash# or: npm i -g opencode-ai
2
Authenticate
Run opencode auth login, then when prompted, search and pick MiniMax Token Plan (minimax.io), and enter your Token Plan API Key.
Grok CLI is an open-source terminal coding agent that connects to xAI’s Grok and OpenAI-compatible providers.
Not recommended for Agent workflows — use Claude Code or Cursor for best results.
First clear the OPENAI_API_KEY and OPENAI_BASE_URL env vars.
Option 1: One-click setup wizard
Option 2: Manual setup
Run:
npx -y mmx-cli@latest agent setup
Select Grok CLI. If it is missing, keep Grok CLI selected in the second multi-select. The wizard runs the official Grok Build installer, checks grok --version, preserves unrelated settings, and adds MiniMax M3 to ~/.grok/config.toml.Run grok when setup finishes. See One-click setup wizard for details.
1
Install Grok CLI
npm install -g @vibe-kit/grok-cli
2
Set env vars and launch
export GROK_BASE_URL=https://api.minimax.io/v1export GROK_API_KEY=sk-cp-... # from Token Plangrok --model MiniMax-M3
Droid is Factory’s official terminal coding agent that integrates with IDEs and developer collaboration tools.
You must first clear the ANTHROPIC_AUTH_TOKEN env var (otherwise it overrides the API Key in config.json). Note the config file path is ~/.factory/config.json (notsettings.json).