Prerequisites
- OpenCode installed:
- Active Orq.ai account with AI Gateway access
- Orq.ai API key
Setup
Edit~/.config/opencode/opencode.json to add an Orq.ai provider:
<ORQ_API_KEY> with an API key.
Before launching OpenCode, clear any conflicting Anthropic environment variables:
Troubleshooting
Error: Not Found
Error: Not Found
The
baseURL in opencode.json is missing the /v1 suffix. Change it to:OpenCode ignores the orq provider and uses Anthropic directly
OpenCode ignores the orq provider and uses Anthropic directly
Conflicting environment variables override the config file. Run:
Verification
Once configured, send a prompt in OpenCode. The response appears in the editor and the trace appears in Orq.ai Traces with the model identifieranthropic/claude-sonnet-4-6 (or whichever model was selected).