Skip to main content

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.

Developer preview

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​

Add Zeldoc.ai as a custom model API​

  1. Open Settings → Models and choose Add model provider.

  2. Switch the card to Custom model API and fill in:

    FieldValue
    Provider IDzeldoc
    Display nameZeldoc.ai
    Base URLhttps://api.zeldoc.ai/v1
    API protocolOpenAI Chat Completions
    API keyYour Zeldoc.ai API key
  3. Under Model catalog, choose Fetch available models, tick zdev, and choose Update list. You can also type zdev in by hand.

  4. 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 off and medium rows, and add a max row. That leaves low, high, and max, 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
Keep your other providers

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.