DeepSeek Harness: Setup, Models, Costs, and Your First Task

DeepSeek Harness is DeepSeek’s open-source agent application and framework, also called dsh. It connects an AI model to local files, commands, workspaces, and tools so it can carry out multistep tasks. You can use it through a Desktop app, a local browser interface, or command-line automation.

The practical starting point is to install an official build, connect a model, choose a project folder, and complete one small task you can review. This guide follows that path, then explains costs, permissions, plugins, and common setup problems.

Documentation checked November 18, 2026. The latest entry on the official release page was v0.2.2-rc.5, published November 18 and marked prerelease. Harness remains preview software. The instructions below are based on official documentation; the example tasks are suggested workflows, not reported installation tests.

What Is DeepSeek Harness?

An agent harness provides the software around a model: the tools it can call, the working directory, session history, execution controls, and interfaces. The model proposes actions; the harness manages how those actions run and how their results return to the conversation.

For example, you can ask Harness to inspect a project, identify its test command, update a README, and report the changes. Its usefulness depends on the model, available tools, and instructions you provide. A clear task with an observable result is easier to evaluate than a broad request to “improve everything.”

Official comparison of DeepSeek Harness modes and other agent scaffolds on DeepSWE v1.1 and Terminal-Bench 2.1.

The official project is deepseek-ai/deepseek-harness on GitHub, linked from DeepSeek’s Harness product page. It uses a Cordis-based plugin architecture and an MIT license. Installing Harness supplies the agent software; you still need to connect a model service or compatible local model server.

DeepSeek Harness desktop interface with workspaces, sessions, permission mode, and model picker.

Desktop, Web UI, or Headless: Which Should You Use?

OptionHow you use itGood starting point for
Desktop appOpen a packaged application with its own runtime.People who prefer a desktop installation.
Local Web UIStart Harness from a terminal and use its browser interface.Developers and Linux users following the npm route.
Headless profileSubmit one task from the command line, receive the result, and exit.Scripts and repeatable automation.
SDK and integration profilesControl agent execution programmatically.Developers embedding Harness in other software.

Start with Desktop or the Web UI if you want to inspect actions and respond to requests interactively. The CLI reference explains the separate launch profiles. A command-line launcher and a terminal chat interface are different things; the standard web command opens a browser interface.

How to Install DeepSeek Harness

Option 1: Download the Desktop App

Use the official DeepSeek download page and select the Harness desktop application. The current public downloads include macOS for Apple silicon, requiring macOS 13 or later, and Windows. The Harness product page identifies the Windows download as 64-bit.

Official DeepSeek Harness desktop downloads for macOS and Windows.

Install and open the application, then continue to model and workspace setup below. The Desktop documentation describes a bundled runtime, so installing system Node.js is not a prerequisite for this route. The reviewed public download page does not list a Linux desktop installer; Linux users can follow the npm/Web UI route.

Option 2: Start the Local Web UI with npm

The current CLI package requirements specify Node.js 24.9.0 or newer. Check the version available in your terminal:

node --version
npm --version

If Node.js is missing or too old, use the official Node.js download page to install a supported version that meets this requirement. Reopen your terminal and check again.

Open a terminal in the project directory you intend to use, then run the command provided by the official repository:

npx @deepseek-ai/dsh web

A local launch opens the interface in your browser. The default address is http://127.0.0.1:3080; use the address printed by your running instance. Keep that terminal process running while you use the Web UI.

This package route does not require cloning and building the repository. If you intend to modify Harness itself, use the separate source-development instructions.

Connect a Model and Choose Your Workspace

Configure a DeepSeek API Key

The official Web UI quickstart uses API-key setup. Create or obtain a key through the DeepSeek Platform, then:

  1. Open Settings → Models.
  2. Enter your key in the DeepSeek provider card and save it.
DeepSeek Harness Models settings with the DeepSeek API key field and Add model provider option.

Saved credentials become available to subsequent requests without restarting the server. Check your API account’s available balance before starting a longer task.

Harness also documents DeepSeek-account authentication, although the Desktop documentation contains conflicting statements about sign-in availability. Use the API-key workflow above for this tutorial; treat account sign-in as build-dependent. A consumer Chat account does not establish that Harness model usage is free.

