How to Add and Use Deepseek-r1 in Your Visual Studio Code (For Free!)
Clinton Ekekenta

Clinton Ekekenta @fastapply

About: FastApply's Blog for automation, open-source, NodeJS, AI, and Dev tutorials, with new content every week.

Joined:
Jan 6, 2025

How to Add and Use Deepseek-r1 in Your Visual Studio Code (For Free!)

Publish Date: Jan 30
166 32

The AI revolution is happening, and Deepseek-r1 is at the forefront. This powerful Large Language Model (LLM) goes head-to-head with top AI models like GPT, excelling in reasoning, coding, and problem-solving, all while running right on your own machine. No more relying on expensive, cloud-based tools. With Deepseek-r1, you get a fast, private, and cost-effective coding assistant that’s always available when you need it.
After countless hours with tools like Cursor and other paid AI helpers, I decided to give Deepseek-r1 a shot. I discovered a game-changer: a seamless, free integration with Visual Studio Code that supercharged my workflow. Ready to dive in? Let me show you how to set it up step by step.

Why Deepseek-r1?

Before we jump into the setup, let's look at why you should consider using Deepseek-r1 as a developer:

  • You can run everything locally on your computer without a cloud provider.
  • It helps you solve complex coding tasks faster and smarter.
  • It performs well in code generation and debugging.

Installing Deepseek-r1 in VS Code?

Let's proceed to install Deepseek-r1 in your Virtual Studio Code coding environment. To do that, follow the steps below:

Step 1: Install Ollama

To get started, you’ll need Ollama, a lightweight platform that lets you run LLMs locally. Ollama is the backbone of your Deepseek-r1 setup because it will enable you to manage and run Deepseek-r1 effortlessly on your computer.

To install Ollama, head over to Ollama’s official website and download the version for your OS. Then their installation instructions to get it up and running.
Downloading Ollama online

Step 2: Download Deepseek-r1

With Ollama installed, it’s time to bring Deepseek-r1 into your coding environment. Open your terminal and run below:

ollama pull deepseek-r1
Enter fullscreen mode Exit fullscreen mode

This may take some time to install, but you must exercise some patience.

The above command will download the Deepseek-r1 model to your local computer.

Installing Deepseek-r1 locally on your computer

Once the download is complete, test it with a simple query to ensure everything’s working. Run the deepseek-r1 with the command:

ollama run deepseek-r1
Enter fullscreen mode Exit fullscreen mode

And add your test prompt:

Installing Continue.dev on VS extension

If you see a response, you’re all set! Deepseek-r1 is ready to roll.

Step 3: Install the Continue.dev Extension

Now, let’s bring Deepseek-r1 into Visual Studio Code. For this, we’ll use Continue.dev, a fantastic extension that connects VS Code to LLMs like Deepseek-r1. This extension will act as a bridge between your VS Code and Ollama, allowing you to interact with Deepseek-r1 directly within your coding environment. To install Continue.dev Extension, follow the steps:

  1. Open VS Code and go to the Extensions Marketplace.
  2. Search for Continue.dev and hit install.

Installing Continue.dev on VS extension

Step 4: Configure Deepseek-r1 in Continue.dev

With Continue.dev installed, it’s time to connect it to Deepseek-r1. Follow the steps to configure it:

  • Open the Continue.dev interface by clicking its icon in the VS Code Activity Bar.
  • Look for the model selection button at the bottom-left corner of the chat window.
  • Click the button, select Ollama as the platform, and then choose Deepseek-r1 from the list of available models.

Configuring Deepseek on VS Code

That’s it! You’re now ready to harness the power of Deepseek-r1 in your coding workflow.

What Can You Do with Deepseek-r1?

Once everything is set up, the possibilities of Deepseek-r1 are endless in your coding environment:

  • It gives you intelligent, context-aware suggestions as you type.

  • You can highlight a code block and ask Deepseek-r1 to optimize or rewrite it.

  • if you are stuck on an error, Deepseek-r1 will help you troubleshoot it.

  • You can select any snippet and get a detailed breakdown of how it works.

Here’s a quick demo of how Deepseek-r1 works in your Virtual Studio Code.

The most interesting part is that you:

  • You don't need subscriptions or hidden fees, just free and powerful AI assistance.
  • Everything runs locally, so your code stays on your machine.
  • You can tailor Deepseek-r1’s behavior to fit your specific needs.

