TUTORIALS · 2026.08.20 · 10 MIN

DeepSeek Harness Installation Guide From Zero to Hero: A Step-by-Step Tutorial for Building AI Agents

ON THIS PAGE30

This is a tutorial tailored specifically for computer novices. Even if you've never used a command line or written a single line of code, you can successfully install DeepSeek Harness by following this guide.

What is DeepSeek Harness?

First, let's clarify what we are about to install.

DeepSeek Harness (abbreviated as dsh) is an open-source tool launched by DeepSeek AI. Its core philosophy is "Everything is a Plugin"—you can think of it as a "building block framework." The AI model is the core, while various capabilities (reading files, executing commands, web searching, etc.) are plugins that can be freely combined.

To use an analogy:

  • The AI Model (e.g., DeepSeek-V4) is like a human brain.
  • DeepSeek Harness is like giving that brain hands, feet, eyes, and various tools, enabling it not just to "think," but also to "act."

It is currently in the Developer Preview stage, meaning features are iterating rapidly, but it is already fully functional for normal use.

What Can It Do?

  • Help you write and modify code
  • Help you read and edit files
  • Help you execute command-line operations
  • Help you search for web content
  • Automatically complete complex multi-step tasks

Why Choose It?

  • Open Source & Free: Code is completely public under the MIT License.
  • Plugin-Based Design: Install only the functionalities you need.
  • Domestic Team: DeepSeek is a top-tier domestic AI company, offering documentation and community support in Chinese.

Step 1: Install Node.js

DeepSeek Harness is written in TypeScript and requires Node.js to run. Don't worry; installing Node.js is very simple.

1.1 Download Node.js

  • Open your browser and visit the Node.js Official Website
  • You will see two download buttons; select the LTS (Long Term Support) version on the left.
  • Clicking it will automatically start the download. Wait for it to complete.

What is LTS? LTS stands for Long Term Support. This version is the most stable and suitable for general users.

1.2 Install Node.js (Windows Users)

  • Locate the downloaded file (usually in the "Downloads" folder) and double-click to run it.
  • When the installation wizard appears, click Next.
  • Check "I accept the terms in the License Agreement" and click Next.
  • Choose the installation path (keeping the default is recommended) and click Next.
  • This step is important! Ensure "Automatically install the necessary tools" is checked, then click Next.
  • Click Install to begin.
  • Wait for the installation to finish, then click Finish.

1.3 Verify Successful Installation

Now let's check if Node.js is installed correctly.

  • Press Win + R on your keyboard (the Win key is the one with the Windows logo).
  • Type cmd in the popup box and press Enter.
  • This opens a black window known as the "Command Prompt" (or terminal).
  • Type the following command and press Enter:
shnode --version
  • If you see a version number like v20.11.0, the installation was successful!

What if it says "'node' is not recognized as an internal or external command"? This indicates Node.js wasn't correctly added to the system path. Solution: 1. Close the current Command Prompt window. 2. Open a new Command Prompt window. 3. If it still doesn't work, try restarting your computer and testing again.


Step 2: Obtain a DeepSeek API Key

DeepSeek Harness requires an API Key to call DeepSeek's AI models. Think of this key as a "key" that proves you have permission to use DeepSeek's services.

2.1 Register a DeepSeek Account

  • Open your browser and visit the DeepSeek Open Platform
  • Click the "Register" button on the page.
  • Enter your phone number.
  • Click "Get Verification Code," then enter the SMS code you receive.
  • Set a password (a combination of letters and numbers is recommended for security and memorability).
  • Click "Register" to complete the process.

2.2 Create an API Key

  • Log in with your newly registered account.
  • You will enter the console dashboard after logging in.
  • Find the "API Keys" option (usually in the left sidebar or top navigation).
  • Click "Create New Key".
  • Give the key a name, such as my-dsh-key (for easier identification later).
  • Click Confirm.

2.3 Save Your API Key

This step is extremely important!

  • After creation, the page will display your API Key (a long string of letters and numbers).
  • Immediately copy this Key and save it in a secure location.
  • You cannot view this Key again once you close the page.

Tip: You can save the Key in your phone's notes app or a computer notepad, but never share it with others.

2.4 Understanding Models and Costs

DeepSeek currently offers two flagship models:

ModelFeaturesSuitable Scenarios
DeepSeek-V4-FlashFast speed, low costDaily use, learning & testing
DeepSeek-V4-ProStronger capability, smarterComplex tasks, professional development

API Endpoints

  • OpenAI Format: https://api.deepseek.com
  • Anthropic Format: https://api.deepseek.com/anthropic

Pricing Details

Billing ItemDeepSeek-V4-FlashDeepSeek-V4-Pro
Input (Cache Hit) - Off-Peak¥0.05 / million tokens¥0.15 / million tokens
Input (Cache Hit) - Peak¥0.10 / million tokens¥0.30 / million tokens
Input (Cache Miss) - Off-Peak¥1.5 / million tokens¥4.5 / million tokens
Input (Cache Miss) - Peak¥3.0 / million tokens¥9.0 / million tokens
Output - Off-Peak¥4.5 / million tokens¥13.5 / million tokens
Output - Peak¥9.0 / million tokens¥27.0 / million tokens

Money-Saving Tip: Try to use the service during off-peak hours; prices are half the cost compared to peak times. Peak hours are 9:00 AM - 12:00 PM and 2:00 PM - 6:00 PM (Beijing Time, UTC+8). All other times are off-peak.


