KnyazevAI DSH Provider: Accessing KnyazevAI API Models

Introduction

DeepSeek Harness (DSH) adopts a plugin-based architecture, allowing developers to connect various model services through extension components. KnyazevAI is a standalone API service providing inference capabilities for various large models. This article explains how to add KnyazevAI’s models and routes to the DSH environment using the KnyazevAI DSH Provider plugin, enabling direct usage within the DSH Desktop or Web interface.

Plugin Overview

KnyazevAI DSH Provider is an npm package (@knyazevai/dsh-provider) designed to add support for the KnyazevAI API to DeepSeek Harness and its compatible clients (such as DSH Desktop).

  • Maintainer: knyazev741
  • License: MIT
  • Core Role: Adds the knyazev-ai route, presets commonly used models (e.g., deepseek-v4-flash), and provides compact settings for large contexts.

Core Features

  • Model Integration: Incorporates KnyazevAI’s models into the DSH list of selectable models.
  • Route Configuration: Automatically adds the knyazev-ai route.
  • Default Model: Uses deepseek-v4-flash by default for new sessions.
  • Agent Support: Supports invoking KnyazevAI models in subagent and subagent_fork.
  • Context Optimization: Offers compact setting options tailored for large contexts.

Installation and Setup

Plugin installation requires DeepSeek Harness version >= 0.1.5-rc.2.

1. Installation in DSH Web Environment

Execute the following commands in the terminal to add the plugin:

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

2. DSH Desktop Installation

  1. Open Settings → Plugin Market.
  2. Search for KnyazevAI DSH Provider and click Install. If prompted to restart after installation, please restart DSH Desktop.
  3. Open Settings → Models → KnyazevAI API.
  4. On this page, enter the API Key obtained from knyazevai.work.

Configuration and Usage

After installation, the plugin automatically handles routing and model mapping.

  • API Key Storage: The API Key is not stored within the npm package but resides in DSH’s credential system. In the Desktop interface, simply add it on the Models → KnyazevAI API page.
  • Default Session Configuration: For new sessions, the default Provider is knyazev-ai, and the default Model is deepseek-v4-flash.
  • Subagent Configuration: By default, subagent and subagent_fork inherit the route and model settings of the parent session, effectively using knyazev-ai/deepseek-v4-flash.

Important Notes and Updates

  • Not a Full Fork: This plugin does not install a full Harness fork nor does it replace DSH system packages. It functions merely as a patch to inject necessary routes and model configurations.
  • Manual Configuration Conflicts: Do not manually copy provider YAML files or add their contents redundantly to settings.yaml, as the bundle has already handled route injection automatically. Manually configured arrays take precedence over the plugin’s default configuration.
  • Update Behavior: Upon plugin update, the user-manually configured models array will not be overwritten. If configuration anomalies occur, it is recommended to fix them by clicking Fetch available models and then Adopt in the interface; this restores the Effort settings for DeepSeek and GLM while preserving manually configured rate limits.
  • Reasoning Settings: After updating, please check the reasoning settings in settings.yaml. Old reasoning configurations might erroneously affect MiniMax models.
  • Removed Models: Kimi 2.6 has been removed from the catalog as the KnyazevAI API no longer serves this model.

Summary

KnyazevAI DSH Provider is a lightweight integration solution suitable for developers who need to use KnyazevAI’s high-performance models directly for inference or agent development. Through the standardized DSH plugin mechanism, it achieves non-invasive model integration.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye