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-ai/deepseek-harness-sdk.git
cd deepseek-harness
pnpm install
pnpm run build
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 dsh run "summarize the architecture of this workspace"
dsh run creates and persists a fresh session, prints the final assistant answer, and exits. While it runs, stderr prints the local browser URL where the session can be observed.
Start the browser interface:
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.
dsh run boots the headless profile: dsh-base, dsh-web-app, and dsh-headless compose over an empty root. dsh web uses the first two layers without the one-shot runner. Both select the DeepSeek model and capability plugins appropriate to their entry mode.
cordis.yml format