Skip to main content
Route every model call MiMo Code makes through the Orq.ai AI Gateway. MiMo Code supports OpenAI-compatible providers, so pointing it at the router opens the full AI Gateway catalog. Requests appear in Traces automatically.

Prerequisites

curl -fsSL https://mimo.xiaomi.com/install | bash

Setup

Start MiMo Code inside a project directory, then add Orq.ai as a custom provider:
  1. Type /login and select other provider, then custom provider.
  2. Enter the connection details:
    • id: orq
    • base URL: https://api.orq.ai/v3/router
    • API key: your Orq.ai API key
    • model: any identifier from the AI Gateway catalog, for example anthropic/claude-sonnet-4-6
Switch models at any time with /model.
MiMo Code requests max_tokens: 32000 by default, which exceeds the output cap of some models. For example, openai/gpt-4o allows at most 16384 completion tokens and returns an error. Use a model with a larger output budget, such as anthropic/claude-sonnet-4-6 (64000), or lower MiMo Code’s maximum output tokens.

Verification

Send a prompt in MiMo Code. The response appears in the terminal and the trace appears in Orq.ai Traces with the model identifier you selected.