DeepSeek Harness (DSH) setup
Connect CanalAPI through DSH Custom model API, then configure a workspace, protocol and plugin-based agent.
DeepSeek Harness (DSH, command dsh) is DeepSeek's open-source agent harness. Models, tools and sessions are composed through plugins. It is not a model and is not limited to DeepSeek's hosted service.
Checked on 2026-11-03, pinned to 0.2.1-rc.5, the npm
latestat the time. DSH is a developer preview; RC / alpha labels are not stability promises. Official configuration was checked; real CanalAPI tasks have not been tested.
1. Start the Web UI
Install Node.js; use 24.x for this guide. In a separate test project directory, run the following. The npx command works in Windows PowerShell, macOS and Linux shells:
node --version
npx @deepseek-ai/dsh@0.2.1-rc.5 webThe default URL is http://127.0.0.1:3080; use the address printed by the process. This downloads and runs the pinned version. Initial local setup needs neither public binding nor extra community plugins. Stop the preview with Ctrl+C in its terminal.
2. Add CanalAPI as a custom model API
Open Settings → Models → Add model provider and select Custom model API:
| Field | Value |
|---|---|
| Provider ID | canalapi, lowercase; the ID cannot be renamed in place |
| Display name | CanalAPI |
| Base URL | https://api.canalapi.com/v1 |
| API protocol | OpenAI Chat Completions |
| API key | Your CanalAPI key |
| Model catalog | Start with one full model ID supporting tools |

Reproduced under MIT from the official DeepSeek 0.2.1-rc.5 guide. This empty form is not evidence of a successful CanalAPI call. Replace the image's example URL with the URL above.
Fetch and select models, or add IDs manually. CanalAPI's catalog is public: fetching it or saving a key does not verify inference. Set context, maximum output and image options according to real model capabilities.
One DSH provider uses one protocol. Its openai-completions config value means Chat Completions, not legacy /v1/completions. If you need Responses or Anthropic Messages later, create and verify a separate provider for that protocol rather than changing only a model name.
3. Select a workspace and model
- Choose Choose workspace, add the test directory and select it. The composer may remain unavailable until you do this.
- Create a session and explicitly select the intended model under
CanalAPI. - Ask “Reply only OK; do not call tools” and inspect CanalAPI usage logs.
- Ask for a read-only summary of a fictional README. Inspect tool records, paths and permission prompts before trying edits.
Provider changes can apply to the next request, but a session that has already sent a request keeps its own model record. After changing defaults, start a new session or explicitly check its model. The active policy determines which operations need approval; not every action necessarily prompts.
4. Optional environment-key configuration
Use the UI for initial setup. For manual configuration, set CANALAPI_API_KEY in the environment launching DSH and edit the active profile's cordis.patch.yml. Standard dsh web uses $DSH_HOME/profiles/web/cordis.patch.yml; the settings page's Open configuration file can open it.
- id: llm-pi-ai
config:
providers:
canalapi:
api: openai-completions
baseURL: https://api.canalapi.com/v1
apiKeyEnv: CANALAPI_API_KEY
models:
- id: YOUR_MODEL_IDThis is a fragment for an existing llm-pi-ai entry, not a replacement for the whole file. Cordis replaces an entry's complete config when overridden: preserve other providers and fields, and do not append a duplicate id. Replace YOUR_MODEL_ID; environment instructions are in the API quickstart.
UI-saved keys live in $DSH_HOME/.credentials.yaml, while settings contain credential references. Never upload that file. When switching to environment authentication, check whether a saved reference still takes precedence and follow the official credential rules.
Common issues
- Composer unavailable: select both a workspace and a usable model.
- Requests go to DeepSeek directly: add a custom CanalAPI connection instead of filling only the default DeepSeek card.
- 400, tool-format or parameter error: check protocol and capabilities. Adjust
compatoptions for developer role or output parameters only when an actual error identifies that mismatch. - Upgrade changes behavior: record the exact version and profile. New alpha menus may differ from this RC guide; back up settings and sessions and verify upgrades in a test environment.
Official references: project and installation, models, workspace and tasks. API errors: troubleshooting.