VS Code's built-in chat, the Copilot Chat panel with its agent mode, can run on your own model. Its Custom Endpoint option takes any OpenAI-compatible API, so you can use an uncensored, abliterated model there without signing in to GitHub. We set up VS Code 1.148.0 against CommentLLM's abliterated DeepSeek V4.1 Flash model, and agent mode fixed a real bug in 16 seconds.
The short version: in the chat panel choose Add Models, then Custom Endpoint. Name the group CommentLLM, paste your key, choose Chat Completions API, and fill the chatLanguageModels.json file VS Code opens with the model ID and the URL https://api.commentllm.com/v1.

What you need
- VS Code. We used version 1.148.0.
- A CommentLLM API key. Create one under Keys in the console after you sign up and add credit.
Prefer an extension? Cline, Kilo Code and Continue all run in VS Code on the same models.
Step 1: skip the sign-in
On the welcome dialog choose Continue without Signing In. The chat panel then offers two ways to use Copilot: sign in, or add a model with your own API key. Choose Add Models.
Step 2: add a custom endpoint
The list of providers ends with Custom Endpoint. Choose it.

VS Code asks three things in turn:
| Prompt | Answer |
|---|---|
| Group name | CommentLLM |
| API key | Your cllm_ key |
| API type | Chat Completions API |

The key goes to VS Code's secret storage. The settings file only holds a reference to it.
Step 3: fill in chatLanguageModels.json
VS Code opens chatLanguageModels.json in your user settings folder with an empty model.

Fill in the models and save. Leave the apiKey line as VS Code wrote it:
[
{
"name": "CommentLLM",
"vendor": "customendpoint",
"apiKey": "${input:chat.lm.secret.xxxxxxxx}",
"apiType": "chat-completions",
"models": [
{
"id": "deepseek-v4.1-flash-abliterated",
"name": "DeepSeek V4.1 Flash Abliterated",
"url": "https://api.commentllm.com/v1",
"toolCalling": true,
"vision": false,
"maxInputTokens": 1048576,
"maxOutputTokens": 32768
},
{
"id": "glm-5.3-abliterated",
"name": "GLM 5.3 Abliterated",
"url": "https://api.commentllm.com/v1",
"toolCalling": true,
"vision": false,
"maxInputTokens": 1048576,
"maxOutputTokens": 32768
}
]
}
]
| Setting | Why |
|---|---|
id |
The model ID sent to the API |
url |
The API's base URL, ending in /v1 |
toolCalling: true |
Agent mode needs it to read files, edit and run commands |
vision: false |
The models accept text only |
maxInputTokens and maxOutputTokens |
The template's defaults are 128,000 and 16,000. These models take 1,048,576 and 32,768 |
Step 4: pick the model
Open the model picker in the chat input. The CommentLLM group lists both models with a 1M context window.

Step 5: give agent mode a task
Our test project had a log-triage script that counted failed SSH logins by username instead of by source address, so both tests failed. In agent mode we asked:
The tests in this project fail. Find the bug, fix it, and run the tests to confirm.
VS Code asks before it runs a terminal command. Allow Once approves it, and the dropdown beside it has wider options.

The agent read both files, ran pytest, made a one-line edit and ran pytest again: 2 passed. VS Code reported "Completed 6 steps in 16s". The edit stays marked in the editor until you choose Keep or Undo.

Common problems and fixes
| What you see | Why | Fix |
|---|---|---|
| A model with no name and a 144K context in the picker | The template was saved without filling it in | Fill in id, name, url and the token limits, then save |
| The picker does not show the new models | VS Code has not reloaded the file | Run Developer: Reload Window from the Command Palette |
Which model to use
Start with deepseek-v4.1-flash-abliterated, the model that fixed the bug here. glm-5.3-abliterated is the one to try for harder reasoning. Both take text only, so image input does not work. If the agent feels slow, switch the model ID to deepseek-v4.1-flash-abliterated-fast: it is the same model served about five times faster, at the same input and output rates and a higher cached-input rate. The pricing page lists every model and its rate.
Run it in a sandbox
Abliterated models refuse far fewer requests than standard ones, and that includes commands an agent should not run on your machine. Try it first in a throwaway project, as we did, and review what the model writes before you ship it.
Setting up a different agent? Uncensored coding AI lists every agent we tested, with a guide for each.
Questions
Can VS Code Copilot Chat use uncensored or abliterated models?
Yes. VS Code's chat accepts a custom OpenAI-compatible endpoint. We ran agent mode in VS Code 1.148.0 on DeepSeek V4.1 Flash Abliterated through CommentLLM, and it fixed a failing test in 16 seconds.
Do I need a GitHub Copilot subscription to use my own model in VS Code?
Not in our test. We chose Continue without Signing In, added a custom endpoint with our own API key, and used chat and agent mode without a GitHub account.
How do I add a custom OpenAI-compatible endpoint to VS Code chat?
In the chat panel choose Add Models, then Custom Endpoint. Enter a group name and your API key, choose the Chat Completions API type, then fill in each model's id, name, url and token limits in the chatLanguageModels.json file VS Code opens.
Where does VS Code store custom chat models?
In chatLanguageModels.json in your user settings folder, which is ~/.config/Code/User on Linux. The API key is kept in VS Code's secret storage, and the file holds only a reference to it.
