Key settings
Prerequisites
- The current version of the tool is installed
- A BetterToken API key: register and get one
- A Model ID from the model plaza
Additional requirements
- Latest VS Code installed
- GitHub Copilot / Copilot Chat installed and signed in
- The selected Model ID comes from the supported provider
- A model ID is available, for example
YOUR_MODEL_ID
Install
Install or open GitHub Copilot, then continue with the manual setup below.Manual setup
Setup steps
1
Open model management
In the Copilot Chat input area, click the model selector, then choose Manage Models….

2
Add Custom Endpoint
In Language Models, click Add Models, then choose Custom Endpoint.

3
Enter the group name
In Group Name, enter:Then press Enter.

4
Enter the API Key
VS Code will ask for the API Key. Paste your BetterToken API Key, then press Enter.This value will not be shown directly in the configuration file. VS Code stores it as a local secret and generates a reference like this:
5
Select the API type
In Custom Endpoint: API Type, select Chat Completions.

6
Edit the JSON configuration
VS Code opens 
Check these fields:
chatLanguageModels.json. Confirm or update the configuration:
7
Save and reload VS Code
Save After reload, return to the Copilot Chat model selector and choose
chatLanguageModels.json, then run:YOUR_MODEL_ID.8
Send a test message
Send a simple message in Copilot Chat:If Copilot Chat replies normally, the BetterToken Custom Endpoint is configured successfully.
Verify the connection
Send a short test prompt. If the tool returns a response without an authentication or Model ID error, the connection works. Fully restart the tool after changing its configuration.Switch models
Open the model selector or change theModel field in the configuration. Use the exact Model ID from the model plaza, then restart the current session.
Common errors
Why should I enter the API Key in the prompt?
VS Code stores the API Key in local secret storage and references it in JSON with${input:chat.lm.secret...}. This is safer than writing the real API Key into the JSON file.
Why use Chat Completions?
The verified working configuration uses Chat Completions. The URL is:/v1/responses, and do not stop at /v1.
Does this replace GitHub Copilot inline completion?
No. This Custom Endpoint is mainly used for Copilot Chat language model calls. GitHub Copilot inline completion is still provided by GitHub Copilot itself.What should I do if I see Invalid token?
Check these items in order:- The API Key was entered in the VS Code prompt
- JSON keeps the
${input:chat.lm.secret...}reference - The selected Model ID comes from the supported provider
urlishttps://bettertoken.ai/v1/chat/completionsapiTypeischat-completions- The model ID is a model from a supported provider from the model plaza
Advanced setup
Supported providers
Statuses apply to the BetterToken setup documented on this page.
What the setup methods mean
What the setup methods mean
- Manual setup: enter the API Key, Base URL, and Model.
- Not supported: no verified direct setup is currently available.
Technical details
Protocol, endpoint, and internal provider fields
Protocol, endpoint, and internal provider fields
The GitHub Copilot URL field requires the complete address
https://bettertoken.ai/v1/chat/completions. VS Code does not append /chat/completions for this field.
