{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "runzhliu-deepseek-harness-docker--run-dsh-headless-for-automation",
 "repo": "runzhliu/deepseek-harness-docker",
 "repo_url": "https://github.com/runzhliu/deepseek-harness-docker",
 "repo_slug": "runzhliu-deepseek-harness-docker",
 "title": "Run DeepSeek Harness headless for batch and CI jobs",
 "page_title": "How to run DeepSeek Harness headless for batch and CI jobs with DeepSeek Harness Docker",
 "summary": "Use the headless profile for one-shot or automated agent runs without the Web UI.",
 "who": "A developer or CI maintainer who wants an agent task to run from a script or pipeline.",
 "problem": "The Web UI needs a browser and a person to log in, which does not suit scripted or batch work.",
 "outcome": "A headless DSH run that reads provider credentials from environment variables or a .env file and exits after the task.",
 "steps": [
  "Set the provider credentials as environment variables or in a `.env` file, since headless mode reads only those and not saved keys.",
  "Start the container from the image with the workspace mounted and a shell available. (inferred, check the README)",
  "Run `dsh --profile headless` inside the container for the one-shot or automated task.",
  "Capture the exit code and output and check that the task result is in the mounted workspace. (inferred, check the README)",
  "Run a small test task before adding it to a pipeline."
 ],
 "agent_prompt": "Using the image from runzhliu/deepseek-harness-docker, run `dsh --profile headless` against the workspace <workspace-path> with provider credentials from environment variables. Expected output: a completed task with a zero exit code and changed files in the workspace. Verify that no saved credential file was needed for the run.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README says sandbox behavior depends on the target host, so validate one real shell or file tool call on the target environment before relying on headless runs.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "shell",
 "requirements": [
  "Docker with Compose, or Rootless Podman 4.5 with podman-compose 1.6.0 or newer",
  "A local project directory to mount as the workspace, or leave the default named volume",
  "Model provider credentials to enter in the Settings page or supply as environment variables",
  "A Kubernetes cluster and Helm for the chart deployment"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Credentials in environment variables or a .env file can leak through CI logs or shell history, so store them in your pipeline secret manager."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/runzhliu-deepseek-harness-docker/run-dsh-headless-for-automation/",
 "md": "https://dedupedai.com/use-cases/runzhliu-deepseek-harness-docker/run-dsh-headless-for-automation/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/runzhliu-deepseek-harness-docker--run-dsh-headless-for-automation.json",
 "api_version": "v1"
}