Final Thoughts

Integrating Deepseek-r1 into Visual Studio Code has been a game-changer for my productivity. It’s fast, reliable, and incredibly versatile all without me having to spend a dive. Whether you’re a seasoned developer or just starting, this setup is worth exploring.

So, what are you waiting for? Give Deepseek-r1 a try and experience the future of coding today.

Apply to 100+ LinkedIn & Indeed Jobs in Minutes using FastApply.

Happy coding! 🚀

Comments 32 total

  • Артем Гасин
    Артем ГасинJan 30, 2025

    In the config you have to manually update model version from "deepseek-7b" by default to "deepseek-r1", then it will work

  • Ali Kolahdoozan
    Ali KolahdoozanJan 31, 2025

    Continue.dev not found !

  • Vikram kumar
    Vikram kumarJan 31, 2025

    This is beneficial information thank you for sharing

  • Ayoola Damilare
    Ayoola DamilareJan 31, 2025

    Let me check it out

  • Jens Frerichs
    Jens FrerichsJan 31, 2025

    The models that really help coding need a lot of VRAM. Isn't the 7b Model (for example) too weak to compete with ChatGPT o1 when it comes to generating code?

  • Brandon
    BrandonJan 31, 2025

    Nice tutorial, but it feels like you’re just showing us how to install something that should’ve been obvious already. Guess some people need step-by-step hand-holding. 🤷‍♂️

  • gurup7
    gurup7Jan 31, 2025

    I am getting this error. When I choose DeepSeek Coder and ask for coding suggestions

    HTTP 404 Not Found from 127.0.0.1:11434/api/chat

    • gurup7
      gurup7Jan 31, 2025

      I changed to deepseek-r1 in config file. It is not providing any coding suggestions.

    • Ranjan Barman
      Ranjan BarmanFeb 1, 2025

      Same here

    • m zajbe
      m zajbeFeb 2, 2025

      you solved this problem ? i got the same problem.

    • Frank Earl
      Frank EarlFeb 18, 2025

      That looks like this is looking for a local instance of a web-server running a local DeepSeek chat.

  • Holas Rydaye
    Holas RydayeFeb 1, 2025

    how to sell your data to every person in the internet? just use deepseek

    • Best Codes
      Best CodesFeb 1, 2025

      Running a model locally doesn't require or access the internet.

    • Frank Earl
      Frank EarlFeb 18, 2025

      Depends on whether you're using a local model set or their service, now doesn't it?

      • Frank Earl
        Frank EarlFeb 18, 2025

        One of the main problems that people often have is that they don't think much about what they bother to say.

  • Best Codes
    Best CodesFeb 1, 2025

    Two things I would like to point out:

    • DeepSeek Coder is not the same as DeepSeek R1.

    NOT R1

    • ollama run deepseek-r1 pulls the 7 billion parameter model, which is very weak. The best DeepSeek R1 model has 671 billion parameters. You would run it with ollama run deepseek-r1:671b, but most devices would be far too weak to run a model of this size.

    Running DeepSeek R1 on a laptop will not compare to models like GPT-4o or Claude 3.5 Sonnet.

    • Frank Earl
      Frank EarlFeb 18, 2025

      It rather depends on the laptop...but yes. I suspect I could run the R1 on my laptop- but then...I don't have your average laptop...

      • Frank Earl
        Frank EarlFeb 18, 2025

        And, yes, we're talking the distilled version. MOST people won't handle the full-tilt beast on their HW.

  • Mo Barut
    Mo BarutFeb 1, 2025

    This is awesome thank you!

  • Yasir Karim
    Yasir KarimFeb 1, 2025

    Australian Concept Karachi, the premier IVF center in the city. We are dedicated to providing exceptional infertility care. docs.google.com/spreadsheets/d/1c6...

  • Jastria Rahmat
    Jastria RahmatFeb 1, 2025

    how to do it in network? i have container running on my pc, and i want to code in laptop.

  • Luis "shadowtampa" Gomes
    Luis "shadowtampa" GomesFeb 2, 2025

    My experience with this tutorial: Great thing it introduced me to ollama! But using deepseek made my laptop (samsung odyssey) fans go WILD. Besides being helpul, the only advantage of this is the fast response time it has against the web model

  • Ron
    RonFeb 2, 2025

    I have poked around deep seek in regard to some coding. It is far behind other AI platforms in that area. It is fast though! ha

  • Aimitsumori Noreply
    Aimitsumori NoreplyFeb 3, 2025

    Great post!

  • DANIYAL KHAN
    DANIYAL KHANFeb 3, 2025

    Deepseek-r1 is a powerful Large Language Model (LLM) that offers developers a fast, private, and cost-effective coding assistant by running directly on their local machines. This eliminates the need for expensive, cloud-based tools and ensures that your coding assistant is always available when needed.

    To integrate Deepseek-r1 into Visual Studio Code, you'll first need to install Ollama, a lightweight platform that allows you to manage and run LLMs locally. After installing Ollama, you can proceed with setting up Deepseek-r1 in your coding environment.

  • Khush
    KhushFeb 4, 2025

    is it safe to install in office system.?

  • Adam
    AdamFeb 4, 2025

    If you're looking for the best photo editing app, comparing PicsArt and Lightroom can help you decide between creative freedom and professional precision. Similarly, Photoshop Express offers a mix of user-friendly tools and powerful editing options. For those considering mobile apps, Snapseed vs. PicsArt highlights the strengths of both platforms. Meanwhile, if you need to choose between PicsArt Mod APK and Remini Mod APK, Remini focuses on image restoration, while PicsArt enhances creativity. To make the most of PicsArt’s premium features, check out this comprehensive guide and unlock its full potential.

  • Maria Rebeca
    Maria RebecaFeb 4, 2025

    Have been keen always on investing and have closely followed the developments in cryptocurrency. After selling our business two months ago, my spouse and I decided to put our savings into Bitcoin, believing it to be a lucrative opportunity. Having been retired for a year now, we felt confident that this investment would secure our financial future. Our research and understanding led us to believe that cryptocurrencies were a safe bet. We were enthusiastic about our decision and anticipated significant returns on our investment. One day, while scrolling through Instagram, we came across an advertisement that seemed very convincing. The ad featured professional-looking graphics and testimonials, which gave the impression that the investment platform was both legitimate and promising. Eager to make the most of our investment, we reached out to the contact provided in the ad. The representatives were persuasive, explaining how their platform had exceptional growth potential and how our investment could easily triple in value. Feeling assured and optimistic, my spouse and I decided to invest a substantial amount of $400,000 USD into this platform. Initially, everything seemed to be going well; we received updates and reports about our supposed gains. However, as time passed, we began to notice discrepancies and irregularities that raised concerns. Our attempts to contact the platform's support team became increasingly difficult, and the reports we received started to seem less reliable. Eventually, we came to the heartbreaking realization that we had fallen victim to a sophisticated scam. The investment platform, which had promised high returns, was nothing more than a cleverly orchestrated fraud. The feeling of being deceived was devastating, and we were left in a precarious financial situation, with the loss of our entire investment. We reached out to an old friend who suggested contacting GHOST CHAMPION RECOVERY HACKERS , a firm specializing in recovering funds lost to scams. Desperate and hopeful, we decided to give them a try. To our immense relief, GHOST CHAMPION RECOVERY HACKERS turned out to be a beacon of hope. They immediately took action, and within a matter of days, they managed to recover the full amount we had lost. Their expertise and efficient handling of our case were truly remarkable. We are incredibly grateful to GHOST CHAMPION RECOVERY HACKERS for their assistance during such a challenging time. Their professional approach and successful recovery of our funds have restored our faith in justice and recovery processes. For anyone who finds themselves in a similar situation, struggling to retrieve money lost to fraudulent schemes, we highly recommend reaching out to GHOST CHAMPION RECOVERY HACKERS . They offer specialized services to help victims like us, and you can contact them through their official website t.me/WizardGhosthacker and provided communication channels. our experience has taught us the importance of thorough vetting and caution when investing, especially in high-risk areas like cryptocurrency. Despite the initial setback, GHOST CHAMPION RECOVERY HACKERS intervention proved invaluable, and we are thankful for their support in regaining our lost funds. Email them ghostchampionwizard@gmail.com
    Telegram : t.me/WizardGhosthacker

  • alikulaOwen
    alikulaOwenFeb 4, 2025

    NIce and cool. Very soon standard of a home will be having it own model running and managing itself. lol just waiting on those damn powerful chips

Add comment