Prerequisites
- OpenCode installed:
- Active Orq.ai account
- Orq.ai API key exported as
ORQ_API_KEY
Setup
Edit~/.config/opencode/config.json and add an Orq.ai provider using the @ai-sdk/openai-compatible package:
Smart Router
Point OpenCode at a Smart Router to let the AI Gateway select the best model automatically:acme@orq/company-approved-models with the router name shown in AI Gateway > Smart Router.
Skills
Orq Skills add pre-built agentic workflows to OpenCode for the full Build, Evaluate, Optimize lifecycle.Installation
Orq Skills
The full catalogue of skills and slash commands.
Slash commands (
/orq:quickstart, /orq:traces, and others) are only available in Claude Code.Troubleshooting
Model not found
Model not found
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.4-mini), and use it as the key in the models object.Verification
Send a prompt in OpenCode. The response appears in the editor and the trace appears in Traces with the model identifier and cost breakdown.
An OpenCode request routed through the AI Gateway, visible in Traces.