Key takeaways

  • DeepSeek Harness and OpenCode are both free and MIT-licensed; you pay only for the model API or an optional OpenCode plan.
  • DeepSeek Harness runs as a local web or desktop app with sandboxed, ask-first defaults, while OpenCode is a terminal-first agent that allows most actions by default.
  • DeepSeek Harness uploads the session log to DeepSeek with DeepSeek API requests by default, a setting users can switch off.

DeepSeek Harness vs OpenCode is a choice between a DeepSeek-first agent in preview and a model-agnostic agent that has shipped for longer. Both are free, MIT-licensed coding agents that read your project, edit files and run commands. DeepSeek Harness (dsh) is built by DeepSeek around its own API and runs mainly as a local web app or desktop app. OpenCode, from Anomaly, is a terminal-first agent that connects to more than 200 model providers, DeepSeek among them. In both cases you pay for the model, not the agent.

This comparison is based on DeepSeek's docs and GitHub repository, OpenCode's site, docs and GitHub repository, and published leaderboards, all read on November 29, 2026. Neither tool was installed or run for it. For background, see what DeepSeek Harness is and costs, DeepSeek Harness vs Claude Code and Claude Code vs OpenCode.

DeepSeek Harness vs OpenCode at a glance

DeepSeek Harness (dsh) OpenCode
Made by DeepSeek Anomaly
License MIT MIT
Status Developer preview, version 0.2.3-alpha.3, no GitHub releases Version 2.4.2, released November 26, 2026
GitHub stars (November 29, 2026) About 288,500 About 229,900
Main interface Web UI in the browser, desktop app Terminal UI, desktop app
Other ways to run it Headless one-shot jobs, ACP server, JSON-RPC SDK, Python SDK Web via opencode pair, iOS and Android apps, SDK
Desktop app macOS and Windows macOS, Windows and Linux
Default model DeepSeek API (deepseek-flash, deepseek-v4-pro) The one you connect and pick
Other models Built-in providers such as Anthropic, OpenAI, Kimi and GLM, plus custom endpoints 200+ providers via Models.dev, ChatGPT and Copilot sign-in, local models
Local models Through a custom OpenAI-compatible endpoint Ollama, LM Studio and vLLM detected automatically
Default safety Writes limited to the workspace, asks before risky steps, OS sandbox Everything allowed except reading .env files, no sandbox
Data sent by default Session log uploaded to DeepSeek with DeepSeek API requests Prompts go to your model provider only
Paid plan from the maker None. Pay DeepSeek per token Optional: OpenCode Go from $10 a month, or pay-as-you-go credits

What each one is

DeepSeek's README calls DeepSeek Harness "an open-source agent harness" built on an "everything-is-a-plugin" design and the Cordis TypeScript framework. In practice the parts of the agent are plugins that can be swapped. The README warns of compatibility-breaking changes. DeepSeek's API docs list Harness first under "Agent Integrations," as "now in developer preview for agent harness developers worldwide."

OpenCode's site calls it "the open source coding agent for any model." Anomaly says more than 22 million developers use it each month. Version 2.4.0, released November 23, added automations and a built-in desktop browser, according to its changelog, and our article on OpenCode 2 covers the move to version 2.

Where they run

OpenCode lives in the terminal. Its docs describe a terminal UI, a desktop app with Linux builds in .deb, .rpm and AppImage, a web view you open with opencode pair, phone apps for approving sessions on the go, and an SDK. It installs with one curl script or through npm, Homebrew, the AUR, mise or Nix.

DeepSeek Harness lives in the browser. npx @deepseek-ai/dsh web starts a local Web UI at http://127.0.0.1:3080, and the package asks for Node.js 24.22.3 or newer. The CLI README lists a headless mode that runs one job and prints the answer, an ACP server for automation clients, and an SDK mode. A terminal UI appears there only as an example "assuming the tui profile is installed," so it is not part of the default install. The desktop app's docs cover macOS and Windows only.

Which models each one supports

