English | 中文
This guide gets an agent running in five minutes.
A DeepSeek Platform API key
node -v
corepack enable
pnpm -v
git clone https://github.com/deepseek-harness/deepseek-harness.git
cd deepseek-harness
pnpm install
Create the gitignored repository-root .env:
DEEPSEEK_API_KEY=sk-your-key-here
Run a non-interactive task and print its final answer:
pnpm run demo:headless "summarize the architecture of this workspace"
Headless runs one complete model/tool turn, persists the session, prints the result, and exits. Use --output-format stream-json when you need the canonical event stream.
Build and start the browser interface:
pnpm run build
pnpm run dsh web
Open http://127.0.0.1:3080. The agent can read and write files, run commands, delegate subtasks, and track a plan. Try: Create hello.js in the current directory, print "Hello from Harness!", and run it.
headless-agent uses the @deepseek-ai/dsh-cli-demo app. dsh web instead boots the web profile: the dsh-base and dsh-web-app bundle patch layers composed over an empty root. Both select the DeepSeek model and capability plugins appropriate to their entry mode.
cordis.yml format