Select the Project Directory Explicitly

Click Choose workspace, add your intended project directory, and select it. A fresh Web UI requires this step even when you launched the command from that folder. The composer remains unavailable until a workspace is selected. Start a new session and choose an available model in the model picker before submitting your task.

For the exercise below, use a copy of a small existing project containing README.md. Choose a directory whose contents you recognize, and check the displayed location before sending the first task.

Connect Other Model Providers

The model provider guide covers other providers and custom APIs. Select Add model provider and supply that service’s credentials. For a custom endpoint, match its base URL, protocol, and model ID; check compatibility before assuming tool calls will work.

Changing the default model affects new sessions; it does not automatically replace an existing session’s recorded choice. Start a new session for this walkthrough.

Official DeepSeek-V4.1-Flash agentic benchmark comparison across Terminal-Bench, DeepSWE, CyberGym, and Automation-Bench.

Complete Your First Task: Improve One README Section

A small documentation change provides a useful first exercise: you can inspect the evidence, review the exact edit, and decide whether the result is correct. The following prompts are examples to adapt to your project.

1. Inspect Before Editing

Use the current session’s permission picker to select Read Only. The permission UI reference distinguishes this control from General settings, which changes the default for future sessions.

Inspect the selected workspace without changing files. Report the actual working directory using a tool, list the main project files, and identify the test command from existing configuration or documentation. Cite the file paths supporting your answer. If no test command is defined, say so. Do not install dependencies or run tests yet.

Compare the reported directory and files with the folder you selected. Check the cited configuration yourself. If the agent guessed a command or inspected the wrong location, resolve that before moving on.

2. Request One Bounded Change

After confirming the workspace and inspection results, select Workspace Write for the current session and request the edit:

Update only README.md. If the project defines a test command, explain how to run it and identify the configuration file that defines it. Otherwise, add a short Project structure section describing the files and directories you inspected. Preserve the document’s style and change no other files. Show the exact diff. If the relevant information is already correct, report that no edit is needed.

The fallback keeps the task useful for projects without tests. In either case, every added statement should be supported by files the agent actually inspected.

3. Review the Result and Verify the Claim

Inspect the actual changed file. In a Git project, these commands help you check the scope and content:

git status --short
git diff -- README.md
DeepSeek Harness reviewing a workspace file diff before accepting changes.

Confirm that only the intended file changed and that the instructions match the project. Distinguish “the configuration defines this command” from “the command ran successfully.” If you need execution evidence, review the existing command before authorizing it, then ask for its exit code and any blocked or skipped checks. A confident final message alone is not verification.

Understand Permissions and Local Data

Harness can execute commands and modify files. Its official safety notice says it has not undergone a security audit and should not be treated as production-ready. Use a disposable copy for initial experiments and a separately isolated environment for untrusted work.

A selected workspace is not a complete isolation boundary. The sandbox documentation describes controls over filesystem effects. Workspace Write permits writes in the workspace, relevant additional grants, and supported temporary areas; it does not confine network access or guarantee that reads stay inside that folder. Enforcement also varies by backend. Full access bypasses that confinement.

Local installation also does not mean offline processing. A remote model receives the context sent to it. Saved credentials reside under the Harness home, normally ~/.dsh, in .credentials.yaml. The credential-store documentation warns that agent tool processes run as the same OS user and can read that store.

Review session sharing before using sensitive material. The DeepSeek session-log contribution is enabled by default and has a switch under Settings → General → Upload Session Log when using the official model API. Separate OpenTelemetry feedback uploads can include session context after explicit feedback. Those mechanisms have independent controls; changing one does not disable the other.

What Can DeepSeek Harness Do Beyond Coding?

DeepSeek’s product page describes document work, data analysis, research, file operations, and longer-running tasks alongside coding. Plugins extend the available tools and interfaces. Features such as agent teams and scheduling are presented as experimental, so check the capabilities exposed by your installed version.

Useful tasks to try after the README exercise include organizing a small document folder, summarizing a CSV with clearly stated assumptions, or researching a question with linked sources. Give each task an output format and a completion condition, such as a report saved to a specified file or a table with sources for every factual claim.

