DeepSeekDSH
中文GitHub
Menu
Independent community guideNot affiliated with DeepSeek.Download versions and guide references

DeepSeek Harness (DSH) on Linux & VPS: Deployment, Docker & Operations Hub

Choose the right Linux setup for DeepSeek Harness (DSH): native CLI on Ubuntu/Debian, isolated Docker containers, headless scheduled tasks, SSH port forwarding, and corporate proxy fixes.

On this page
Quick takeaway

Who this is for: Developers running DSH on Linux workstations, WSL2, NAS boxes, or headless cloud VPS instances. Pick a native Node.js 24 install for direct repo access or Docker Compose for isolated execution, and always keep Web UI bound to loopback (127.0.0.1:3080) behind an SSH tunnel.

Choose your Linux deployment path

Linux is the most flexible runtime for DeepSeek Harness, but the right setup depends on whether you need direct host-tool access, container isolation, or unattended automation. Start from the route that matches your machine.

Environment / GoalRecommended PathBest ForGo To Guide
Local Ubuntu / Debian / WSL2Native Node.js 24 + @deepseek-ai/dshDirect access to local Git repos, compilers, and host CLIsLinux Install Guide →
Cloud VPS / NAS / SandboxDocker + Docker Compose with persistent DSH_HOMERepeatable builds, filesystem isolation, clean teardownDocker Deployment Guide →
Unattended Cron / Nightly RunsHeadless CLI + scheduled tasksAutomated log audits, PR checks, and recurring reportsScheduled Tasks Guide →
Corporate Network / Self-Signed CAHTTPS_PROXY + NODE_EXTRA_CA_CERTSInternal servers behind TLS inspection or outbound proxiesProxy & CA Guide →

Core Linux & VPS guides

Every guide below keeps its canonical URL and focuses on one verified operational job, from initial installation to remote browser access and headless automation.

Native Linux & WSL2 Setup

Install cleanly: Set up Node.js 24 via nvm or distro packages, verify dsh --version, and run your first read-only workspace task without root permissions.

Open Linux installation tutorial →

Docker & Compose Isolation

Persist state safely: Mount $DSH_HOME and your project folder into a non-root Node 24 container while keeping credentials out of image layers.

Open Docker deployment guide →

Headless & Scheduled Tasks

Automate safely: Run non-interactive DSH jobs on a server schedule with explicit workspace scoping and log capture.

Open scheduled tasks guide →

Step 1

Verify your Linux runtime in 60 seconds

Before debugging models or plugins on a Linux server, confirm your Node.js version, non-root execution user, and writable DSH_HOME directory.

Run this read-only environment check in your server shell to confirm Node.js and DSH CLI availability:

node -v
npx @deepseek-ai/dsh --version
echo "${DSH_HOME:-$HOME/.dsh}"
  1. 01

    Use Node.js 22+ (Node 24 LTS recommended)

    Avoid outdated distro Node packages (such as Node 18) that fail native ESM or dependency checks.

  2. 02

    Keep workspaces outside install paths

    Store repositories in a dedicated project folder and keep $DSH_HOME/.credentials.yaml restricted to your user (chmod 600).

  3. 03

    Start with a read-only test prompt

    Verify API credentials in a disposable folder before granting write or shell access on production repositories.

Step 2

Access DSH Web UI securely over SSH

On a headless Linux VPS, DSH Web UI listens on loopback port 3080 by default. Do not bind it directly to 0.0.0.0 on a public IP without authentication.

Forward remote port 3080 to your local machine over SSH so you can open http://127.0.0.1:3080 in your local browser:

ssh -N -L 3080:127.0.0.1:3080 user@your-linux-server
Never expose an unauthenticated Web UI port to the public internet

DSH can execute shell commands and modify files inside configured workspaces. Always keep port 3080 on 127.0.0.1 and reach it through SSH port forwarding or an authenticated reverse proxy.

Common Linux & VPS troubleshooting

Most Linux server failures come down to file permissions, an occupied port 3080, missing credentials in sub-shells, or outbound TLS proxies.

Port 3080 already in use (EADDRINUSE)

Fix port collisions: Check which process owns 3080 with ss -tlnp or launch DSH Web UI on an alternate loopback port.

Search EADDRINUSE fixes →

Permission errors (EACCES)

Avoid sudo npm installs: Fix npm global prefix permissions or run via nvm so DSH plugins and cache folders stay owned by your user.

Search EACCES fixes →

Proxy & custom CA certificates

Enterprise Linux hosts: Export HTTPS_PROXY and NODE_EXTRA_CA_CERTS before starting DSH so API calls succeed behind corporate firewalls.

Read Proxy & CA guide →

Frequently asked questions

Does DeepSeek Harness have a Linux Desktop app, or should I use CLI + Web UI?

On Linux workstations and servers, the primary path is the @deepseek-ai/dsh CLI plus the local Web UI (dsh web). You can use it directly in a terminal or open the Web UI in your browser over localhost or an SSH tunnel.

Should I install DSH natively on Linux or run it in Docker?

Choose a native install if DSH needs direct access to your host toolchains (Python, Go, Rust, local Docker, Git credentials). Choose Docker Compose when you want strict filesystem isolation on a shared server or NAS.

Why does DSH fail to start or lose settings when run under cron or systemd?

Non-interactive shells often lack nvm in PATH or point to a different HOME / DSH_HOME. Always use absolute paths to your Node binary and set DSH_HOME explicitly in your service or cron environment.

Sources & scope

Verified against the DeepSeek Harness repository, DSH CLI README, and Web UI guide. Checked 2026-12-05.