Setup guide - From DeepSeek and GitHub Copilot docs
Use DeepSeek in GitHub Copilot
Copilot Chat in VS Code supports bring-your-own-key models through the Custom Endpoint provider (Chat Completions, Responses or Messages API), configured in chatLanguageModels.json. You point it at DeepSeek's documented chat completions endpoint with model deepseek-flash.
Last verified 4 steps4 official sources
Steps
- Step 1.
Open the Language Models editor: choose Manage Language Models (gear icon) in the chat model picker, or run Chat: Manage Language Models from the Command Palette.
- Step 2.
Select Add Models, then Custom Endpoint. Enter a group name, a display name and your DeepSeek API key, and choose the Chat Completions API type.
- Step 3.
VS Code opens chatLanguageModels.json. Configure the model as below (Custom Endpoint schema from VS Code docs, filled with DeepSeek's endpoint and ids), then save.
JSON[ { "name": "DeepSeek", "vendor": "customendpoint", "apiKey": "${input:deepseekApiKey}", "apiType": "chat-completions", "models": [ { "id": "deepseek-flash", "name": "DeepSeek Flash", "url": "https://api.deepseek.com/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1000000, "maxOutputTokens": 384000 }, { "id": "deepseek-v4-pro", "name": "DeepSeek V4 Pro", "url": "https://api.deepseek.com/chat/completions", "toolCalling": true, "vision": false, "contextWindow": 1000000, "maxOutputTokens": 384000 } ] } ] - Step 4.
Select the model from the chat model picker. Restart VS Code if it does not show up.
Caveats
- This combines VS Code's documented Custom Endpoint provider (which replaces the deprecated OpenAI Compatible provider and github.copilot.chat.customOAIModels) with DeepSeek's documented endpoint and model ids. The token limits follow DeepSeek's documented 1M context and 384K max output. Only deepseek-flash supports vision.
- BYOK covers chat and utility tasks only. Inline suggestions (code completions), semantic search and embeddings still need GitHub Copilot.
- On Copilot Business or Enterprise, an admin must enable the Bring Your Own Language Model Key in VS Code policy.
- DeepSeek thinking mode is on by default. Requests that include tools must pass reasoning_content back, or the API returns a 400 error. VS Code's docs do not say whether Custom Endpoint chat-completions models do this. modelOptions can send {"thinking": {"type": "disabled"}} to turn thinking off (our combination, untested).
- Alternative: apiType messages against DeepSeek's Anthropic-format base URL https://api.deepseek.com/anthropic. VS Code appends /v1/messages when the URL has no explicit API path. This pairing is inferred from both docs and was not tested.
- DeepSeek's quick-start page names GitHub Copilot among supported tools but has no dedicated Copilot guide page.
More setup guides
Same tool, other providers
Related reading
- DeepSeek Super-Agent: The Always-On Router and Worker DesignDeepSeek open-sourced dsh-superagent, an always-on coding agent built on a router and worker split. What the design says, what the code ships, and the safety debate.
- DeepInfer: What DeepSeek Open-Sourced and What You Can RunDeepSeek open-sourced DeepInfer, the inference engine behind its API. It is offline-only, V4.1-Flash-only and Blackwell-or-Ascend-only. What it is, what is missing, and who benefits.
- DeepSeek Banned From US Federal Civilian Agencies: What the DHS Order CoversDHS ordered DeepSeek products removed from US civilian agency IT. The scope reaches third-party products built on DeepSeek implementations - here is what that means for builders.
- DeepSeek V4.1-Flash-1017: Benchmarks vs Opus 5, Pricing, Switch?DeepSeek V4.1-Flash-1017 jumps 11 points on Terminal-Bench 4.0 at the same deepseek-flash price. Benchmarks vs Opus 5, K3, GLM-5.3 and when to switch.
- DeepSeek 4.1 Flash as a Daily Coding Model: Cache, Peak Hours and LimitsDeepSeek 4.1 Flash as a daily coding model: what a session costs, how peak hours double the bill, why caching matters, and where the subsidy argument holds.
- Where to Run DeepSeek V4.1 Flash Free and CheapDeepSeek V4.1 Flash replaced V4 Flash. Official API: $0.15 input, $0.60 output off-peak. OpenRouter hosts start near $0.05. MIT weights are on Hugging Face.
FAQ
How do I use DeepSeek in GitHub Copilot?
Copilot Chat in VS Code supports bring-your-own-key models through the Custom Endpoint provider (Chat Completions, Responses or Messages API), configured in chatLanguageModels.json. You point it at DeepSeek's documented chat completions endpoint with model deepseek-flash.
Which DeepSeek model ids work in GitHub Copilot?
The official docs read for this guide list deepseek-flash and deepseek-v4-pro. Requests go to https://api.deepseek.com/chat/completions.
Is this an official DeepSeek and GitHub Copilot setup?
The steps draw on both DeepSeek's and GitHub Copilot's docs. It was last checked against 4 official pages on October 17, 2026.
Sources
Last verified against 4 official pages.
- code.visualstudio.comhttps://code.visualstudio.com/docs/copilot/customization/language-models
- api-docs.deepseek.comhttps://api-docs.deepseek.com/
- api-docs.deepseek.comhttps://api-docs.deepseek.com/quick_start/pricing
- api-docs.deepseek.comhttps://api-docs.deepseek.com/guides/thinking_mode
Newsletter
New models, set up the day they ship
One email per week. New model releases, the coding tools that support them and how to wire them up.