Connect DeepSeek Harness with Zeldoc.ai
DeepSeek Harness (dsh) is DeepSeek's
open source agent harness, with a web UI and a plugin architecture. It accepts any
OpenAI-compatible endpoint as a custom model API, so Zeldoc.ai drops in from its
settings page.
DeepSeek Harness is in developer preview, and its settings can change between releases.
This guide was written against dsh 0.2.2-alpha.2.
Prerequisites
- DeepSeek Harness running, with the web UI open
- A Zeldoc.ai API key — see Generate an API key
Add Zeldoc.ai as a custom model API
-
Open Settings → Models and choose Add model provider.
-
Switch the card to Custom model API and fill in:
Field Value Provider ID zeldocDisplay name Zeldoc.aiBase URL https://api.zeldoc.ai/v1API protocol OpenAI Chat Completions API key Your Zeldoc.ai API key -
Under Model catalog, choose Fetch available models, tick
zdev, and choose Update list. You can also typezdevin by hand. -
Save the provider.
The Provider ID can't be changed later, because sessions and defaults refer to it. The key is
stored in ~/.dsh/.credentials.yaml and is never shown again.
Set ZDev's limits and reasoning levels
DeepSeek Harness doesn't know anything about a model you add by hand, so give ZDev its
real limits. Edit the zeldoc provider, open Customized settings, and expand
Model options for zdev:
- Context window:
1000000 - Max output tokens:
131072 - Input types: tick both Text and Image
- Reasoning levels: turn it on, delete the
offandmediumrows, and add amaxrow. That leaveslow,high, andmax, the three levels ZDev has.
Leave out off. With no level, ZDev thinks at max, so an off row would not
stop it thinking. Leave each API value set to the level name.
Save, and the changes apply on the next request. You don't need to restart.
Verify the connection
Start a new session, open the model picker, and choose zdev under Zeldoc.ai. Then send:
Reply with the single word OK.
A reply from the model confirms Zeldoc.ai is connected. Picking a model also makes it the
default for new sessions. The Effort menu next to the model picker lets you switch
between low, high, and max.
Prefer a config file?
The Models page writes to ~/.dsh/profiles/web/cordis.patch.yml (web is the profile
dsh web uses). You can write the same provider there yourself and read the key from an
environment variable instead of the credential store:
- id: llm-pi-ai
config:
providers:
zeldoc:
displayName: Zeldoc.ai
apiKeyEnv: ZELDOC_API_KEY
api: openai-completions
baseURL: https://api.zeldoc.ai/v1
reasoning: high
models:
- id: zdev
name: ZDev
contextWindow: 1000000
maxTokens: 131072
input: [text, image]
reasoningEfforts:
low: low
high: high
max: max
reasoning is the level used until you pick one in the Effort menu. Export the key in
the shell you start dsh from:
export ZELDOC_API_KEY=your-api-key
This llm-pi-ai entry replaces the whole entry of the same id. If the file already has
one, add zeldoc under its providers instead of adding a second entry.
Use other Zeldoc.ai models
Choose Fetch available models again and tick more models, or add their IDs by hand. Use each model ID exactly as Zeldoc.ai reports it (see list your available models). Limits and reasoning levels differ between models, so don't copy ZDev's settings to another model.