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.
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 a MiniMax model to ~/.grok/config.toml.Run grok when setup finishes.
1
Install Grok CLI
npm install -g grok-dev
2
Set env vars and launch
export GROK_BASE_URL=https://api.minimax.io/v1export GROK_API_KEY=sk-cp-... # from M Plangrok --model MiniMax-M3.1-Flash-Preview
Important: Clear OpenAI Environment Variables Before ConfigurationBefore configuring, ensure you clear the following OpenAI-related environment variables to avoid conflicts with MiniMax API:
OPENAI_API_KEY
OPENAI_BASE_URL
In TRAE, connect to MiniMax-M3.1-Flash-Preview with your M Plan Subscription Key.
1
Open Settings
At the top right of the side chat box, click Settings icon > Models
2
Select Models Tab
Switch to the Models tab.
3
Add Model
Click the + Add Model button. The Add Model pop-up appearsEnter Configuration Details:
Automatic Pi installation requires Node.js 22.19 or newer. Run:
npx -y mmx-cli@latest agent setup
Select Pi. If it is missing, keep Pi selected in the second multi-select. The wizard installs the official npm package, verifies its version, and adds a MiniMax model to Pi’s models and defaults.Then launch Pi directly: