MiMo Code Integration
Use GPT-5.5, Claude, Gemini, or any model with MiMo Code. Custom provider configuration, full cost tracking.
MiMo Code is an AI-powered coding agent command-line tool developed by Xiaomi. It can understand your code repository, plan changes, safely execute shell commands, edit files, and autonomously manage complex software development tasks in your terminal.
By configuring MiMo Code to route through LLM Gateway, you can point it at any model—GPT-5.5, Gemini, Llama, Claude, or 210+ others—while keeping the same API format MiMo Code expects, with full cost tracking in your dashboard.
Prerequisites
- An LLM Gateway API key — sign up free (no credit card required)
Setup
Step 1: Install MiMo Code
If you haven't already, install MiMo Code by running the official installation command in your terminal:
1curl -fsSL https://mimo.xiaomi.com/install | bash1curl -fsSL https://mimo.xiaomi.com/install | bashConfirm the installation by checking the help command:
1mimo --help1mimo --helpStep 2: Configure mimocode.json
Create or edit your MiMo Code configuration file at ~/.config/mimocode/mimocode.json (on Linux/macOS) or ~/.mimocode/mimocode.json.
Specify the default models you want to use and route the anthropic provider to your LLM Gateway endpoint. Here is an example configuration that sets up Claude Opus 4.8, GPT-5.5, DeepSeek V4 Pro, MiniMax M3, and Qwen3.7 Max:
1{2 "model": "anthropic/claude-opus-4-8",3 "small_model": "anthropic/claude-3-5-haiku-latest",4 "provider": {5 "anthropic": {6 "options": {7 "apiKey": "llmgtwy_your_api_key_here",8 "baseURL": "https://api.llmgateway.io/v1"9 },10 "models": {11 "gpt-5.5": {12 "name": "gpt-5.5"13 },14 "claude-opus-4-8": {15 "name": "claude-opus-4-8"16 },17 "deepseek-v4-pro": {18 "name": "deepseek-v4-pro"19 },20 "minimax-m3": {21 "name": "minimax-m3"22 },23 "qwen3.7-max": {24 "name": "qwen3.7-max"25 }26 }27 }28 }29}1{2 "model": "anthropic/claude-opus-4-8",3 "small_model": "anthropic/claude-3-5-haiku-latest",4 "provider": {5 "anthropic": {6 "options": {7 "apiKey": "llmgtwy_your_api_key_here",8 "baseURL": "https://api.llmgateway.io/v1"9 },10 "models": {11 "gpt-5.5": {12 "name": "gpt-5.5"13 },14 "claude-opus-4-8": {15 "name": "claude-opus-4-8"16 },17 "deepseek-v4-pro": {18 "name": "deepseek-v4-pro"19 },20 "minimax-m3": {21 "name": "minimax-m3"22 },23 "qwen3.7-max": {24 "name": "qwen3.7-max"25 }26 }27 }28 }29}
Replace llmgtwy_your_api_key_here with your actual LLM Gateway API key from the dashboard.
Step 3: Run MiMo Code
Navigate to your project folder and launch the TUI or run a prompt directly:
1mimo1mimoOr run it with a message:
1mimo run "Your coding prompt here"1mimo run "Your coding prompt here"All requests will now be routed through LLM Gateway, allowing you to use advanced models for local autonomous coding while showing real-time usage and cost statistics on your LLM Gateway dashboard.

Configuration Details
The Provider Options
To point MiMo Code to LLM Gateway, you define the baseURL and apiKey inside the options of the anthropic provider block.
1"provider": {2 "anthropic": {3 "options": {4 "apiKey": "llmgtwy_your_api_key_here",5 "baseURL": "https://api.llmgateway.io/v1"6 }7 }8}1"provider": {2 "anthropic": {3 "options": {4 "apiKey": "llmgtwy_your_api_key_here",5 "baseURL": "https://api.llmgateway.io/v1"6 }7 }8}Defining Custom Models
Because MiMo Code CLI restricts requests to built-in models by default, any custom model you wish to target (such as gpt-5.5 or deepseek-v4-pro) must be registered in the models dictionary within the anthropic provider config:
1"models": {2 "gpt-5.5": {3 "name": "gpt-5.5"4 }5}1"models": {2 "gpt-5.5": {3 "name": "gpt-5.5"4 }5}Once registered, you can set them as your default model or small model using the anthropic/ prefix (e.g. "model": "anthropic/gpt-5.5").
Why Use LLM Gateway with MiMo Code?
- 210+ models — Access GPT-5.5, Gemini, Llama, DeepSeek, and more in a single CLI configuration.
- Unified cost tracking — Get a detailed breakdown of costs per prompt and session in your dashboard.
- Response caching — Automatically cache repeated requests (such as parsing or building commands) to save API costs.
- Automatic fallback — Keep coding even if a provider encounters temporary downtime.
- Volume discounts — Access selected models with up to 90% savings compared to standard pricing.