DeepSeek Harness starts with DeepSeek. You paste a DeepSeek API key under Settings, then Models, and the model list follows what DeepSeek's API publishes, according to the model configuration guide. You can also sign in with a DeepSeek account. Beyond that, it ships providers with ids such as anthropic, openai, moonshotai for Kimi and zai for GLM. A custom provider can point at any gateway or self-hosted server that speaks one of four protocols: OpenAI Chat Completions, OpenAI Responses, Anthropic Messages or the Gemini API.

OpenCode starts with nothing and connects to almost anything. You run /connect, choose a provider and enter a key. Its providers docs also cover signing in with a ChatGPT Plus or Pro plan or GitHub Copilot, and they pick up Ollama, LM Studio and vLLM on their default ports without setup. Other OpenAI-compatible APIs go in opencode.jsonc.

DeepSeek models work in OpenCode too. DeepSeek's own OpenCode guide says to type /connect, pick deepseek, paste your API key and select DeepSeek-V4-Flash, and recommends OpenCode 1.18.30 or newer.

What each one costs

With DeepSeek Harness on DeepSeek's API, you pay DeepSeek's list prices. As of November 29, 2026, its pricing page lists, per million tokens:

Model Input, cache hit Input, cache miss Output
deepseek-flash, off-peak $0.003 $0.15 $0.60
deepseek-flash, peak $0.006 $0.30 $1.20
deepseek-v4-pro, off-peak $0.022 $0.66 $1.98
deepseek-v4-pro, peak $0.044 $1.32 $3.96

Peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays, excluding Chinese public holidays. Both models have a 1 million token context window.

OpenCode can use the same DeepSeek key at the same prices. It also sells model access of its own through the OpenCode Console, as of November 29, 2026:

  • Pay as you go. DeepSeek V4.1 Flash costs $0.12 input and $0.48 output per million tokens, marked as 60% off its regular $0.30 and $1.20. DeepSeek V4 Pro costs $1.74 input and $3.48 output. Each credit purchase carries a fee of 4.6% plus $0.31.
  • Free. DeepSeek V4.1 Flash Free is listed at no cost. The docs say its provider keeps no data and does not train on it.
  • OpenCode Go. $10 a month, Go Plus at $40 or Go Teams at $20 per member, with DeepSeek V4.1 Flash and V4 Pro among the included models. Each model has a monthly dollar allowance with 5-hour and weekly caps.

So Flash is slightly cheaper through OpenCode's discounted credits than at DeepSeek's off-peak price, while V4 Pro input costs more through OpenCode than at DeepSeek's peak rate.

Features side by side

Feature DeepSeek Harness OpenCode
Planning Agent keeps a plan Built-in Plan agent that does not edit project files
Subagents In-process children, or out-of-process ones backed by ACP, Codex, Claude Code or another Harness General and Explore built in, custom ones; they run in the background
MCP servers Yes, stdio and Streamable HTTP Yes
Skills Yes, including Word, PowerPoint and Excel skills Yes
Extensions Plugins, with experimental plugin indexes Plugins
Scheduled tasks Reminders and automation tasks Automations since version 2.4.0
GitHub Experimental webhook that opens a review session when a pull request is marked ready Not covered in the pages read
Mobile No app iOS and Android

DeepSeek Harness can hand a subtask to Claude Code or Codex as a child agent, according to its subagent package docs.

Safety defaults differ sharply

DeepSeek Harness is the more cautious of the two out of the box. Its base configuration starts sessions in workspace-write mode with approval set to ask. Commands run inside an operating-system sandbox on Linux, macOS and Windows, and the sandbox docs say a command fails with SANDBOX_UNAVAILABLE rather than running unconfined. Its safety notice still says the project "has not undergone a security audit" and advises a disposable VM or container. More in is DeepSeek Harness safe.

OpenCode trusts the agent more. Its permissions docs say every agent starts from a policy that allows everything, then asks before reading .env files. Edits outside the project proceed without a prompt, and shell commands run with your user's full access. Rules can allow, ask or deny each tool, command or path.

Privacy: what leaves your machine