Step 3: Install DeepSeek Harness

With everything ready, let's install the star of the show!

This is the simplest method, requiring only one command.

  • Open Command Prompt (Press Win + R, type cmd, hit Enter).
  • Enter the following command and press Enter:
shnpx @deepseek-ai/dsh web
  • The first run will automatically download necessary files, which may take a few minutes.
  • When you see output similar to the following, startup was successful:
[INFO] Server listening on http://127.0.0.1:3080
  • Your browser should open automatically. If not, manually enter http://127.0.0.1:3080 in your browser's address bar.

What is npx? npx is a tool included with Node.js that allows you to run npm packages without installing them globally. No extra installation is needed.

Method 2: Install from Source (For Advanced Users)

Choose this method if you want to inspect the source code or perform secondary development.

2.1 Install Git

Git is a version control tool used to download source code.

  • Visit the Git Official Website
  • Download the version corresponding to your system (Windows users select Windows).
  • Keep default options during installation and click Next throughout.

After installation, reopen Command Prompt and type:

shgit --version

Seeing a version number confirms successful installation.

2.2 Install pnpm

pnpm is a package manager used to install project dependencies.

In Command Prompt, type:

shnpm install -g pnpm

Wait for installation to complete, then verify:

shpnpm --version

2.3 Download Source Code and Install

Enter the following commands sequentially (press Enter after each line):

shgit clone https://github.com/deepseek-ai/deepseek-harness.git
cd deepseek-harness
pnpm install
pnpm run build

Note: pnpm install and pnpm run build may take some time. This is normal; please be patient.

2.4 Start

shpnpm dsh web

Method 3: Using Python SDK (For Developers)

If you are familiar with Python, you can also use the Python version.

3.1 Install Python

If you haven't installed Python yet:

  • Visit the Python Official Website
  • Download the latest version.
  • Make sure to check "Add Python to PATH" during installation.
  • Complete the installation.

3.2 Install SDK

shpython -m pip install deepseek-harness-sdk

3.3 Create Test Script

Use Notepad to create a file named test.py with the following content:

pythonfrom deepseek_harness import DeepSeekHarness

with DeepSeekHarness() as harness:
    result = harness.run("Say hello to the world.")
    print(result)

Then run it in Command Prompt:

shpython test.py

Step 4: Configuration and Usage

After starting up, you need to configure the API Key before usage.

4.1 Configure API Key

In the Web Interface:

  • Find the settings entry (usually in a corner or sidebar).
  • Locate the "API Key" configuration field.
  • Paste the API Key you saved earlier.
  • Save settings.

4.2 Select Operating Mode

DeepSeek Harness offers four modes:

ModeTarget AudienceFeatures
Standard ModeGeneral UsersMost comprehensive features; recommended for beginners
PTC ModeDevelopersAllows combining multi-step operations via code
Minimalist ModeTestersRetains only basic functions for testing purposes
Creative ModeDevelopersEnables creation of custom Agents

Beginners are advised to choose "Standard Mode".

Model Selection Advice: - If using DeepSeek-V4-Flash, Standard Mode is recommended for a complete experience. - If using DeepSeek-V4-Pro, Minimalist Mode is suggested. Due to potential overfitting issues in V4-Pro's post-training phase, Minimalist Mode provides only bash and file editing tools, which actually helps the model better leverage its reasoning capabilities.

4.3 Start Using

Enter your questions or tasks in the input box, such as:

  • "Help me write a Python calculator"
  • "Explain what Docker is"
  • "Help me create a simple webpage"
  • "Read this file and summarize the content"

Press Enter and wait for the AI response.


Troubleshooting Common Issues

Issue 1: Command Prompt Says "'command' is not recognized..."

Possible Cause: Software not installed correctly or not added to system environment variables.

Solution:

  • Reinstall Node.js / Python / Git.
  • Close and reopen Command Prompt after installation.
  • Restart your computer if the issue persists.

Issue 2: Port 3080 Occupied

Solution:

sh# Specify another port to start
npx @deepseek-ai/dsh web --port 3081

Then access http://127.0.0.1:3081

Issue 3: Invalid API Key

Checklist:

  • Was the API Key copied correctly (no extra spaces)?
  • Is there sufficient balance in the account?

Issue 4: Browser Did Not Open Automatically

No problem. Manually open your browser and enter:

http://127.0.0.1:3080

Advanced Learning

Once you have successfully run DeepSeek Harness, continue exploring:

Official Resources

Plugin Exploration

The power of DeepSeek Harness lies in its plugin system. You can:

  • Browse community plugins
  • Learn how to develop your own plugins
  • Combine different plugins based on specific needs

Community Participation

  • Submit issues and suggestions on GitHub Discussions
  • Join official communities (WeCom groups, Discord)
  • Follow the WeChat Official Account for latest updates

Summary

Congratulations! If you've followed this tutorial to this point, you have successfully installed and run DeepSeek Harness.

Let's recap what we did:

  • Installed the Node.js runtime environment
  • Registered a DeepSeek account and obtained an API Key
  • Installed and started DeepSeek Harness
  • Configured the API Key and began usage

Next, feel free to explore the world of AI agents and let them assist you with various tasks.

If you encounter any problems during use, please leave a comment below or ask questions on GitHub Discussions.

Have fun!

END — © 2026 EVERVERDANTS