Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

DeepSeek Harness Model Configuration

DeepSeek Harness Model Configuration

DeepSeek Harness can use DeepSeek's official configuration or third-party models.

Provider type What It Is Credential requirement Applicable scenarios
DeepSeek DeepSeek official endpoint DeepSeek API key (write-only) default, fastest to get started
catalog provider providers in the installed catalog, such as Anthropic, OpenAI each provider's API key; those with native auth need their own credentials connect to included mainstream vendors
custom provider self-hosted endpoints, such as company gateways or self-built servers Provider ID, baseURL, protocol, credentials, model endpoints not in the catalog

On the desktop version, click the bottom-left account menu → Settings → Models; in the Web UI, first open the address printed in the terminal, then go to Settings → Models. Model changes take effect on the next request, no restart needed.

If you don't have an API key yet, you can go to https://platform.deepseek.com/api_keys to apply.

The Models page below shows both the DeepSeek account and the DeepSeek API provider. For the API route, click Edit on the DeepSeek card, enter your own key and save; the models available to a logged-in account are subject to the list returned by the account service.

Local model settings page, showing the account, DeepSeek API, and the entry for adding a model provider

The key is "write-only": after saving, the page only receives a masked credential descriptor; the real key is stored in $DSH_HOME/.credentials.yaml, and the config file only keeps a credential reference.

When an environment variable has the same name as a stored credential,the stored credential takes precedenceover the exported environment variable.


How the model list updates

Under the default endpoint, the model list follows the DeepSeek API release list.

Loaded on first use, refreshed in the background about every 10 minutes during use; on load failure, it falls back to the built-in model list without affecting configured usage.

Open "Custom Settings → Model Catalog" to change it to a manually maintained list; select "Restore Default Models" to resume following the release list.

When using the release list, the cards show built-in models, and newly released models appear only in the model selector of the chat box.


Adding a catalog provider

Catalog providers get endpoints, protocols, and model lists from dsh's installed catalog.

Select Add Provider, choose a provider such as Anthropic or OpenAI, enter its API key and save.

The installed catalog automatically brings endpoints, protocols, and model lists; no manual entry needed.

For example, let's set up Zhipu's coding plan package:

After setup, we can see the models we added in the chat box's model list:

Providers using native auth need their own native credentials; filling only the API key field cannot complete the configuration.

Providers Required native credentials
Bedrock AWS credentials and region
Vertex ADC project
Azure api-version
Codex OAuth

Third-party catalog provider route ids also have conventions: Anthropic is anthropic, OpenAI is openai, Kimi is moonshotai, Zhipu GLM is zai。


Adding a custom provider

Endpoints not in the catalog, such as company gateways and self-built servers, are connected via custom providers.

Select Add Model Provider → Custom Model API and fill in the following fields.

Local custom model API form

Field Description Required
Provider ID lowercase, permanent identifier Required
Display name name shown in the interface Optional
Base URL the endpoint's baseURL Required
API protocol choose one of three: openai-completions / openai-responses / anthropic-messages Required
Credentials provide as required by the server; environment auth can be used when supported depends on the endpoint's auth method
Model at least one model Required

The API protocol corresponds to three interface styles: OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages; a provider can choose only one protocol.

The Provider ID is permanent because requests, saved sessions, model defaults, and credential references all use it.

To rename a provider, add a new provider and delete the old one.

Display name, base URL, protocol, credentials, and models remain editable.

Selecting Fetch Available Models in the model catalog queries the base URL and credentials currently shown in the form.

Selecting a candidate only updates the draft; the provider is not stored until saved.

Catalog providers use the installed catalog and make no network requests.

Once a model is selected, it becomes the default for new sessions; sessions that have already made requests keep the model recorded in their own logs and are unaffected.


Reasoning Effort

Models supporting reasoning effort levels can select off / low / high and other levels in the model selector.

The level list comes from the adapter or model catalog declaration; the level selected in a session is saved together with the model as the new session default.

