Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

DeepSeek Harness Installation Guide: Desktop, npm, Source, and Python SDK

DeepSeek Harness Installation Guide: Desktop, npm, Source, and Python SDK

This section introduces Four installation methods: desktop, npm, source installation, and Python SDK. Ordinary users should prefer the official desktop version; developers who want to access the local Web UI through a browser can choose npm.

How to Choose an Installation Method?

DeepSeek Harness is an AI Agent tool for file processing, programming development, and automation tasks.

The official website now provides a desktop installer; ordinary users do not need to install Node.js first or open a terminal.

Installation method Operating system Is Node.js Required Applicable scenarios
Official Desktop Version Recommended for Beginners Windows 64-bit, macOS Apple Silicon No separate installation needed Daily office work, file processing, AI programming
npm install Windows、macOS、Linux Required (24.9 or higher) Launch the local Web UI from the command line
Installing from source Supported development environments Required (24.9 or higher) Study source code, develop plugins, and debug
Python SDK Linux x64 / arm64, macOS 14+ (Apple Silicon), Windows x64 No separate installation needed (runtime included) Integrate the Agent through Python

Version notes:The official website currently marks Harness as a preview version; the specific interface and installer may change. The desktop version and npm/Web UI are different entry points of the same product; do not confuse third-party community desktop wrappers with the official installer.

Before you install


Method 1: Install the Official Desktop Version (Recommended)

For users new to DeepSeek Harness, the desktop version is the easiest: download the installer, and after installation, open it like any ordinary software.

Official page:DeepSeek Harness Official Website and Download Entry。

Direct download:macOS (Apple Silicon, DMG) | Windows (64-bit, EXE)

Download links come from the official website's current entry point, and versions may be updated; if a direct link fails, please return to the official website to download again.

Platform System Requirements Install packages Installation method
macOS Apple chip, macOS 13+ .dmg Open the DMG and drag the app into the "Applications" folder
Windows 64-bit Windows .exe Double-click the official installer and complete the installation according to the wizard
Linux The official website currently does not list a standalone desktop installation package — It is recommended to use the npm / source code method; carefully distinguish community desktop versions

macOS desktop version installation

Go to the Harness official website and select macOS (Apple chip), wait for the DMG file download to complete.

Double-click to open the DMG, drag DeepSeek Harness to the Applications folder, then launch it from Launchpad or the Applications directory.

If the system prompts that it cannot be opened, first verify the source of the installation package and the developer signature, then check the relevant prompts in System Settings → Privacy & Security. Do not directly disable the system's global security protection just to install.

Intel chip Macs are currently not within the explicitly provided desktop download range on the official website. Please do not mistakenly download the Apple chip version; the npm/Web UI method is recommended.

Windows desktop version installation

Go to the Harness official website and select Windows (64-bit), download the EXE installer.

Double-click to run the installer, complete the installation following the installation wizard, then launch DeepSeek Harness from the Start menu.

If Windows shows a security prompt, first confirm that the file comes from the download.deepseek.com official download address, and check the file signature and system prompts; do not directly choose to ignore warnings for installation packages from unknown sources.

First time opening the desktop version

After entering the application, first check the model configuration, then select a workspace dedicated to testing, and then create the first session.

Step Operation Description
Configure the model Open the model settings and configure the provider and credentials according to the interface prompts A valid model access method is required; the first-time configuration interface may differ between versions
Select a workspace Select a test project folder The Agent can operate on workspace files that access is authorized for; it is recommended to use a test directory for the first time
Create the session Enter the example task below First execute a read-only task to check whether the project can be read
请分析当前工作区的目录结构,列出主要文件及作用。

仅允许读取,不要修改、删除文件或运行安装命令。

After confirming that the model responds normally and can see the workspace files, then try tasks such as generating documents, organizing tables, or modifying code.

The desktop version supports background task execution and local file read/write capabilities, but the specific capabilities, approval behavior, and plugin support depend on the current version and the installed plugins.

