Prerequisites
- VS Code 1.122 or later (the Custom Endpoint provider graduated from Insiders to stable in this release) with the GitHub Copilot Chat extension installed
- Active Orq.ai account
- Orq.ai API key
- Copilot Business or Enterprise orgs: an administrator must enable Bring Your Own Language Model Key in VS Code in the Copilot policy settings on GitHub.com
Setup
Open Manage Language Models
Add a Custom Endpoint provider
- Group name: any label, e.g.
Orq.ai. - API key: the Orq.ai API key.
- API Type: Responses, Chat Completions, or Messages, matching one of the tabs below.
chatLanguageModels.json file, in the VS Code user data directory, not the project workspace, with the group already scaffolded. The API key is stored as a secret reference ("apiKey": "${input:chat.lm.secret...}"), not the raw key; leave that field as generated.Add a model to the group
chatLanguageModels.json is an array of groups. Add an entry to the scaffolded group’s models array:Responses (recommended)
Chat Completions
Messages
openai/gpt-5.4 with any identifier from the AI Gateway catalog (e.g. anthropic/claude-sonnet-4-6, google/gemini-2.0-flash-001), and adjust maxInputTokens/maxOutputTokens to match the chosen model.Select the model in Copilot Chat

Configuration Reference
chatLanguageModels.json is an array of provider groups.
Troubleshooting
400 invalid model format
400 invalid model format
id to the provider/model_id format (e.g. anthropic/claude-sonnet-4-6). Bare model IDs are rejected by the router.Custom Endpoint model does not appear in the picker
Custom Endpoint model does not appear in the picker
url points to a full endpoint path, not just a base URL. https://api.orq.ai/v3/router alone is rejected; use https://api.orq.ai/v3/router/responses or https://api.orq.ai/v3/router/chat/completions.No Traces appearing in Orq.ai
No Traces appearing in Orq.ai
url matches apiType: responses must point to https://api.orq.ai/v3/router/responses, chat-completions must point to https://api.orq.ai/v3/router/chat/completions, messages must point to https://api.orq.ai/v3/anthropic/v1/messages. Requests sent to the wrong endpoint will not appear in Orq.ai Traces.Inline suggestions still use a different model
Inline suggestions still use a different model
Command Palette opens 'Manage Language Model Access' instead of the Custom Endpoint editor
Command Palette opens 'Manage Language Model Access' instead of the Custom Endpoint editor
Custom Endpoint is missing from the Add Models list
Custom Endpoint is missing from the Add Models list
'No utility model is configured' error when sending a message
'No utility model is configured' error when sending a message
Verification
Select the configured model in the Chat model picker and send a message. The response appears in Copilot Chat and the trace appears in Orq.ai Traces with the model identifier set inid.