58API Help Center58API Help Center
User GuideAI ApplicationsAPI DocumentationHelp & Support

DeepSeek Harness - 58API Configuration Tutorial

Add 58API custom provider in DeepSeek Harness Web UI, configure Responses protocol and DeepSeek model

DeepSeek Harness(dsh) is DeepSeek AI’s open source Agent Harness. This tutorial shows how to add a 58API custom provider to its web UI and use deepseek-v4.1-flash、deepseek-v4-flash and deepseek-v4-pro。

Developer Preview

DeepSeek Harness is still in the developer preview stage, and the official clearly indicates that there may be subsequent changes that damage compatibility. If the interface text is slightly different, please follow the path "Settings → Model → Add Model Provider → Custom Model API".

Configuration quick check

DeepSeek Harness configuration itemsFill in the content
Provider IDapi
display name58API
API addresshttps://api.58api.net/v1
API protocolOpenAI Responses(The configuration file is saved as openai-responses)
API keyAPI Key created in 58API console
Modeldeepseek-v4.1-flash、deepseek-v4-flash、deepseek-v4-pro

Provider ID must start with a lowercase letter. It will write the request route, saved session and credential references, do not change them after saving. The display name only affects the interface display and can be filled in 58API。

Preparation before use

  1. Install Node.js.
  2. Register and log in to 58API and confirm that the account has available balance.
  3. Create an API Key in the 58API console.
  4. Confirm that the current API Key can use the DeepSeek model to be added.
  5. Prepare a test project directory. DeepSeek Harness can read and modify selected workspace files, so a project that is easily rolled back is recommended for first testing.

It is recommended to create a separate API Key for DeepSeek Harness and set the quota or access scope as needed. Do not include the complete key in tutorials, screenshots, project files, or chat messages.

1. Start DeepSeek Harness Web UI

Open a terminal in the project directory prepared as a workspace and run the official startup command:

npx @deepseek-ai/dsh web

After the command is started, the Web UI address will be printed. The default is usually:

http://127.0.0.1:3080

Open this address in your browser.dsh The directory where the startup command is located will be used as the default file system location, but the new Web UI still requires you to select the workspace in the interface.

2. Obtain 58API key

Go to the API Keys page of the 58API console, create or select an existing key, and copy the API Key.

Copy API Key in 58API console

The API Key should only be pasted into the provider configuration window of DeepSeek Harness. Do not save the key to the project repository.

3. Add 58API custom provider

  1. Click "Settings" in the lower left corner of DeepSeek Harness.
  2. Go to "Models".
  3. Click "Add Model Provider".
  4. Switch to "Custom Model API" at the top of the pop-up card (the card that opens by default is "Third-Party Model Provider", do not select openai there).
  5. Fill in the provider information according to the table below, and click "Create Provider" after adding the model directory.
FieldFill in the valueillustrate
Provider IDapiLowercase and do not change after saving
display name58APIUsed for model list group display
API addresshttps://api.58api.net/v1Fill in the base address and do not splice additional interface paths.
API protocolOpenAI ResponsesConfiguration file is saved as openai-responses
API keyYour 58API API KeyPaste the complete key without spaces before and after it

Configuring 58API custom provider in DeepSeek Harness

The screenshot is the old version of the interface, in the picture deepseek-v3.2 No longer available; please refer to the text for buttons, protocol options and models.

The key in the picture above has been obscured by the interface. DeepSeek Harness officially states that after saving the key, it will only return the desensitization description and will not redisplay the plaintext key on the settings page.

4. Add model directory

Add the following models in the "Model Catalog" in the same configuration window. The model ID and display name can be filled in with the same value first:

Model IDdisplay name
deepseek-v4.1-flashdeepseek-v4.1-flash
deepseek-v4-flashdeepseek-v4-flash
deepseek-v4-prodeepseek-v4-pro

The model name must exactly match the model name currently provided to your account by 58API, including case, hyphens, and version suffixes. Do not fill in a numeric ID or rewrite the model name yourself.

If only some of the models are open to your account, only add the models that are actually available. Can be re-edited later 58API The provider adds or deletes models.

Enable image input

DeepSeek Harness treats custom models as text-only by default. Without image input enabled, attached or read images are not sent to the model (does not declare image input).

For deepseek-v4.1-flash:

  1. Expand Custom settings → Model options in the model catalog.
  2. For deepseek-v4.1-flash, check both Text and Image under input types.
  3. Save the provider, start a new session, then test with an image.

Only enable Image for models that support it.

Or in cordis.patch.yml:

models:
  - id: deepseek-v4.1-flash
    input: [text, image]

Enable reasoning effort levels

Custom models have no reasoning levels configured by default. The input bar therefore offers no effort selector, and requests omit the reasoning parameter. The model follows its own default behavior (DeepSeek models reason by default). To control reasoning effort explicitly:

  1. Expand the model row in the model catalog to open Model options.
  2. Enable Reasoning levels. The initial levels are off, low, medium, and high; use Add level to add xhigh or max if needed.
  3. Keep each API parameter value equal to its level name; leave the value for off empty.
  4. Save the provider and start a new session. Click the model name below the input box and choose a specific reasoning level.

