Prerequisites
- MiMo Code installed:
- Active Orq.ai account with AI Gateway access
- Orq.ai API key
Setup
Start MiMo Code inside a project directory, then add Orq.ai as a custom provider:- Type
/loginand select other provider, then custom provider. - 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
- id:
/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):
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.