Add integrations when a task requires them. The CLI reference documents an included MCP client with server connections initially unconfigured. Each connected server runs executable code outside Harness’s agent sandbox, so review it before connecting.

Is DeepSeek Harness Free? Software, Model, and Search Costs

The MIT-licensed Harness software is available without a separate software license fee. Running a task can still incur model or external-service charges.

Cost componentWhat determines the cost?
Harness softwareThe official open-source project uses the MIT license.
Model inferenceThe selected provider’s rates and the input/output tokens used across requests.
Search and page retrievalThe active tool provider and whether the request uses server-side model tools or a standalone API.
Other integrationsAny separate service charges associated with enabled tools.

Check the current DeepSeek API pricing for model rates. A single task can involve multiple model requests, so a short prompt does not imply a fixed task price. Run a small representative task and examine account usage before scaling up.

Search Billing Depends on the Route

Under DeepSeek’s November 18, 2026 pricing update, model-triggered server-side search and web fetch have no separate tool-call fee. Returned content still contributes to billed model tokens. The standalone Search API and Fetch API each cost $0.75 per 1,000 successful requests.

Harness’s automatic search selection prefers server-side search for DeepSeek API-key or account model routes when that provider is usable. For other model routes, it prefers the standalone Search API. An explicit provider selection overrides the default, and fetch has its own selection. Check the active route before assuming search has no separate fee.

Run a Task in Headless Mode

Headless mode submits one task, prints the final answer, and exits. After configuring credentials for that environment, you can run a read-focused task from the intended project directory:

npx @deepseek-ai/dsh --profile headless --permission-mode read-only "Inspect README.md and summarize the project. Do not modify files."

The unmodified shipped configuration uses DeepSeek Flash through the DeepSeek API-key provider. Custom profile or home settings can override that default model selection.

Headless credentials differ from GUI credentials. The shipped profile ignores keys and sign-ins saved through the graphical interface. For the DeepSeek API-key route, supply DEEPSEEK_API_KEY through your launch environment or supported .env configuration. The documented lookup order is launch environment, invocation directory’s .env, then $DSH_HOME/.env.

See the official headless reference before automating larger jobs. Its --approval-policy never option rejects operations that require approval; it does not approve every action. Keep API keys out of task prompts and committed project files.

Common DeepSeek Harness Setup Problems

ProblemWhat to check
The npm launch fails with an engine requirement.Run node --version in that terminal. The current CLI requires Node.js 24.9 or newer.
The local page does not open.Check whether the terminal process started successfully and use its printed URL. Inspect the terminal error if another process is already using the port.
The composer is unavailable.Select a workspace and a usable model. Removing the default provider can leave the model picker unselected.
The provider rejects the key or model.Check the credential, endpoint, model ID, and account access for that provider. Avoid mixing credentials and model IDs from different services.
Web UI works, but headless reports a missing credential.Configure the headless launch environment; the shipped profile ignores saved GUI authentication.
Web search is unavailable.Check the chosen search provider and its credentials. A listed provider may still be unusable.
A task is blocked by permissions.Read the blocked operation and active policy. Adjust the task or grant only the access it needs; investigate sandbox failures before changing the mode.

For configuration errors, compare your installation with the official provider guide and the documentation matching your release. Record the version, profile, and exact error when investigating a problem; omit credentials from anything you share.

Frequently Asked Questions

Can DeepSeek Harness Use Ollama or Local Models?

The provider guide supports custom model endpoints. For an Ollama or other local-server setup, verify that the server’s API protocol, model ID, and tool-calling behavior match what Harness expects. Installing Harness does not download or start a local model. An entirely local workflow also requires reviewing external search, integrations, and session-sharing settings.

Does DeepSeek Harness Have a TUI?

The official CLI reference shows a TUI plugin installed into a separate profile. Its listed automatically initialized profiles are Web, headless, SDK, minimal SDK, and ACP. Treat a TUI as a separately configured interface; the standard npx @deepseek-ai/dsh web quickstart launches the browser UI.

How Is Harness Different from DeepSeek Chat?

Harness gives you a configurable environment for work involving local files, command execution, model providers, and extensions. Consider it when you need that control and can review the resulting actions. For a question or writing task that requires no local tools, a chat interface may already cover your needs.