You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(provider): add Xiaomi MiMo integration (#1152)
* feat(provider): add Xiaomi MiMo integration
Add Xiaomi MiMo as an official OpenAI-compatible provider with provider-profile persistence, env-only detection, and sponsor labeling in the provider picker.
Co-Authored-By: OpenClaude (zai-org-glm-5-1) <openclaude@gitlawb.com>
* feat(provider): rebase Xiaomi MiMo as top-level provider
Promote Xiaomi MiMo from generic OpenAI-compatible shim route to a
first-class top-level provider matching the MiniMax pattern. Includes
brand/model descriptors, env-only detection, provider auto-detect,
status labels, legacy provider type, model picker, and profile env
persistence.
Co-Authored-By: OpenClaude (zai-org-glm-5-1) <openclaude@gitlawb.com>
* Fix Xiaomi MiMo provider integration
Promote Xiaomi MiMo as a first-tier OpenAI-compatible vendor and align its descriptor with the integration guide.
Use the resolving Xiaomi MiMo API host while normalizing the stale docs host alias, wire Xiaomi catalog options into /model, and ensure model selection/display uses OPENAI_MODEL for Xiaomi instead of Claude defaults.
Update provider profile/startup handling, OpenAI shim detection, docs, generated integration artifacts, and focused regression tests.
Verification: bun run integrations:check; focused bun test provider/model suites; bun run build; bun run smoke.
* Fix MiMo startup profile base URL normalization
---------
Co-authored-by: OpenClaude (zai-org-glm-5-1) <openclaude@gitlawb.com>
Co-authored-by: JATMN <the@jat.mn>
| Xiaomi MiMo |`/provider` or env vars | OpenAI-compatible API at `https://api.xiaomimimo.com/v1`; uses `MIMO_API_KEY` and defaults to `mimo-v2.5-pro`|
152
153
| Ollama |`/provider`, env vars, or `ollama launch`| Local inference with no API key |
153
154
| Atomic Chat |`/provider`, env vars, or `bun run dev:atomic-chat`| Local Model Provider; auto-detects loaded models |
154
155
| Bedrock / Vertex / Foundry | env vars | Additional provider integrations for supported environments |
@@ -170,6 +171,7 @@ OpenClaude supports multiple providers, but behavior is not identical across all
170
171
- Tool quality depends heavily on the selected model
171
172
- Smaller local models can struggle with long multi-step tool flows
172
173
- Some providers impose lower output caps than the CLI defaults, and OpenClaude adapts where possible
174
+
- Xiaomi MiMo uses `api-key` header auth on the OpenAI-compatible route and currently does not support `/usage` reporting in OpenClaude
173
175
174
176
For best results, use models with strong tool/function calling support.
`GROQ_API_KEY` matches the built-in Groq gateway preset. `OPENAI_API_KEY` also works as a fallback on the generic OpenAI-compatible path, but `GROQ_API_KEY` is the preferred variable for Groq-specific setup.
The `/provider` Xiaomi MiMo preset uses the same endpoint and stores the key as `MIMO_API_KEY`. `OPENAI_API_KEY` also works as a compatibility fallback, but `MIMO_API_KEY` keeps the profile tied to the MiMo route.
176
+
166
177
### Mistral
167
178
168
179
```bash
@@ -189,6 +200,7 @@ export OPENAI_MODEL=gpt-4o
189
200
|`OPENAI_MODEL`| OpenAI-compatible only | Model name such as `gpt-4o`, `deepseek-v4-flash`, or `llama3.3:70b`|
190
201
|`OPENAI_BASE_URL`| No | API endpoint, defaulting to `https://api.openai.com/v1`|
191
202
|`OPENAI_API_BASE`| No | Compatibility alias for `OPENAI_BASE_URL`|
203
+
|`MIMO_API_KEY`| Xiaomi MiMo route | Xiaomi MiMo API key for `https://api.xiaomimimo.com/v1`; mirrored into the OpenAI-compatible auth env when the MiMo route is active |
192
204
|`CLAUDE_CODE_USE_GEMINI`| Gemini only | Set to `1` to enable the direct Gemini provider path |
193
205
|`GEMINI_API_KEY` / `GOOGLE_API_KEY`| Gemini API-key auth | Gemini API key for direct Gemini setup |
194
206
|`GEMINI_MODEL`| Gemini only | Model name such as `gemini-3-flash-preview` or `gemini-2.5-pro`|
0 commit comments