Use GitHub Copilot in VS Code with Shannon
Add Shannon with VS Code's Custom Endpoint provider and Shannon models appear in the chat model picker, agent mode included.
- From the GitHub Copilot in VS Code docs, Nov 7, 2026
- OpenAI Chat Completions
- About 3 min
About GitHub Copilot in VS Code
GitHub Copilot in VS Code is the editor's built-in AI: suggestions as you type, a chat and agent beside your code, and inline chat for focused edits. The agent reads the workspace, edits files, runs terminal commands and uses MCP tools. With the Custom Endpoint provider, chat and agent mode run on the Shannon models you add.
What you need
- A Shannon API key
- Keys & usage
- Base URL
-
https://api.shannon-ai.com/v1Endpoint:/v1/chat/completions - Every snippet below follows your choice.
Set it up
-
Add a Custom Endpoint provider
Run Chat: Manage Language Models from the Command Palette (or the gear in the model picker). Select Add Models → Custom Endpoint, enter
Shannonas the group name, a display name and your API key, and choose the API type Chat Completions. -
Describe the model
VS Code opens
chatLanguageModels.json. Keep theapiKeyvalue it wrote and fill in the model.toolCallingmust betrue, or the model is hidden in agent mode.chatLanguageModels.json[ { "name": "Shannon", "vendor": "customendpoint", "apiKey": "${input:shannonApiKey}", "apiType": "chat-completions", "models": [ { "id": "Kimi-K3-uncensored-NVFP4", "name": "Kimi-K3-uncensored-NVFP4", "url": "https://api.shannon-ai.com/v1/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1022976, "maxOutputTokens": 262144 } ] } ] -
Pick the model in chat
Select the Shannon model in the Chat view's model picker, in Ask or Agent mode. If it does not show, restart VS Code.
Check that it works
Send: List the files in this workspace and say what each one does.
You should see: Agent mode reads the workspace with its tools and answers with the Shannon model.
Models that fit GitHub Copilot in VS Code
Every id below meets what GitHub Copilot in VS Code needs. The first one is the default in the snippets.
| Model id | Context window | Max output | Image input |
|---|---|---|---|
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
MiMo-V2.6-Pro-uncensored-NVFP4 | 1,022,976 | 131,072 | Yes |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Yes |
shannon-3 | 196,608 | 65,536 | Yes |
Model settings
GitHub Copilot in VS Code asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
contextWindow | 1022976 | Input plus output; VS Code derives the input limit from it. |
maxOutputTokens | 262144 | The longest answer. |
Good to know
- In Local harness sessions, models you add work without a GitHub sign-in and without a Copilot plan. Inline suggestions, semantic search and embeddings still need a GitHub account.
- Without a GitHub sign-in, titles, commit messages and similar utility tasks have no model. Set
chat.byokUtilityModelDefaultto Main Agent Model, orchat.utilityModelandchat.utilitySmallModelto a Shannon model. - On Copilot Business and Enterprise, the administrator can turn off the Bring Your Own Language Model Key in VS Code policy.
- For the Responses API, use
"url": "https://api.shannon-ai.com/v1/responses","apiType": "responses"and"statefulResponses": false: Shannon does not store replies. For Anthropic Messages,https://api.shannon-ai.com/v1/messageswith"apiType": "messages". - Using these models in Copilot harness sessions needs the experimental
chat.agentHost.byokModels.enabledsetting.
Tips
- Put project rules in
.github/copilot-instructions.mdorAGENTS.md;/initin a chat writes or updates them from the workspace. - Type
#to attach files or symbols,#codebaseto search the workspace for relevant code, and#fetchto read a web page. Ctrl+Alt+I(⌃⌘Ion macOS) opens the Chat view andCtrl+I(⌘I) opens inline chat in the editor;/modelsopens the model picker.- The context control in the chat input shows how much of the window a chat uses; type
/compactto summarize a long session yourself. - VS Code saves a checkpoint of the affected files before each request; hover over a request and select Restore Checkpoint to go back to that point.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| The model is missing in Agent mode | toolCalling is false or absent. | Set "toolCalling": true and save. |
| Responses API errors about missing tool calls | VS Code sends previous_response_id by default; Shannon does not keep replies. | Add "statefulResponses": false to the model. |
| No chat titles or commit messages | Not signed in to GitHub, so no utility model is available. | Set chat.byokUtilityModelDefault or chat.utilityModel to the Shannon model. |
401 Unauthorized | The key is missing, mistyped or rotated. | Copy the key again from Keys & usage; it starts with sk-. |
context_length_exceeded / "prompt is too long" | The conversation is longer than the model's window. | Start a new chat, let the tool compact it, or pick a model with a larger window. |
insufficient_quota | Your balance cannot pay for the request. | Top up or change plan; the request is not retried by itself. |
Questions
Does GitHub Copilot in VS Code work with Shannon?
Yes, through the Custom Endpoint provider with the model url https://api.shannon-ai.com/v1/chat/completions.
Do I need a Copilot plan?
No, not for chat and agent mode in Local harness sessions. Inline suggestions still need Copilot.
Is the old OpenAI Compatible provider still used?
No. Custom Endpoint replaced it, and github.copilot.chat.customOAIModels is deprecated.