Overview
TRAE is an AI-native IDE by ByteDance. Its built-in Custom Config panel accepts any OpenAI-compatible or Anthropic-compatible endpoint, routing the full AI Gateway catalog through Orq.ai for unified tracing, cost tracking, and access controls without any plugin or extension.Prerequisites
- TRAE installed
- Active Orq.ai account
- Orq.ai API key
Setup
Open the Models settings
Add a provider entry
- OpenAI-compatible models
- Anthropic models
| Field | Value |
|---|---|
| API Format | OpenAI Chat Completions |
| Custom Request URL | https://api.orq.ai/v3/router |
| Full URL | OFF (TRAE auto-appends /chat/completions) |
| Model ID | openai/gpt-4o (or any non-Anthropic model with the provider/ prefix) |
| Multimodal | ON if the model supports vision |
| API Key | <ORQ_API_KEY> |
<ORQ_API_KEY> with the key from Workspace Settings → API Keys.Configure Advanced Settings (optional)
| Field | Notes |
|---|---|
| Model Series | Default works for all AI Gateway models. Other options tune hyperparameters per provider family; leave as Default unless a specific family requires it. |
| Display Name | Optional label shown in the model picker. Defaults to Model ID. |
| Context Window | Set input/output token limits explicitly if the model requires it. |
| Tool Call Rounds | Defaults to 200. Raise for long agentic loops. |
Troubleshooting
400 invalid model format
400 invalid model format
gpt-4o to openai/gpt-4o, claude-sonnet-4-6 to anthropic/claude-sonnet-4-6, 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
https://api.orq.ai/v3/anthropic instead.Requests bypassing Orq.ai
Requests bypassing Orq.ai
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