The following client behavior applies to DeepSeek Harness 0.2.2, the OpenAI Responses protocol, and deepseek-v4.1-flash. Recheck it after upgrading the client:

  • Low, Medium, High, and other explicit levels send the corresponding effort, such as high.
  • Off sends none, disabling reasoning.
  • Once reasoning levels are enabled, Default also sends none and disables reasoning. Select an explicit level when you want reasoning; Default does not preserve the model’s default reasoning behavior in this client version.

Effort values include none, low, medium, high, xhigh, and max. Configure only values actually supported by the selected 58API model; other models may support different levels.

For direct configuration, add reasoningEfforts to the model entry in cordis.patch.yml, at the same indentation level as input:

models:
  - id: deepseek-v4.1-flash
    input: [text, image]
    reasoningEfforts:
      off: null
      low: low
      medium: medium
      high: high
      xhigh: xhigh
      max: max

5. Save and confirm provider

After clicking "Create Provider" to save the configuration, return to "Settings → Model". The list should appear named 58API custom provider and displays a green available status.

DeepSeek Harness has successfully added 58API providers

The screenshot is the old version of the interface. The current version only has one "Add Model Provider" entrance, please refer to the text.

if not seen 58API, click "Edit" of the provider, or re-create it through "Add Model Provider → Custom Model API" and check whether the Provider ID, API address, protocol, key and model directory have been completely saved.

6. Select 58API model

Close the settings window and create a new session. Click the model name at the bottom of the input box, in the model list 58API Select the model you want to use in the group.

Select the 58API model in the DeepSeek Harness model list

When configured correctly, you can see:

  • deepseek-v4.1-flash
  • deepseek-v4-flash
  • deepseek-v4-pro

Selecting a model also sets it as the default model for new sessions. Old sessions that have sent requests will continue to retain their own recorded models; after switching providers or models, it is recommended to create a new session for testing.

7. Select a workspace and test

  1. Click "Select workspace".
  2. Add and select the project directory to be tested.
  3. Create a new session and confirm that Yes is selected at the bottom 58API Models under groups.
  4. First send a read-only task:
请概括当前项目的目录结构,先不要修改文件,也不要运行安装命令。

After confirming that normal recovery is possible, test a modification task with a clear scope and easy rollback. DeepSeek Harness can read and edit workspaces, run commands, and invoke plug-ins. You should pay attention to each permission confirmation prompt when using it for the first time.

8. Verify the request on 58API

Open the 58API console, enter "Usage Log", and confirm that the request record just now appears.

Verify request in 58API usage log

Key points to check:

  • The request uses the model just selected;
  • Status successful, no continuous retries;
  • The token and fee are consistent with the scale of the test task;
  • The request time is consistent with the DeepSeek Harness test time.

Verification Checklist

  • 58API Already shown in the model provider list;
  • Provider status is normal;
  • Three models, or models actually available for the current account, have been added to the catalog;
  • For image input, Image is enabled for deepseek-v4.1-flash under input types;
  • For explicit reasoning control, reasoning levels are enabled and a specific level is selected in a new session;
  • New sessions can be started from 58API Group selection model;
  • Simple read-only tasks can be restored normally;
  • Models that require Agent capabilities can call tools according to permission policies;
  • 58Corresponding requests appear in API usage logs.

FAQ

No reasoning selector, or Default does not reason

Without reasoning levels enabled, DeepSeek Harness omits the reasoning parameter and the model uses its own default behavior. Follow Enable reasoning effort levels, save the provider, and start a new session before selecting a level below the input box. In the 0.2.2 client described above, enabling the feature makes both Default and Off send none. Choose Low, Medium, High, or another explicit supported level to enable reasoning.

Prompt 401, authentication failed or MISSING_CREDENTIAL

Copy the API Key from the 58API console again and check whether there are spaces or newlines before and after the key. Confirm that the key is not disabled, the credit is available, and has been saved in 58API in custom providers.

hint UNKNOWN_MODEL or the model does not exist

Return to 58API to view the model names actually available in the current account, and then fill in the name as it is in the model directory. Do not fill in a numeric ID, Chinese display name, or an alias you created yourself.

If the model directory is modified, please create a new session and test again. The old session will retain the previously recorded model.

Returns 404 or the interface is incompatible

Check the following two items:

  • The API address should be https://api.58api.net/v1;
  • API protocol should be OpenAI Responses(In the configuration file it is openai-responses)。

Do not repeat after the API address /responses. Fill in the base address in the address field, and the specific request path is generated by DeepSeek Harness according to the protocol.

If you change your choice Anthropic Messages protocol, DeepSeek Harness will automatically splice /v1/messages, the API address needs to be changed to https://api.58api.net(without /v1)。

58API provider not found after saving

Verify that you clicked Add Model Provider and switched to Custom Model API, added at least one model, and clicked Create Provider. Provider ID must start with a lowercase letter; if you need to modify the saved Provider ID, you should delete the old provider and add it again.

Models can reply, but cannot modify code or call tools

First confirm that you have selected the workspace and check the permissions policy and operation approval of DeepSeek Harness. The success of ordinary dialogue does not mean that the model is necessarily suitable for Agent programming; the model and protocol also need to correctly support tool calls.

After switching models, old sessions still use the original model

This is the session behavior of DeepSeek Harness: sessions that have already sent requests retain the model recorded in the log. Create a new session and select again 58API Just model.