This is where DeepSeek Harness needs a closer look. A plugin that is on by default sends your session log with each request to DeepSeek's official API, according to its package docs. The CLI reference says such exports "can include message text, tool arguments and results, and workspace paths." You turn it off under Settings, General, Data management, with the switch "Upload session log when using the official model API." Separately, rating a message or sending feedback uploads the session to a DeepSeek collector unless DSH_TELEMETRY_MODE=DISABLED is set.

OpenCode's privacy policy, last changed November 8, 2026, says prompts "are passed through to the upstream model provider" and are not stored, except for agents hosted in OpenCode's Console, whose sessions are deleted 30 days after last activity. Session sharing to public links was discontinued on October 15, 2026. For its own DeepSeek models, OpenCode's Go docs list zero data retention under an agreement "valid through December 31, 2026," and say they require the Global region in workspace privacy settings, since the default allows only Europe and the United States.

Either way, the model provider sees your code.

Benchmarks: no head-to-head numbers

Neither agent appears on the Terminal-Bench 4.1 leaderboard, which ranks agent and model pairs on terminal tasks, as of November 29, 2026. No independent test checked for this article runs DeepSeek Harness and OpenCode on the same model, so claims that one writes better code have no published support yet.

Which one to choose

Choose DeepSeek Harness if you mostly use DeepSeek models, want a browser or desktop interface, and value a sandbox and ask-first defaults. Turn off the session-log upload if you don't want DeepSeek to receive it, and accept that the software is a preview that will break.

Choose OpenCode if you want a terminal agent, need Linux desktop or phone apps, switch between models from several labs or run local ones, or want a $10 monthly plan that bundles DeepSeek with other open-weight models. Add permission rules first, because its defaults let the agent do almost anything your user account can.

Frequently asked questions

Can I use DeepSeek models in OpenCode?

Yes. DeepSeek's own guide says to type /connect in OpenCode, choose deepseek and paste a DeepSeek API key. OpenCode also sells DeepSeek V4.1 Flash and V4 Pro through its Console credits and OpenCode Go plans.

Is there a DeepSeek Harness app for Linux?

The DeepSeek Harness desktop docs cover macOS and Windows only. On Linux you can run the Web UI with npx @deepseek-ai/dsh web, and the Python SDK supports Linux x64 and arm64.

Does DeepSeek Harness have a CLI?

The dsh command starts the Web UI and also has headless, ACP and SDK modes. A terminal UI is not part of the default install, according to the CLI README.

Which is cheaper, DeepSeek Harness or OpenCode?

Both agents are free. With the same DeepSeek API key, the model costs the same in either; OpenCode adds optional paid plans from $10 a month and discounted pay-as-you-go DeepSeek prices.

Sources

  1. deepseek-ai/deepseek-harnessDeepSeek
  2. DeepSeek Harness: configure modelsDeepSeek
  3. DeepSeek Harness CLI READMEDeepSeek
  4. DeepSeek Harness: get started with the Python SDKDeepSeek
  5. DeepSeek Harness CLI referenceDeepSeek
  6. DeepSeek Harness safety noticeDeepSeek
  7. DeepSeek Harness sandbox packagesDeepSeek
  8. DeepSeek Harness session-log upload pluginDeepSeek
  9. DeepSeek Harness subagent packagesDeepSeek
  10. DeepSeek API docsDeepSeek
  11. Models and pricingDeepSeek
  12. OpenCode integration guideDeepSeek
  13. OpenCodeAnomaly
  14. anomalyco/opencodeAnomaly
  15. OpenCode docs: introAnomaly
  16. OpenCode docs: providersAnomaly
  17. OpenCode docs: permissionsAnomaly
  18. OpenCode docs: agentsAnomaly
  19. OpenCode Console models and pricingAnomaly
  20. OpenCode GoAnomaly
  21. OpenCode changelogAnomaly
  22. OpenCode v1.19.1: session sharing discontinuedAnomaly
  23. OpenCode privacy policyAnomaly
  24. Terminal-Bench leaderboardTerminal-Bench

Add ClaudeGPT Si as a preferred source on Google