DeepSeek in Visual Studio Code via an OpenAI Endpoint
VS Code talks to any OpenAI-compatible endpoint through an extension. Here are the exact field values for Continue and Cline, a curl test, and fixes for the usual errors.
Key points
- Use the extension's OpenAI-compatible provider with base URL https://api.uncensoreddeepseek.cc/v1 and model ID uncensored.
- Test the key with curl first, so you know whether a problem is the key or the extension.
- Chat and edit requests are cheap; tab autocomplete sends many requests and needs rate-limit care.
- This is not the official DeepSeek API; the model is an independent open-weight model.

Before you start
Running deepseek in visual studio code comes down to one idea: VS Code does not talk to a model by itself, an extension does. Extensions such as Continue and Cline let you choose an OpenAI-compatible provider and type your own base URL, key and model name. That is all this service needs. One clarification first: the endpoint here is not the official DeepSeek API. It serves a single open-weight model, run by an independent provider, under the model ID uncensored, tuned to answer without content refusals for lawful adult use.
You need three things:
- An API key. Sign up with Google or with email and password, then open the API key page. New accounts can claim $0.50 of trial credit with one click there, valid for 7 days, no card needed.
- The base URL:
https://api.uncensoreddeepseek.cc/v1 - The model ID:
uncensored
Keep the key out of your repository. Put it in the extension's settings or in an environment variable, never in a file you commit.
Step 1: test the key with curl
Before touching VS Code, confirm the key works from a terminal. If curl succeeds and the extension fails, you know the problem is in the extension's settings.
curl https://api.uncensoreddeepseek.cc/v1/models \
-H "Authorization: Bearer YOUR_KEY"
curl https://api.uncensoreddeepseek.cc/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "uncensored", "messages": [{"role": "user", "content": "Write a Python function that reverses a string."}]}'
The first call lists the available model, and the second asks for a short reply. A 401 means the key is wrong or pasted with a stray space. A 429 on the very first call means the key has used its quota of requests or is hitting a temporary overload; wait a few seconds and retry.
Step 2: set up Continue
Continue is a VS Code extension for chat, inline edits and autocomplete. Install it from the Extensions view, then open its configuration file from the extension's settings. Newer releases use a YAML file and older ones a JSON file, and the field names are the same in both. The JSON form looks like this:
{
"models": [
{
"title": "Uncensored LLM",
"provider": "openai",
"model": "uncensored",
"apiBase": "https://api.uncensoreddeepseek.cc/v1",
"apiKey": "YOUR_KEY"
}
]
}
Save the file, open the Continue panel, pick "Uncensored LLM" in the model dropdown and send a message. If the config format in your version differs from this, check Continue's current documentation for the OpenAI provider; the three values that matter do not change: apiBase, the key and the model name.
Continue can also use a separate model for tab autocomplete. Read the section on autocomplete below before you point that at this endpoint.
Step 3: set up Cline
Cline is an agent-style extension that can read files, run commands and edit code with your approval. In its settings, choose the provider named "OpenAI Compatible" and fill in:
| Field | Value |
|---|---|
| Base URL | https://api.uncensoreddeepseek.cc/v1 |
| API key | your key from the key page |
| Model ID | uncensored |
Do not append /chat/completions to the base URL. The extension adds the path itself, and a doubled path is the most common cause of a 404. The base URL ends at /v1.
Agent extensions send long prompts: file contents, instructions and conversation history together. The context window is 100,000 tokens, prompt plus completion, so an agent that keeps attaching files will eventually hit it. Start a new task when a conversation gets long instead of letting it grow. For the background on how the window is counted, see the docs.
Using it for code without the usual refusals
The reason to point an editor at an uncensored model is not shock value. It is that general-purpose assistants sometimes refuse harmless but unusual requests: a script that tests your own login form, a log parser for a security-incident review, a fiction tool that generates dark story text, a reverse-engineering exercise on your own binary. A model tuned to answer without content refusals will usually just write the code, and you remain responsible for using it lawfully.
A hard limit applies: the service does not permit sexual content involving minors, and no setting changes that.
Small, specific requests work best in an editor. Select the function you want changed, say what the result should do, and name the constraints: the language version, the style rules, the tests that must still pass. Attach only the files that matter. A prompt with three relevant files beats one with thirty, because every extra file costs tokens and gives the model more ways to wander. If the extension supports a rules or instructions file, put your conventions there once instead of repeating them in every message.
Expect the usual limits of any code model too. It can invent function names, call library APIs that do not exist, and write code that looks right and fails on an edge case. Run tests, read diffs before accepting them, and never let an agent execute commands you have not read. Being uncensored does not make the model more correct, only more willing.
Autocomplete, rate limits and concurrency
Chat and edit features send one request per action, so limits rarely matter. Tab autocomplete is different: it can send a request every time you pause typing. A full key allows 300 requests per minute and 8 at once; a trial key allows 60 per minute and 2 at once. Over a limit, the API returns HTTP 429 with the error code rate_limited for the per-minute cap and concurrency for too many simultaneous requests. A 429 with a Retry-After: 5 header means temporary overload.
My suggestion: use this endpoint for chat, edits and agent tasks, and decide for yourself whether autocomplete over a network call is fast enough for your taste. I do not publish latency numbers, so measure it on your connection. If autocomplete feels sluggish or you see 429s on a trial key, switch autocomplete off or point it at a smaller local model and keep this endpoint for the heavier work.
Each response includes X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency and X-Balance-USD headers. Some extensions expose raw response logs in their output panel, which helps when you want to check your remaining balance without leaving the editor.
What a day of coding costs
Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, billed from prepaid credit. Suppose a busy day has 200 chat and edit requests, each carrying about 6,000 input tokens of code and context, with replies of about 500 tokens.
- Input: 200 x 6,000 = 1,200,000 tokens, which is 1.2 x $0.15 = $0.18
- Output: 200 x 500 = 100,000 tokens, which is 0.1 x $0.50 = $0.05
- Total: $0.23 per day
Over 22 working days that is $5.06. Failed or refused requests are not charged, credit never expires, and there is no subscription. Top-ups start at $20 and go up to $500 in any whole amount, with +5% from $50, +10% from $100 and +15% from $200. You can pay by crypto (USDT on TRC20, USDC on Base). See the pricing page for details.
Your code is sent to the API with each request, so do not paste secrets into prompts. The service states that prompts are not used for training.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| 401 Unauthorized | Wrong or truncated key | Copy the key again and test with curl. |
| 404 Not Found | Base URL includes the endpoint path, or lacks /v1 | Use exactly https://api.uncensoreddeepseek.cc/v1. |
| Model not found | Typo in the model name | Use uncensored, lowercase, no suffix. |
429 with concurrency | Too many simultaneous requests | Lower the extension's parallelism, or close unfinished streams. |
429 with rate_limited | Over 300 per minute (60 on trial) | Turn off autocomplete or slow the agent. |
| Reply cuts off | Extension sets a small max_tokens | Raise or clear it in the extension settings. |
If you still cannot get a reply, the output panel of the extension usually shows the raw error. Keep the X-Request-Id value from the failing response when you contact support.
More guides
- Does DeepSeek Support Tool Calling? What Works Here
- DeepSeek V3.2 Context Window vs a 100k Window Here
- DeepSeek API Pricing: Compare Uncensored vs Standard Options
FAQ: Pricing and Billing
How is token usage calculated?
Tokens are counted based on the input prompt and the generated output. The API uses a tokenizer to split text into tokens. You can estimate token counts using standard tokenizers or by checking the response headers. Input tokens are charged at $0.15 per million, and output tokens at $0.50 per million.
Do I get charged for errors?
No. If a request fails due to a server error or a timeout, you are not charged for those tokens. You only pay for successful completions or partial completions that were generated.
Can I use a credit card?
We accept crypto (USDT on TRC20, USDC on Base) payments for top-ups. You can also start with a free trial credit without a card. Once you need more credit, you can top up via crypto.
What happens to my unused credit?
Your prepaid credit never expires. You can top up at any time, and the bonus credits are applied instantly. There are no monthly fees or subscription renewals, so your balance remains available until you use it.
Optimizing Your API Usage
To minimize costs, optimize your prompts. Use concise instructions and avoid redundant information. Since input tokens are cheaper, you can afford longer prompts, but be mindful of the context window. Our API supports 100,000 tokens, which is ample for most use cases.
Use streaming to reduce latency. Streaming allows you to receive tokens as they are generated, improving the user experience. Our API supports Server-Sent Events (SSE) for streaming. You can also use JSON mode to get structured output, which reduces the need for post-processing.
Monitor your usage regularly. The API provides token counts in the response headers. Use these metrics to track your spending and adjust your prompts accordingly. By combining optimization with our crypto bonuses, you can achieve significant savings.
Getting Started with the API
Getting started is simple. Sign up for an account using Google or email. You will receive a $0.50 trial credit valid for 7 days. This allows you to test the API without any financial commitment. Claim this credit with one click on your API key page.
To use the API, install the OpenAI SDK or any compatible client. Set the base URL to https://api.uncensoreddeepseek.cc/v1 and provide your API key. You can then make requests just like you would with OpenAI.
For example, you can send a chat completion request with a simple prompt. The API will return the generated text, along with token usage statistics. You can then integrate this into your application. If you need more credit, top up via crypto to receive bonus credits.
Questions and answers
Does VS Code support this without an extension?
Use an extension that accepts a custom OpenAI-compatible endpoint, such as Continue or Cline. Built-in options vary by VS Code version, so check the current settings.
Which model ID do I enter?
Enter uncensored in lowercase. The base URL is https://api.uncensoreddeepseek.cc/v1 and the key goes in as a Bearer token.
Is this the official DeepSeek model?
No. It is an independent OpenAI-compatible service running one open-weight model. It is not run by DeepSeek or any other model vendor.
Can I try it without paying?
Yes. After sign-up you can claim $0.50 of trial credit with one click on the API key page. It lasts 7 days and needs no card.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.