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

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://my.orq.ai/v3/router
    • API key: your Orq.ai API key
    • model: any identifier from the AI Gateway catalog, for example anthropic/claude-sonnet-5
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-5.6-sol allows at most 16384 completion tokens and returns an error. Use a model with a larger output budget, such as anthropic/claude-sonnet-5 (64000), or lower MiMo Code’s maximum output tokens.

Connect via MCP

MiMo Code is a fork of OpenCode and keeps its MCP support, so it can reach the Orq MCP server and the MCP Gateway alongside the gateway routing above. The Orq MCP server manages Agents, experiments, Datasets, and Traces; the MCP Gateway serves the tools, resources and prompts of the MCP Servers linked to it. Add both to the MiMo Code config (~/.config/mimocode/mimocode.json, or .mimocode/mimocode.json for a single project):
Replace YOUR_ORQ_API_KEY with an API key. The gateway entry carries no header, so MiMo Code starts the browser sign-in on first use and mimo mcp auth <gateway-key> re-authenticates; adding an Authorization header to that entry authenticates with an API key instead, and no sign-in starts while the header is sent. See the MCP Quickstart for the full tool reference.
An Orq.ai API key covers one project or, when created without a project, every project in the workspace, and the Orq MCP server exposes the Agents, experiments, Datasets, and Traces within the key’s scope. Use a key scoped to the project whose entities MiMo Code should manage.

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.