运行依赖 Node.js(建议 v22.19 及以上)与 pnpm。最简单的启动方式是一条命令:
npx @deepseek-ai/dsh web启动后浏览器访问 http://127.0.0.1:3080 即可打开 Web 工作台,选择工作区目录、在“设置 → 模型”中配置 API Key 后即可交互。
如需深度自定义或研究运行时,可克隆完整源码后本地构建:
git clone https://github.com/deepseek-ai/deepseek-harness
cd deepseek-harness
pnpm install
pnpm run build
pnpm dsh web对于自动化场景,可使用 headless 配置一次性运行任务,例如 dsh --profile headless "run the tests and explain the failures",该组合不启动 HTTP 服务或浏览器客户端,适合本地脚本、批量仓库分析与可控自动化作业。在企业环境中,也可通过容器化方式部署,配合只读根文件系统、no-new-privileges、HTTPS 与用户名密码认证等边界,把端口、访问地址与登录凭据收敛为受控入口。