Orq MCP is live: Use natural language to interrogate traces, spot regressions, and experiment your way to optimal AI configurations. Available in Claude Desktop, Claude Code, Cursor, and more. Start now →
Route OpenCode model calls through the Orq.ai AI Gateway for unified observability, cost tracking, and model governance.
Route every model call OpenCode makes through the AI Gateway by editing a single configuration file. Requests appear in Traces automatically, and API key usage limits are enforced per workspace.
Model key must match the AI Gateway model ID exactly. The key in models (e.g. openai/gpt-5-mini) is sent verbatim to the AI Gateway as the model field. Using any other alias returns Model not found. Copy the exact model ID from AI Gateway > Models. The name field is display-only in OpenCode’s model picker and has no effect on routing.
The model key in config.json does not match the model ID in the AI Gateway. Open AI Gateway > Models, copy the exact model ID (e.g. openai/gpt-5-mini), and use it as the key in the models object.
401 Unauthorized
Confirm echo $ORQ_API_KEY returns the expected value. The {env:ORQ_API_KEY} placeholder reads the variable at launch time. If the variable is not set, OpenCode sends an empty key.