Connect your tools
VS Code · GitHub Copilot with your own key
Use Copilot's Custom Endpoint provider to route chat models through our address.
About 7 minFor:Developers who use GitHub Copilot Chat in VS Code
Before you start
- VS Code with the GitHub Copilot extension signed in and an active Copilot plan
- A key and a model name from the plaza (it must support tool calling to be usable in agent mode)
Step 1 · STEP 0x01
Open model management and add a Custom Endpoint
Provider
In the Chat view's model picker click the gear to open Manage Language Models (or run “Chat: Manage Language Models” from the Command Palette), click Add Models and pick Custom Endpoint. It is the official generic provider, supports Chat Completions, Responses and Anthropic Messages, and replaces the old “OpenAI Compatible” provider.
Step 2 · STEP 0x02
Fill in the provider and models in chatLanguageModels.json
vendor
name
apiKey
apiType
url
models[].id / name
models[].toolCalling
- Follow the template the editor gives you: at provider level set
vendor,name,apiKey,apiTypeandurl; in themodelsarray give each model anidandname, plustoolCalling,vision,maxInputTokensandmaxOutputTokensas needed. - For
urlthe docs recommend the full address including the API path,https://api.suanlimao.shop/v1/chat/completions, to avoid ambiguity; with justhttps://api.suanlimao.shop/v1VS Code appends the path for the apiType. - For Claude-family models set
apiTypetomessagesandurltohttps://api.suanlimao.shop/v1/messages. - A model only shows up for agent mode if it supports tool calling (
toolCalling: trueand the model really supports it).
Step 3 · STEP 0x03
Pick it in the model picker
Model picker
Message box
- Back in the Chat view, choose the model under your provider and send a message.
- Official tip: if the model does not appear, restart VS Code.
✓ How to tell it worked
- Chat answers with your model.
- The Usage page shows the request.
FAQ
My model is not in the picker.
Restart VS Code first. If it still only shows in Ask mode, agent mode requires tool-calling support and toolCalling: true.
Can I use this without a Copilot plan?
Per the docs, without a plan BYOK works only in the deprecated local harness, which is slated for removal. Use Cline, Continue or Claude Code instead.
Does `github.copilot.chat.customOAIModels` still work?
It is deprecated; use Custom Endpoint with chatLanguageModels.json.
Related tutorials
Still stuck?
Read the troubleshooting tutorials first. If that does not help, open a ticket with the request_id, time, model and the exact error (never paste your key).