Skip to content
Tony

Deploy Deepseek Locally with Ollama and Integrate into VSCode

Run DeepSeek locally on macOS with Ollama and connect it to VSCode via the Continue extension for AI-assisted coding.

Tech , LLM 1 min read

Ollama Ollama is a tool for locally deploying and managing AI models. It allows developers to run various AI models in their local environment without relying on cloud services. Ollama provides a simple command-line interface that makes model deployment and management very easy.

DeepSeek DeepSeek is an AI-powered code completion tool that provides intelligent code suggestions based on context. DeepSeek supports multiple programming languages and can be integrated into various development environments, such as VSCode, IntelliJ IDEA, etc., through its API.

First, we need to install Ollama on macOS. Ollama can be installed via Homebrew.

Terminal window
brew install ollama

Download the DeepSeek Model

Visit Ollama’s DeepSeek library

Select the model and run the corresponding command. Here we use the default 7b version.

Deepseek

Terminal window
ollama run deepseek-r1

Once it’s running successfully, you can start chatting.

Deepseek_run

Run the following command to start the local model server:

Terminal window
ollama serve

Search for Continue in the VSCode extension marketplace, install it, and then connect to the local Deepseek model.

Deepseek_chat

Request an API key from the DeepSeek Open Platform, then add the corresponding key in VSCode.

Deepseek_add