Security reminder:Do not use website production directories, server keys, or folders containing private data as the workspace for the first test. File editing, command execution, and automated operations may change local data.


Method 2: npm installation and starting the Web UI

We can use the npm command to install globally:

npm install -g @deepseek-ai/dsh

Installing this way makes it convenient to use the dsh command later; after installation is complete, enter the following command to start:

dsh web

You can also use the npx command to install for a quick experience, execute in the terminal:

npx @deepseek-ai/dsh web

The command will start the Web UI, and the first run will automatically initialize web the configuration template, and then print the access address —default to http://127.0.0.1:3080。

Verify whether it succeeded:

  1. Open the address printed in the terminal in a browser (default http://127.0.0.1:3080);

  2. Seeing the DeepSeek Harness Web interface means the installation succeeded;

  3. Note: the new Web UI will not select any workspace before a workspace is added — this is normal and will be configured in the next step.

Tip:dsh will use theinvocation directoryas the default file system location. It is recommended to first cd go to your project directory, and then execute npx @deepseek-ai/dsh web, so that selecting a workspace later is most convenient.


Method 3: Install from source

Suitable for developing plugins, reading source code, or contributing; after cloning the repository, execute in order:

git clone https://github.com/deepseek-ai/deepseek-harness.git

cd deepseek-harness

pnpm install     # 安装依赖(需要 pnpm,可用 corepack enable 启用仓库固定的 pnpm 版本)

pnpm run build   # 构建包与前端产物(生产运行需要)

pnpm dsh web     # 以源码方式启动 Web UI

Other entry points when running from source:

pnpm dsh --profile headless "run the tests" — run a task once and print the final answer;

pnpm dsh --profile web --dump-config — view the complete configuration tree actually started (very useful when developing plugins).

Source development requires Node.js 24.9+, pnpm with Corepack enabled (the repository is pinned to 11.28.5), and Git 2.26+. Build artifacts embed the version number and a seven-digit source commit for easy verification.


Method 4: Python SDK installation

Prerequisites: Python 3.10+, Git, a DeepSeek-compatible API endpoint and credentials, and an isolated workspace that the agent can modify. Supports Linux x64 / arm64, macOS 14+ (Apple chip), and Windows x64. Create a virtual environment and install:

git clone https://github.com/deepseek-ai/deepseek-harness.git

cd deepseek-harness

python -m venv .venv

. .venv/bin/activate

python -m pip install deepseek-harness-sdk

After setting the credentials, you can call it in your program (the SDK comes with its own runtime,no system-provided Node.js is required):

export DEEPSEEK_API_KEY=sk-your-key-here

# If the model is not the default DeepSeek endpoint, but an OpenAI compatible proxy, you also need:

# export DEEPSEEK_BASE_URL=http://127.0.0.1:8000/v1

Use it in your own Python program:

from deepseek_harness import DeepSeekHarness — the repository's built-in python/sdk/examples/minimal.py is a lightweight wrapper for SDK calls that can be used directly as a reference; after running, it prints the assistant's final reply, and a JSONL session log containing model requests and tool calls will be received under the specified dsh home.


First-time configuration and the first task

For the Web UI started via npm or source, the first use can follow the three steps below. For the desktop version, perform similar configuration directly in the application window:

Step Operation Description
1 Configure the model Settings → Model Enter the DeepSeek API key and save. Model routingis available immediately, no server restart required; other providers and custom OpenAI-compatible endpoints are also supported
2 Select a workspace Click Select Workspace Add the project directory where dsh was started and select it.Before a workspace is selected, the session input box is unavailable
3 Run a task Enter a command in the session For example Summarize this repository and identify its main packages.— the agent will read and write workspace files, run commands, delegate to subagents, and maintain plans; operations beyond the permission policy will first ask for your approval

The first task is recommended to start with a lightweight command: "Summarize this repository and identify its main packages."

First let the agent familiarize itself with the workspace, then gradually hand over real tasks. — Official quick start guide recommendation


What is the difference between the desktop version and the Web UI?

The two target different usage styles; the core Agent capabilities may be similar, but the operation entry points and environment dependencies differ.

Comparison Item Official Desktop Version npm / Web UI
Opening method Local application window Use a browser after starting via command
Node.js No separate installation required Installation required (24.9+)
Usage threshold Suitable for ordinary users Suitable for developers and custom deployments
Background execution The official website emphasizes support for background tasks Depends on the Web service process and deployment configuration
Plugins and development Provides a plugin entry point Easier to view terminal logs and project source code

Common Command Quick Reference

Command Purpose
npx @deepseek-ai/dsh web Start the Web UI (equivalent to --profile web)
dsh --profile headless "任务描述" run a task once, print the final answer, and exit (suitable for scripts/CI)
dsh plugin --profile Manage plugins of a profile (forwarded to pnpm for execution in the profile directory)
dsh --profile web --dump-config View the complete configuration tree actually started (without starting the server)
dsh --profile web --dump-default-config View the default configuration tree (without user patch)
dsh --profile --from-default-profile <模板> Rebuild a custom profile with the included template (note: an existing profile with the same name will be deleted and then rebuilt)
pip install deepseek-harness-sdk Install the Python SDK (comes with its own runtime)

About Profile:web The difference between headless Two profiles are automatically initialized from built-in templates on first use; other included templates include acp、sdk and sdk-minimal, subject to the current version's help; custom profiles can be created via --from-default-profile from a template. dsh's startup arguments come first, and application arguments come after, for example dsh --profile web --port 8080 Medium --port belongs to the Web application. In addition dsh plugin is read only before forwarding pnpm arguments --profile, the correct way to write it is dsh plugin --profile web add <包名>, and treats --profile Place in the add will cause an error afterward.


Common problems and troubleshooting

The desktop version cannot be installed after download

Confirm the platform and system architecture: the Mac desktop package is only for Apple chip, macOS 13+; Windows uses the 64-bit version. Prefer to re-download the installer from the official Harness page, and avoid third-party reposted files.

The desktop version cannot run tasks after startup

Check whether the model is configured successfully, whether a workspace has been selected, and whether the network can access the model service. For the first test, a read-only task is recommended to avoid troubleshooting model errors and file permission issues at the same time.

Problem 1: The browser cannot open http://127.0.0.1:3080

Confirm that the dsh process in the terminal is still running and has no errors; if the port is occupied, you can use dsh --profile web --port 8080 to switch to another port (--port 0 can let the system automatically select a free port); check whether the firewall allows the local port. Note that the Web listening address only accepts specific local IPv4/IPv6 addresses, not wildcard addresses.

Problem 2: npx cannot find @deepseek-ai/dsh or the version is too old

First confirm that Node.js is installed and the version is not lower than 24.9 (node -v); the project is in the developer preview stage and iterates quickly, first use npx @deepseek-ai/dsh@latest --version to check the actual version, and then decide whether to update or switch to source installation.

Problem 3: pnpm install / build fails during source installation

Confirm that Corepack is enabled (corepack enable, the repository is pinned to pnpm 11.28.5); when the network is restricted, you can configure a mirror source for npm/pnpm; the build requires the Node.js version to meet the repository's declaration (24.9+).

Problem 4: The session input box is unavailable / the agent cannot read or write files

The most common cause isno workspace was selected— go back to Select Workspace to add and select the project directory; confirm that a valid API key has been saved in Settings → Model, and model routing takes effect without a restart.

Problem 5: The Python SDK runtime cannot find Node.js

The SDK comes with its own runtime and normally does not need system Node.js; if a missing runtime is reported, confirm that you installed the complete package of the same version as the SDK (python -m pip install deepseek-harness-sdk), and use Linux x64 / arm64, macOS 14+ (arm64), or Windows x64 according to the official prerequisites.