Integrate DeepSeek into Cursor in 3 Steps

DeepSeek-V3 has recently been a game changer and is regarded as the light of domestic AI models. After using it, I can only say two words: truly fragrant! The cost performance is incredibly high!

So, I immediately want to share with you how to integrate DeepSeek-V3 into the Cursor editor and save a lot of money!

1 What is Cursor?

The Cursor editor has recently been extremely popular, even recommended by OpenAI! I naturally downloaded it and experienced it right away.

Its biggest highlight is the powerful indexing function, like an experienced doctor, thoroughly understanding your project code.

Cursor introduction

When writing code, it directly provides intelligent suggestions based on context! When writing comments, relevant functions can also be auto-completed, which is incredibly considerate! Using it to write code, the efficiency skyrockets!

Previously, I wanted to create a blog website, and with Cursor, I generated one quickly, just a slight adjustment to the style and it was a complete website!

2 Why DeepSeek?

DeepSeek

Although Cursor is great, the $20 monthly subscription fee is still a bit painful!

Fortunately, we have DeepSeek! Its capabilities are comparable to GPT-4, and the key is that the price is ridiculously cheap!

DeepSeek Price

Only a little over $1 per million tokens! I calculated, and this is much more cost-effective than Cursor, making it an extreme cost performance!

3 Get the DeepSeek API Key

First, you need to register an account on the DeepSeek official website, link: https://platform.deepseek.com/usage

DeepSeek API Key creation

Then create an API Key, which is very important, so keep it safe!

4 Configure Cursor

Open the Cursor settings panel (File -> Preference -> Cursor Settings), find the Models tab, and turn off the switches for other models.

Add model to cursor

Click “Add Model” to add a custom model named “deepseek-chat“.

Then, in the “Override OpenAI Base URL” input box, enter DeepSeek’s API address:

https://api.deepseek.com

Paste the DeepSeek API Key you just copied into the API Key input box.

Finally, click the [Save] and [Verify] buttons; if there are no errors, you’re good to go.

Add model to cursor

5 Start Using

Now, you can start using DeepSeek-V3 in Cursor! Press the shortcut key Ctrl+L to open the Chat window, and tell DeepSeek what code you want to write!

Chat Cursor with DeepSeek

6 Real Case Test

I wanted to write a simple Python function to calculate the sum of two numbers, and I just entered the following prompt in the Cursor Chat window:

Write a Python function to calculate the sum of two numbers

DeepSeek V3 instantly generated the following code:

Run test case

7 Token Earning Secrets

Let me tell you a secret, if you register for DeepSeek now, you will receive a free $10 token, equivalent to 10 million tokens, enough to write a lot of code!

Free tokens

The discounted price of DeepSeek-V3 is not always available, so hurry up and take advantage of it!

Discount now

With the support of DeepSeek-V3, Cursor has significantly lowered the barrier to AI programming! Using it to write code feels like I’m cheating!

Fast speed, high quality, and cost-effective! I strongly recommend everyone to give it a try!

Here is the tutorial on Integrating Cursor with DeepSeek in three simple steps.

Leave a Comment