MoFeng2223/dsh-claude-provider

dsh-claude-provider

Custom Claude provider support for DeepSeek Harness

未分類anthropicclaudedeepseek-harness

DSH Claude Provider

English | 简体中文

DSH Claude Provider adds a dedicated Claude configuration interface to DeepSeek Harness. You can add multiple Claude providers, choose reasoning levels for each model, and automatically fetch model lists and fill in capacity settings and reasoning presets for common Claude models, without editing configuration files manually.

Compared with the official generic custom provider form, the plugin adds a dedicated Claude entry, a per-model adaptive thinking toggle, and automatic defaults for known Claude models. DeepSeek Harness handles the saved reasoning configuration natively.

What this plugin does

  1. Adds a dedicated Claude provider type

Open Settings → Models → Add model provider → Claude provider to use the dedicated Anthropic Messages form.

  1. Adds a per-model adaptive thinking toggle

Adds an Adaptive thinking toggle for each model alongside DSH's existing reasoning-level settings. Reasoning levels and their corresponding API parameter values remain customizable.

For Anthropic-compatible models that support adaptive thinking. When enabled, the model adjusts its thinking based on task complexity and your selected reasoning level. When disabled, it uses the thinking token limit associated with that level.

On save, the plugin writes each model's reasoning levels and adaptive thinking settings to DeepSeek Harness's native configuration.

  1. Supports paginated Anthropic model discovery

The plugin fetches model lists through an Anthropic-compatible GET /v1/models endpoint, follows the returned cursors to retrieve subsequent pages, and deduplicates the results.

  1. Fills known Claude model defaults after discovery

When a discovered model matches a recorded Claude model ID, the plugin automatically fills its context window, maximum output length, and reasoning-mode set. Models entered manually remain fully editable and are not overwritten by this lookup.

  1. Leaves every other provider unchanged

Discovery, defaults, and reasoning controls are limited to Provider IDs explicitly created as Claude Providers. DeepSeek Harness's built-in providers and ordinary custom providers keep their original behavior, even when they use anthropic-messages or expose a claude-* model ID.

Install

Published package

For the browser interface, install the plugin into the Web profile:

npx @deepseek-ai/dsh plugin --profile web add @mofeng2223/dsh-claude-provider

Restart the corresponding DeepSeek Harness process after installation.

From source

Clone, build, and package the repository first:

git clone https://github.com/MoFeng2223/dsh-claude-provider.git
cd dsh-claude-provider
npm install
npm run build
mkdir -p dist
npm pack --pack-destination dist

Install the generated package into the Web profile:

npx @deepseek-ai/dsh plugin --profile web add ./dist/mofeng2223-dsh-claude-provider-*.tgz

Uninstall

npx @deepseek-ai/dsh plugin --profile web remove @mofeng2223/dsh-claude-provider

Uninstalling the plugin does not delete official model settings or stored credentials. Existing Claude providers remain ordinary custom anthropic-messages providers, and their saved reasoning levels and adaptive thinking settings remain effective. The dedicated Claude add/edit interface, paginated model discovery, and automatic defaults are no longer available; the official model discovery feature remains available.

DSH 0.1.7 upgrade and configuration migration

This version targets DSH 0.1.7-alpha.2.

1. The new DSH version is not installed yet

Stop DSH, update DSH and the Claude plugin, then start DSH. On its first launch, the new DSH version attempts to migrate the old settings.yaml into the current Profile.

2. The new DSH version is installed but has not been run

Migration has not started yet. Update the Claude plugin and any other plugins requiring compatibility updates before starting DSH. DSH attempts to migrate the old Settings configuration on its first launch.

3. The new DSH version has already been run

DSH has already attempted automatic Settings migration, and some settings may have migration issues.

For this plugin, the possible impact is limited to missing Claude provider type markers. Model configuration and operation are unaffected by the missing markers.

License