Prerequisites
- TRAE installed
- Active Orq.ai account
- Orq.ai API key
Setup
1
Open the Models settings
In TRAE, click the icon in the top-right of the chat panel to open Settings, then navigate to Models.
2
Add a provider entry
Two provider formats are needed. For each, click + Add Model, expand the Custom Config section, and fill the fields for the relevant format below.
- OpenAI-compatible models
- Anthropic models
For OpenAI, Google, DeepSeek, and all other non-Anthropic models:
Replace
<ORQ_API_KEY> with the key from Workspace Settings → API Keys.3
Configure Advanced Settings (optional)
Expand Advanced Settings to tune per-model behavior:
4
Submit
Click Submit. The model appears in the TRAE model selector.
5
Select the model in a chat
Use the model selector in the bottom-right of the TRAE chat panel to pick the AI Gateway-routed provider for the current session.
Skills
Orq Skills add pre-built agentic workflows to Trae 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
400 invalid model format
400 invalid model format
The Model ID is missing the provider prefix. Change
gpt-5.6-sol to openai/gpt-5.6-sol, claude-sonnet-5 to anthropic/claude-sonnet-5, and so on. All AI Gateway model IDs require the provider/ prefix.Error 4028: temperature and top_p cannot both be specified
Error 4028: temperature and top_p cannot both be specified
A Claude model is configured under the OpenAI Chat Completions format. Create a separate provider entry using API Format: Anthropic Messages pointing at
https://my.orq.ai/v3/anthropic instead.Requests bypassing Orq.ai
Requests bypassing Orq.ai
If
OPENAI_API_KEY or OPENAI_BASE_URL are set in the environment and a legacy OpenAI provider is also configured in TRAE, requests may resolve to the wrong endpoint. Unset those variables if not in use:No Traces appearing in Orq.ai
No Traces appearing in Orq.ai
Confirm the API Key field contains a valid Orq.ai API key (not an OpenAI or Anthropic key) and that Custom Request URL points to the correct Orq endpoint for the chosen format.