DeepSeek Harness
DeepSeek Harness (command dsh) is an open-source, plugin-based agent from DeepSeek that offers a web interface and a desktop app. It lets you add a custom model API with a choice of four formats: Chat Completions, Responses, Anthropic Messages, and Gemini.
DeepSeek Harness is currently a developer preview. The developers note that future versions may include breaking changes, so UI labels may differ in the version you use.
1. Get an API Key
Open the API Keys page, click Create API Key, set Group to default, and copy the key (it starts with sk-).
2. Start DeepSeek Harness
Requires Node.js 24.9 or later:
npx @deepseek-ai/dsh web
After it starts, it automatically opens http://127.0.0.1:3080 in your browser. You can also use the official macOS / Windows desktop app; the configuration steps are the same.
3. Add BeeRoute as a Model Provider
- Open Settings → Models and click Add model provider.
- Switch the card to Custom model API.
- Fill in the fields as shown below:
| Setting | Value |
|---|---|
| Provider ID | beeroute (lowercase; cannot be changed after saving) |
| Display name | BeeRoute |
| Base URL | https://beeroute.ai/v1 |
| API protocol | Chat Completions |
| API Key | Your BeeRoute key sk-xxx |
| Models | Click Fetch available models and select models, or add model IDs manually, for example claude-sonnet-5-5, kimi-k3.1-pro, deepseek-flash |
- After saving, select a model under BeeRoute in the chat view to start using it. Configuration changes take effect on the next request, with no restart needed.
BeeRoute automatically converts Chat Completions requests for Claude, Gemini, and other models, so a single provider gives you access to all models. See the Pricing page for all model IDs.
Each provider can use only one protocol. If you want Claude models to use the native Anthropic format, add another provider, set API protocol to Anthropic Messages, and set Base URL to https://beeroute.ai (without /v1).
4. If Requests Are Rejected: Add a Compatibility Configuration
If you get a 400 error when using reasoning models, DeepSeek Harness may be treating BeeRoute as the official OpenAI API and sending parameters such as the developer role. You can add a compat configuration for the provider in the configuration file.
The configuration file is ~/.dsh/profiles/<profile-name>/cordis.patch.yml: the profile name is web for the web version and desktop for the desktop app. After you add the provider in the UI, the file already contains the BeeRoute configuration; you only need to add the compat section under beeroute:
- id: llm-pi-ai
config:
providers:
beeroute:
displayName: BeeRoute
api: openai-completions
baseURL: https://beeroute.ai/v1
compat:
supportsDeveloperRole: false
maxTokensField: max_tokens
models:
- id: claude-sonnet-5-5
- id: kimi-k3.1-pro
- id: deepseek-flash
compat:
thinkingFormat: deepseek
supportsDeveloperRole: false: sends the system prompt with thesystemrole;maxTokensField: max_tokens: uses themax_tokensfield to limit output length;- Model-level
thinkingFormat: deepseek: sends the thinking toggle for DeepSeek V4 models in DeepSeek format, so that turning thinking off actually disables it.
The configuration in this file replaces the corresponding entry as a whole. When editing it manually, do not delete other providers already in the file. We recommend making a backup before editing.
5. FAQ
Clicking Fetch available models returns nothing?
Check that Base URL is https://beeroute.ai/v1 and that the key is correct. You can also add model IDs manually.
Getting a 401 error?
The key was not copied completely, or it has extra spaces.
Getting a 404 error?
For the Chat Completions protocol, Base URL is missing /v1; or for the Anthropic Messages protocol, it has an extra /v1.
Getting a 400 error?
Add the compat configuration as described in the previous section.
For more details, see the official DeepSeek Harness documentation: Model providers.
Last updated 2026-11-29 · Markdown source · llms.txt