Convika

این صفحه هنوز به فارسی نیست و به انگلیسی نمایش داده می‌شود.

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.

Publish my HTML page free

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.

RouteWhat it costsDeepSeek modelsNeeds a DeepSeek API keyAgent that edits files
VS Code chat, Custom Endpoint (Copilot's bring-your-own-key)VS Code is free; you pay DeepSeek per tokendeepseek-flash, deepseek-v4-proYesYes, for models set with toolCalling
ContinueOpen-source extension; you pay DeepSeek per tokenAny DeepSeek model ID, provider deepseekYesYes, Continue's Agent mode
ClineYour key, billed by DeepSeek per token; or ClinePass at $9.99 a monthDeepSeek's dropdown; ClinePass lists DeepSeek V4.1 Flash 1017 and V4 ProYes, or none with ClinePassYes, with your approval for each action
Roo CodeOpen-source extension; you pay DeepSeek per token"All models available through the DeepSeek API"YesYes
Ollama extension, localFree, on your own computerOpen models such as deepseek-r1 and deepseek-coder-v2NoIn 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

  1. Sign in at the DeepSeek Platform.
  2. Open API keys and click Create new API key.
  3. Copy the key at once: Cline's docs warn, "You will not be able to see it again."
  4. 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-flashdeepseek-v4-pro
Model versionDeepSeek-V4.1-Flash-1017DeepSeek-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 length1M tokens1M tokens
Maximum output384K tokens384K tokens
Tool callsYesYes
Fill-in-the-middle (autocomplete)Beta, non-thinking mode onlyBeta, non-thinking mode only
VisionYesNo

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.

  1. In VS Code, open the Extensions view (Ctrl/Cmd + Shift + X), search for Continue, and install it.
  2. Open Continue's config.yaml from the gear icon in the Continue panel.
  3. 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>
  1. 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."

  1. Install Cline from the Extensions view.
  2. Click the ⚙️ icon in the Cline panel.
  3. Choose DeepSeek from the API Provider dropdown.
  4. Paste your key into the DeepSeek API Key field.
  5. 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."

  1. In the chat's model picker, click Manage Language Models (the gear icon).
  2. Click Add Models, then Custom Endpoint.
  3. Enter a group name such as "DeepSeek", a display name, and your DeepSeek API key.
  4. Choose Chat Completions as the API type.
  5. In the chatLanguageModels.json file 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
      }
    ]
  }
]
  1. 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."

  1. Install Ollama and pull a model: ollama pull deepseek-r1:8b.
  2. Install the Ollama extension from the VS Code Marketplace (it needs VS Code 1.127 or newer).
  3. 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:

ModelDownloadContextRuns where
deepseek-r1:1.5b1.1 GB128KYour computer
deepseek-r1:8b (DeepSeek-R1-0528-Qwen3-8B)5.2 GB128KYour computer
deepseek-r1:14b9.0 GB128KYour computer
deepseek-coder-v2:16b8.9 GB160KYour computer
deepseek-r1:32b20 GB128KYour computer
deepseek-r1:70b43 GB128KYour computer
deepseek-v4.1-flash:cloudNone1MOllama's cloud, $0.30 / $1.20 per million tokens at peak
deepseek-v4-proNone1MOllama'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.

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

More ways to send your page

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⁠

Share this article

Publish the page DeepSeek built in your editor

Drop in the HTML file DeepSeek wrote in VS Code. Convika puts it at a lasting link, keeps the form entries, and shows who visited.

Publish my HTML page free

Free plan, no credit card.