EN ▾
Get API key

DeepSeek Coder in VS Code: Connect an OpenAI-Style API

Searching for deepseek coder vscode usually means you want a chat and edit assistant inside your editor that talks to an API you control. You can get that with Continue, Cline or Cursor by pointing them at an OpenAI-compatible endpoint, and this page lists the exact fields to fill in.

Updated

Abstract editor window connected by a cable to a glowing cube representing an API endpoint

Key points

  • Any VS Code extension with an OpenAI-compatible provider works: set the base URL, API key and model ID.
  • Base URL is https://api.deepseekcoder.top/v1 and the model ID is uncensored.
  • This is a general uncensored chat model, not DeepSeek Coder; use chat and edit features, not inline autocomplete.
  • Test the key with curl first so you can tell key problems from extension problems.

What you can and cannot connect

Let us settle the expectation first. This service does not host DeepSeek Coder. It runs one open-weight model, from an independent provider, behind an OpenAI-compatible API. Editors do not care what is behind the endpoint; they care that it speaks the same protocol as OpenAI. So any extension that accepts a custom OpenAI base URL can use it.

The API supports POST /v1/chat/completions and GET /v1/models. That covers chat panels, "edit this selection" commands and agent-style tools. It does not cover features that need other request types, such as embeddings for codebase indexing. If an extension asks you to configure an embeddings model, use a local one or skip indexing. The model is text only.

Step 0: get a key and test it

Create an account on the API key page. New users can claim $0.50 of trial credit there with one click, no card needed. Copy the key, then test it outside the editor so you know the problem is not in the extension later:

export API_KEY="paste-your-key-here"
curl https://api.deepseekcoder.top/v1/models \
  -H "Authorization: Bearer $API_KEY"

You should get a JSON list that includes uncensored. Then send one chat request:

curl https://api.deepseekcoder.top/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"uncensored","messages":[{"role":"user","content":"Write a Python function that reverses a string."}]}'

If both work, every editor setup below is only a matter of typing the same three values into a form.

Continue

Continue is an open-source VS Code extension that supports custom OpenAI-compatible providers. Open its config file from the extension's settings gear and add a model entry. In the JSON format it looks like this:

{
  "models": [
    {
      "title": "Uncensored API",
      "provider": "openai",
      "model": "uncensored",
      "apiBase": "https://api.deepseekcoder.top/v1",
      "apiKey": "YOUR_API_KEY"
    }
  ]
}

Newer Continue versions use a YAML config file; the fields are the same names (provider, model, apiBase, apiKey), so copy the values across. Check Continue's current documentation if the file layout differs on your version.

Which Continue features to use

Chat and edit work against chat completions. Tab autocomplete in most extensions uses a fill-in-the-middle style request and a small fast model; this API exposes chat completions only, so keep autocomplete on a local or other model and use this endpoint for chat and edits.

Cline and similar agent extensions

Cline lets you choose an "OpenAI Compatible" provider. In its settings, fill in three fields:

  • Base URL: https://api.deepseekcoder.top/v1
  • API key: your key
  • Model ID: uncensored

Agent extensions work by calling the model in a loop and feeding tool results back. This API supports tool calling (tools, tool_choice, results as role: "tool"), so the mechanism is there. How well a given model follows a tool-use format depends on the model and the extension's prompt, and we have no benchmark to quote. Try a small task first, such as renaming a function across two files, and watch whether it keeps to the format.

Agent loops resend history on every step, so cost grows with input size. At $0.15 per 1M input tokens, a 40,000-token context costs $0.006 per step, and 50 steps cost $0.30. Output is billed at $0.50 per 1M. The pricing page has more examples.

Cursor

Cursor has a model settings page where you can add your own OpenAI API key and override the OpenAI base URL. Put https://api.deepseekcoder.top/v1 in the base URL field, paste your key, and add a custom model named uncensored. Cursor changes its settings screens and decides which of its features accept custom keys, so check Cursor's current documentation if a toggle is missing. Expect chat and edit commands to be the most likely ones to work with a custom endpoint.

If Cursor reports that it could not verify the key, that is often a check against OpenAI's own models rather than an issue with your endpoint. Try sending a chat message anyway, then fall back to the curl test above to confirm the key.

Calling the API from your own VS Code tasks

You do not need an extension to use the model from the editor. Many people keep a small script and bind it to a task or shortcut. This one reads a file and asks for a review:

import sys
from openai import OpenAI

client = OpenAI(
    base_url="https://api.deepseekcoder.top/v1",
    api_key="YOUR_API_KEY",
)

code = open(sys.argv[1], encoding="utf-8").read()
resp = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "You are a careful code reviewer. Be specific and short."},
        {"role": "user", "content": "Review this file:\n\n" + code},
    ],
    temperature=0.2,
)
print(resp.choices[0].message.content)

Set a low temperature for code. Parameters such as top_p, stop and seed are passed through, so the usual tuning applies. The docs list the rest.

Fixing common editor errors

SymptomLikely causeFix
401 or "invalid key"Key pasted with a space, or wrong base URLRe-paste the key; confirm the URL ends in /v1 and has no extra path
404 or model not foundModel name typed differentlyUse exactly uncensored
429 with rate_limitedMore than 300 requests per minute (60 on a trial key)Slow the extension or wait
429 with concurrencyToo many parallel requests (8 on a full key, 2 on a trial key)Lower parallel tool calls
Reply stops earlyContext filled, or your extension set a low max_tokensRaise or remove the limit; the window is 100,000 tokens

A streamed request holds its concurrency slot until the stream finishes, so an editor that opens several streams at once can hit the concurrency limit sooner than the per-minute limit.

Questions and answers

Can I use DeepSeek Coder itself in VS Code through this API?

No. The API serves one open-weight uncensored chat model from an independent provider, not DeepSeek Coder. Editors can use it because it speaks the OpenAI protocol.

Which model ID do I enter in the extension?

Enter uncensored, exactly as written. The base URL is https://api.deepseekcoder.top/v1.

Does inline autocomplete work?

The API exposes chat completions, not a completion-style endpoint, so it suits chat and edit features. Keep inline autocomplete on a different model.

Does it support tool calling for agent extensions?

Yes. tools, tool_choice and streamed tool_calls are supported, with results sent back as role: tool messages.

How much does a day of coding cost?

It depends on your usage. At $0.15 per 1M input tokens and $0.50 per 1M output tokens, 200 calls averaging 8,000 tokens in and 700 out cost about $0.31.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.