How do I use DeepSeek in VS Code?
Quick answer
DeepSeek's docs list no VS Code extension of its own, so you connect its API to one: add DeepSeek as a Custom Endpoint in VS Code's chat (Copilot's bring-your-own-key, no Copilot plan needed in Local sessions), or pick DeepSeek as the provider in Continue, Cline, or Roo Code. The API models are deepseek-flash (DeepSeek-V4.1-Flash-1017) at $0.30 / $1.20 per million tokens in / out at peak and half that off-peak, and deepseek-v4-pro at $1.32 / $3.96. For free, run an open DeepSeek model such as deepseek-r1:8b (5.2 GB) through Ollama's VS Code extension. Read on DeepSeek's, Microsoft's, Continue's, Cline's, Roo Code's, and Ollama's pages on November 25, 2026.
Free plan, no credit card.
On this page
You want DeepSeek's models in VS Code, in the chat or as an agent that edits your files, and you want to pay DeepSeek's API price or nothing. DeepSeek ships no VS Code extension of its own: its docs list agent integrations for Claude Code, Codex, OpenCode, and other terminal agents, and none for an editor. So you bring a DeepSeek API key, or a local DeepSeek model, to one of five routes below.
Every model name, price, and setup step comes from DeepSeek's API docs and each extension's own docs, read on November 25, 2026, between 01:25 and 01:40 JST.
The options
Ways to run DeepSeek in VS Code, read on November 25, 2026.
| Route | What it costs | DeepSeek models | Needs a DeepSeek API key | Agent that edits files |
|---|---|---|---|---|
| VS Code chat, Custom Endpoint (Copilot's bring-your-own-key) | VS Code is free; you pay DeepSeek per token | deepseek-flash, deepseek-v4-pro | Yes | Yes, for models set with toolCalling |
| Continue | Open-source extension; you pay DeepSeek per token | Any DeepSeek model ID, provider deepseek | Yes | Yes, Continue's Agent mode |
| Cline | Your key, billed by DeepSeek per token; or ClinePass at $9.99 a month | DeepSeek's dropdown; ClinePass lists DeepSeek V4.1 Flash 1017 and V4 Pro | Yes, or none with ClinePass | Yes, with your approval for each action |
| Roo Code | Open-source extension; you pay DeepSeek per token | "All models available through the DeepSeek API" | Yes | Yes |
| Ollama extension, local | Free, on your own computer | Open models such as deepseek-r1 and deepseek-coder-v2 | No | In VS Code's chat, with a model that supports tools |
Pick Cline for a ready agent with DeepSeek in a dropdown. Pick VS Code's own chat if you already work in Copilot's chat and want DeepSeek beside its models. Pick Continue for autocomplete as well as chat. Pick Ollama to pay nothing and keep your code on your machine.
Get a DeepSeek API key and the model names
- Sign in at the DeepSeek Platform.
- Open API keys and click Create new API key.
- Copy the key at once: Cline's docs warn, "You will not be able to see it again."
- Top up your balance on the platform. DeepSeek deducts each request "from your topped-up balance or granted balance."
DeepSeek's API models and prices, read on November 25, 2026. US dollars per million tokens.
deepseek-flash | deepseek-v4-pro | |
|---|---|---|
| Model version | DeepSeek-V4.1-Flash-1017 | DeepSeek-V4-Pro-0813 |
| Input, cache miss (peak / off-peak) | $0.30 / $0.15 | $1.32 / $0.66 |
| Input, cache hit (peak / off-peak) | $0.006 / $0.003 | $0.044 / $0.022 |
| Output (peak / off-peak) | $1.20 / $0.60 | $3.96 / $1.98 |
| Context length | 1M tokens | 1M tokens |
| Maximum output | 384K tokens | 384K tokens |
| Tool calls | Yes | Yes |
| Fill-in-the-middle (autocomplete) | Beta, non-thinking mode only | Beta, non-thinking mode only |
| Vision | Yes | No |
DeepSeek's peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday through Friday; "Off-peak rates are half of the peak rates," and weekends are off-peak all day. The OpenAI-format endpoint is https://api.deepseek.com, and the Anthropic-format one is https://api.deepseek.com/anthropic. The old name deepseek-v4-flash still works and is served by V4.1 Flash. There is no separate coder model in the API: "DeepSeek Coder" in VS Code today means deepseek-flash or deepseek-v4-pro, or the older open deepseek-coder-v2 through Ollama.
On its October 17 update, DeepSeek reports DeepSeek-V4.1-Flash-1017 at 77.0 on DeepSWE v1.1 and 42.3 on Terminal-Bench 4.0, the second "tested with the Claude Code framework." How that compares with Qwen and Kimi: DeepSeek vs Qwen vs Kimi for coding.
Set it up in Continue
Continue is an "Open source AI code assistant for VS Code and JetBrains" with Agent, Chat, Edit, and Autocomplete modes. DeepSeek is one of its model providers.
- In VS Code, open the Extensions view (
Ctrl/Cmd + Shift + X), search for Continue, and install it. - Open Continue's
config.yamlfrom the gear icon in the Continue panel. - Add DeepSeek under
models, with your key and the model ID:
name: My Config
version: 0.0.1
schema: v1
models:
- name: DeepSeek V4.1 Flash
provider: deepseek
model: deepseek-flash
apiKey: <YOUR_DEEPSEEK_API_KEY>
- Pick DeepSeek V4.1 Flash in Continue's model menu and start in Chat or Agent mode.
For harder tasks, add a second entry with model: deepseek-v4-pro. Continue's DeepSeek page shows the same fields with <MODEL_ID> in place of the name, so the ID is the one from DeepSeek's table above.
Set it up in Cline or Roo Code
Cline is an agent that "can read and write files, run terminal commands, use a browser," and "Every action requires your explicit approval."
- Install Cline from the Extensions view.
- Click the ⚙️ icon in the Cline panel.
- Choose DeepSeek from the API Provider dropdown.
- Paste your key into the DeepSeek API Key field.
- Choose the model from the Model dropdown.
No key? Cline's ClinePass is "a flat $9.99/month subscription" with "2-5x the API rate limits" on open coding models, and its model list includes DeepSeek V4.1 Flash 1017 (cline-pass/deepseek-v4.1-flash-1017) and DeepSeek V4 Pro.
Roo Code uses the same four steps: the gear icon, DeepSeek as the API Provider, your key in DeepSeek API Key, then the model. Its DeepSeek page, last updated May 15, 2026, names deepseek-chat and deepseek-reasoner and says, "Roo Code supports all models available through the DeepSeek API."
In Copilot's model picker
GitHub's list of Copilot models, read today, names no DeepSeek model, so DeepSeek doesn't come with a Copilot plan. You add it yourself. VS Code's docs: "Bring Your Own Key (BYOK) lets you connect to any compatible model provider while still using the VS Code chat experience and tools."
- In the chat's model picker, click Manage Language Models (the gear icon).
- Click Add Models, then Custom Endpoint.
- Enter a group name such as "DeepSeek", a display name, and your DeepSeek API key.
- Choose Chat Completions as the API type.
- In the
chatLanguageModels.jsonfile that opens, set the model:
[
{
"name": "DeepSeek",
"vendor": "customendpoint",
"apiKey": "${input:deepseekApiKey}",
"apiType": "chat-completions",
"models": [
{
"id": "deepseek-flash",
"name": "DeepSeek V4.1 Flash",
"url": "https://api.deepseek.com/chat/completions",
"toolCalling": true,
"vision": true,
"contextWindow": 1000000,
"maxOutputTokens": 64000
}
]
}
]
- Pick DeepSeek V4.1 Flash in the chat's model picker.
Set toolCalling to true: VS Code's docs say a model that doesn't support tool calling "won't be shown in the model picker" for agents. maxOutputTokens is yours to choose, up to DeepSeek's 384K.
What BYOK covers, in VS Code's words: "In Local harness sessions, BYOK models work without signing into a GitHub account and without a Copilot plan." It "applies to the chat experience and utility tasks only": inline suggestions, semantic search, and embeddings still come from GitHub Copilot. On Copilot Business or Enterprise, an administrator can turn BYOK off.
Run it locally with Ollama
Ollama runs open models on your own computer, and its VS Code extension puts them in VS Code's chat. VS Code's docs now point to the extension: "The built-in Ollama provider is deprecated."
- Install Ollama and pull a model:
ollama pull deepseek-r1:8b. - Install the Ollama extension from the VS Code Marketplace (it needs VS Code 1.127 or newer).
- Open the chat, open the model picker, and choose the model under Ollama.
"Local models do not require sign-in." Ollama's docs also say to set the context length "to at least 64k" in Ollama Settings for coding in VS Code.
DeepSeek models in Ollama's library, read on November 25, 2026:
| Model | Download | Context | Runs where |
|---|---|---|---|
deepseek-r1:1.5b | 1.1 GB | 128K | Your computer |
deepseek-r1:8b (DeepSeek-R1-0528-Qwen3-8B) | 5.2 GB | 128K | Your computer |
deepseek-r1:14b | 9.0 GB | 128K | Your computer |
deepseek-coder-v2:16b | 8.9 GB | 160K | Your computer |
deepseek-r1:32b | 20 GB | 128K | Your computer |
deepseek-r1:70b | 43 GB | 128K | Your computer |
deepseek-v4.1-flash:cloud | None | 1M | Ollama's cloud, $0.30 / $1.20 per million tokens at peak |
deepseek-v4-pro | None | 1M | Ollama's cloud, $1.32 / $3.96 per million tokens at peak |
What a laptop runs, from Cline's local-models guide: 16 to 32 GB of RAM fits "Small/quantized models", 32 to 64 GB "Mid-size coding models", and 64 GB and up "Larger models and bigger context windows." On a 16 GB laptop, start with deepseek-r1:8b. DeepSeek's current V4.1 Flash and V4 Pro are listed in Ollama's library as cloud models, which need an Ollama account and bill per token.
Run it with Claude Code in VS Code's terminal
DeepSeek's own docs give a setup for Claude Code through its Anthropic-format endpoint. In VS Code's terminal (Ctrl + `), set these before you run claude:
export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
export ANTHROPIC_AUTH_TOKEN=<your DeepSeek API Key>
export ANTHROPIC_MODEL=deepseek-flash[1m]
export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-flash
DeepSeek's page lists more variables for the Opus, Sonnet, and subagent models, each set to deepseek-flash.
Is it free?
Running DeepSeek on your own computer is free: Ollama's plan for local models is $0 with "No subscription", its VS Code extension connects them to the chat, and a local model costs no tokens. Continue and Roo Code are open source. DeepSeek's API is paid per token, with no free tier on its pricing page. Cline's free-model promotions rotate "on a rotating, limited-time basis" and don't name DeepSeek.
What the API costs in practice, from DeepSeek's prices: a coding session that sends 2 million input tokens with no cache hits and gets 200,000 tokens back costs $0.84 on deepseek-flash at peak and $0.42 off-peak. The same session on deepseek-v4-pro costs $3.43 at peak.
If your project is a static page, you can publish it straight from VS Code.
Frequently asked questions
Is there an official DeepSeek extension for VS Code?
No. DeepSeek's API docs list agent integrations for DeepSeek Harness, Claude Code, Codex, OpenCode, OpenClaw, Hermes, Reasonix, WorkBuddy/CodeBuddy, and Qoder, and no VS Code extension. In VS Code, use DeepSeek's API key in Continue, Cline, or Roo Code, or add it to VS Code's chat as a Custom Endpoint.
Can I use DeepSeek in GitHub Copilot?
Yes, through bring-your-own-key. GitHub's Copilot model list names no DeepSeek model, so add DeepSeek in VS Code's Manage Language Models as a Custom Endpoint with the Chat Completions API, the URL https://api.deepseek.com/chat/completions, and the model deepseek-flash. In Local harness sessions it works without a Copilot plan; inline suggestions still come from Copilot.
Is DeepSeek free in VS Code?
Local DeepSeek models are free: install Ollama, run ollama pull deepseek-r1:8b, and pick it in VS Code's chat through the Ollama extension. DeepSeek's API is paid per token: deepseek-flash costs $0.30 per million input tokens and $1.20 per million output tokens at peak, half that off-peak.
What is the best DeepSeek model for coding in VS Code?
deepseek-flash, which DeepSeek serves as DeepSeek-V4.1-Flash-1017. DeepSeek reports it at 77.0 on DeepSWE v1.1 and 42.3 on Terminal-Bench 4.0, and it costs $0.30 / $1.20 per million tokens at peak. deepseek-v4-pro (DeepSeek-V4-Pro-0813) costs $1.32 / $3.96. Both take 1M tokens of context.
How do I use DeepSeek with Continue?
Install Continue, open its config.yaml, and add a model with provider: deepseek, model: deepseek-flash, and apiKey set to your DeepSeek API key. Then pick it in Continue's model menu and use Chat or Agent mode.
Sources
Each page was read on November 25, 2026, between 01:25 and 01:40 Japan time.
- DeepSeek: Your First API Call, Models & Pricing, Change Log (October 17, 2026), Integrate with Claude Code
- VS Code and GitHub: Choose and configure models, Set up GitHub Copilot, Supported AI models in GitHub Copilot, Plans for GitHub Copilot
- Continue: What is Continue?, DeepSeek
- Cline: Cline Overview, Installing Cline, DeepSeek, ClinePass, Cline Free Models, Local models
- Roo Code: Using DeepSeek With Roo Code (last updated May 15, 2026)
- Ollama: VS Code, Cloud, Pricing, deepseek-r1, deepseek-coder-v2, deepseek-v4.1-flash, DeepSeek models
Next step
How to password protect an HTML page or website
A JavaScript password sits in the page source. Free: StatiCrypt or .htaccess. Paid: Netlify Pro $20, Vercel $20 a project, Tiiny Host $18, or Convika Pro.
Related articles
- DeepSeek vs Qwen vs Kimi for coding (November 2026): latest models, benchmarks, API prices, and where to run themDeepSeek V4.1 Flash, Qwen4-Max, and Kimi K3.1 Pro for coding: each lab's own benchmarks, API and OpenRouter prices, Claude Code, Cursor, Cline, and Ollama.
- Cursor vs VS Code: what's different, and which to use (2026)Cursor and VS Code compared from Cursor's, Microsoft's, and GitHub's own pages: price, free plans, AI models, agents, extensions, settings import, and privacy, read November 23, 2026.
- DeepSeek vs OpenAI (November 2026): models, API pricing, benchmarks, open weights, and where your data goesDeepSeek V4.1 Flash and V4 Pro against GPT-6.2 Astra, Sol, and GPT-6 Luna: API price per million tokens, context, licence, benchmarks, and data location, read November 18, 2026.
- Chinese AI models in November 2026: the latest from DeepSeek, Qwen, Kimi, GLM, and MiniMaxEvery major Chinese AI model, from DeepSeek-V4.1 and Qwen4-Max to Kimi K3.1 Pro, GLM-5.3, and MiniMax M3.1: open weights, license, API price, and where to use them.
- The best AI models right now (November 2026): GPT-6, Claude, Gemini, and Grok comparedGPT-6 Astra, Claude Fable 5.2 and Opus 5.5, Gemini 4 Carbon, and Grok 4.7 compared: release dates, context, API prices, plans, and each lab's own benchmarks.
- How to share an HTML file from VS Code as a link, with its CSS and JavaScriptLive Server's link opens only on your computer. To share an HTML file or a VS Code project as a link, put its CSS and JavaScript in one file and upload it.
Skipbox
Cheap & fast GitHub Actions runners, unlimited for $39 a month
Your own machine keeps Docker layers and package caches between jobs. Switch by changing one runs-on line.
Start a free Skipbox trial