The direct DeepSeek official route needs no configuration; models come with built-in levels; the plugin config's llm-deepseek.reasoningEffort can set the initial default level.

Custom OpenAI-compatible gateways require attention to two cases:

Case Configuration method
gateway modelthinking enabled by default(such as DeepSeek V4 behind the gateway) Add to the route compat.thinkingFormat: deepseek——off level sends thinking: {type: disabled}, other levels append thinking: {type: enabled}
want to hide the level selection for a built-in model Using reasoningEfforts: false remove levels; selecting afterwards will report UNSUPPORTED_REASONING_EFFORT

There is another common gateway compatibility switch:compat.supportsDeveloperRole: false(models declaring reasoning capability may use role:"developer", which some gateways reject) and compat.maxTokensField: max_tokens(by default sends max_completion_tokens)。

Configuration hierarchy: route-level compat is the default, model-level wins field by field.

Empty-value keys (such as write-only supportsDeveloperRole:) are rejected rather than ignored.


Image input: declare modalities for vision models

Manually entered models are treated as text-only by default; to support images you must declare it explicitly.

Because no step can ask the endpoint which modalities it accepts, dsh adopts a "declare first, use later" strategy.

Attaching images to such a model is rejected before sending, with the model named explicitly.

  1. Edit the provider and open Custom Settings; when creating a new custom provider, add the model directly in the model catalog.
  2. Expand the model options for that model, check Image in Input Types, and keep the required Text type.
  3. After saving, select the model in a new session and add a test image.

The model options of a custom model provide text and image input types

When configuring via file, use $DSH_HOME/profiles//cordis.patch.yml. The default Web profile is web; on the desktop version, use Open Config File in the settings page to locate the actual file. Do not write model plugin config into the old settings.yaml.

Below is a complete provider configuration example. Overriding by id replaces the entire config; when modifying an existing file, keep other providers and config fields under the same plugin.

Example

File path: $DSH_HOME/profiles/web/cordis.patch.yml

:

llm-pi-ai

  config

:

    providers

:

      my-gateway

:

        apiKeyEnv

:

GATEWAY_API_KEY

        api

:

openai-completions

        baseURL

:

https://gateway.example/v1

        models

:

          - id

:

legacy-chat

          - id

:

vision-preview

            input

:

[

text, image

]

input applies to a single model. When omitted or empty, it first inherits the catalog declaration, then falls back to the route's defaultInput(text only by default). To uniformly declare vision capability for models not described in the catalog, set on the route defaultInput: [text, image]。

Built-in provider single-model overrides are written under modelOverrides , keyed by model ID. The DeepSeek direct route instead uses inputModalities, so you cannot copy pi-ai fields over directly.

input and defaultInput are assertions about your endpoint, not checks on it.

A model that declares image capability the endpoint does not provide will not be blocked here; instead the provider rejects the request.

Also, the route of the direct DeepSeek adapter stores the modality field as inputModalities, with the same semantics; DeepSeek treats omitted modalities as text-only and rejects empty lists.


Troubleshooting table

When model configuration is wrong, dsh gives a clear error message; troubleshoot against the table below.

Error Meaning Solution
MISSING_CREDENTIAL Missing provider key store the provider key via the Models page, or provide the referenced environment variable
UNKNOWN_MODEL Requested model not configured select a configured model, or add the missing model to a custom provider
Fetch Available Models returns 401 invalid key, or the endpoint does not support model discovery check the key and selected protocol; if the endpoint does not support discovery, enter the model ID manually
UNSUPPORTED_REASONING_EFFORT model does not support the selected reasoning level switch to another level; when no level is needed, use reasoningEfforts: false remove levels
CLIENT_UPGRADE_REQUIRED account model requires a newer client upgrade dsh to the required version as indicated by the error message
image rejected before sending model has not declared the image modality add input: [text, image] to the custom provider's model; DeepSeek direct uses inputModalities, and the model at the endpoint must actually support vision
provider rejected a request with images the model declared image capability that the endpoint does not actually provide remove image from the list granting it image capability, and start a new session