dsh-model: Aggregating multiple models into a single OpenAI-compatible endpoint

Preface

When connecting models to DeepSeek Harness (dsh), it is common to have more than one source at hand: Codex bundled with ChatGPT Plus, Kimi coding plans, WorkBuddy credits, free keys for Gemini / Groq, and local Ollama. Each provider has different APIs and login methods, requiring separate configuration for every client; if a specific source is rate-limited or exhausts its quota, you have to manually switch to the next one.

The dsh-model introduced below (maintained by AIcivilization, GitHub: AIcivilization/dsh-model) consolidates these sources into a single OpenAI-compatible address and one key. dsh, Cline, Continue, Cherry Studio, and any tool supporting the OpenAI interface can use the same set of addresses and keys. The plugin is categorized as “Model Inference,” the npm package name is dsh-model, the version cited in the materials is 0.22.1, and the license is MIT; it requires Node ≥ 20 and DeepSeek Harness ≥ 0.2.0-rc.2, supporting Windows / macOS / Linux.

What is this

dsh-model runs a unified gateway locally (or on a VPS in conjunction with dsh-vps): it exposes an OpenAI-format /v1 externally and routes requests internally to various “Sources” (subscription OAuth, API keys, local models, WorkBuddy bridge, etc.). The engine is based on CLIProxyAPI (pinned to 8.0.13 in the materials), and the WorkBuddy protocol layer references dsh-workbuddy-connect.

It can be used without installing dsh: the command-line dsh-model manages all features. Once dsh is installed, it provides a graphical management page at Settings → dsh-model and syncs models into dsh’s provider configuration.

Core Features

Unified Access

  • Local default entry: http://127.0.0.1:8317/v1, with mandatory API key authentication (keys can be issued, rotated, and revoked individually per device).
  • Models are displayed grouped by source within dsh; other software uses the same address and key.
  • After setup on a VPS, it can additionally provide external access via https://<dsh domain>:9443/v1 (if no domain is available, the materials state that <IP>.sslip.io can be used).

Source and Cost Annotation

The sources cited in the materials include (the plugin only forwards connections; it does not provide quotas):

Type Examples
Free WorkBuddy, local Ollama / LM Studio
Free · Low Quota Gemini (Google AI Studio), Groq, OpenRouter (:free models), some small models on Silicon Flow
Paid DeepSeek Official, Codex (ChatGPT Plus / Pro), Kimi Code, Grok, Muse, Devin, OpenCode Zen, etc.
Hidden by Default Claude, Antigravity (marked as high-risk in materials)

The management page has toggles for each source; if not logged in, it guides the user to log in. Sources with no available plans will have their models hidden after testing, with activation instructions provided.

Failover and Combos

  • Combo Switching: Configure multiple models in order; automatically tries the next one upon rate limiting, quota exhaustion, or error. The external model name is combo/<id>.
  • Auto Switching: When the same logical model exists across multiple sources, you can use the “Auto Switch (Multi-Source)” group within dsh.

Check-in and Observability

  • Daily Check-in: Automatic check-in for the domestic version of WorkBuddy, Qoder, and Trae (can also be executed manually via dsh-model checkin).
  • Recent Failures: Failed requests from the last 24 hours (model, reason, suggestion; conversation content is not recorded).
  • Statistics: Success rate, latency, and speed by key, source, and model; plan usage and reset countdowns, credit expiration, etc., can be viewed on the management page.

Install and Uninstall

  • Global installation with one command; during uninstall, if dsh only wrote the provider and refs.DSH_MODEL_API_KEY and they were not manually modified, it will restore the dsh configuration byte-for-byte.

Installation and Activation

Official quick start (from the README; setup can be repeated for installation or repair):

npm install -g dsh-model
dsh-model setup

For use on a server with dsh-vps already installed:

sudo dsh-model setup

On Windows, simply run it in regular PowerShell or Command Prompt; the materials state that administrator privileges are not required.

setup performs the following steps in order: downloads and verifies the engine, starts it on 127.0.0.1:8317/v1 with mandatory key authentication; integrates WorkBuddy (does not ask for keys during installation; sources requiring keys are enabled on the management page); installs the management page into dsh and syncs models; and additionally opens the external HTTPS address on VPS.

You can also first install dsh-model from the dsh plugin market and use “One-click Install” in Settings → dsh-model. If the service is not installed, the page will explain the missing items and display the installation process.

After updating the npm package, you must restart dsh once for the new management page code to take effect; model and toggle changes do not require a restart.

Typical Usage

Managing in dsh

Path: Settings → dsh-model. Main sections include: Access Address (copy for local / external network), source toggles and usage, model selection (5 recommended per provider by default, others remain callable via the unified address), combo switching, auto switching, daily check-in, recent failures, API keys, model statistics, and About (Update / Uninstall).

Login is completed by dsh-model locally. The server does not need to install various CLIs, nor does it need a browser (some sources require opening a fixed address in a local browser and then “pasting from clipboard” the callback URL).

Command Line

Common commands (all support --lang zh|en and --json):

dsh-model sources                    # Source list and login status
dsh-model source enable <source>     # Enable source (login if required)
dsh-model key add <name>             # Add access key for this device
dsh-model combo add <name> <model...># Create combo failover
dsh-model status                     # Overview
dsh-model doctor [--e2e]             # Self-check
dsh-model failures                   # Recent failures and suggestions
dsh-model update                     # Update program, dsh plugin, and service
dsh-model uninstall                  # Uninstall

Configuration for other clients is the same as for the OpenAI API: fill in the Base URL with the local or VPS /v1 address, fill in the API Key with the key issued by dsh-model, and use model names listed in dsh or via dsh-model models (use combo/<id> for combos).

Architecture diagram (from the original materials):

dsh · Editor · Scripts ──Bearer key──▶ Engine 127.0.0.1:8317/v1 (Unique Entry)
                                      │      ▲ VPS: Caddy https://<dsh domain>:9443
             ┌────────────────────────┼────────────────────────┐
             ▼                        ▼                        ▼
   Subscription OAuth (Codex, Kimi...)   opencode/* (Your key)   workbuddy/* → dsh-model's bridge

Scenarios and Notes

Who it is for: Personal developers who wish to consolidate existing subscriptions, free quotas, and local models into a single OpenAI-compatible pipeline, and share the same configuration between dsh and other tools; scenarios requiring automatic source switching when rate-limited or quotas are exhausted.

Permissions and Security: The plugin and dsh-model service run under the current user (or permissions used during setup on VPS); a key is always required by default. Before installation, it is recommended to read the repository source code and the MIT license to assess whether it meets your compliance requirements.

Terms and Risks (Explicitly stated in README):

  • Intended for personal use; not suitable as a public service for external users.
  • Using subscriptions or WorkBuddy credentials outside of official clients may violate service provider terms and poses account risks; you must judge this yourself.
  • Sources like Claude and Antigravity are hidden by default; if Windows antivirus blocks it, add %USERPROFILE%\.dsh-model to trust and then run dsh-model repair.

The DeepSeek Harness ecosystem emphasizes “Everything is a plugin”; the community directory page for dsh-model on SkillHub is an independent site and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-model converges multi-source models into a single OpenAI-compatible entry point, offering visual management within dsh, reuse of the same address and key in command lines and other OpenAI clients, and support for combo failover, auto-switching, and usage observability. For further information, please refer to the GitHub repository and the SkillHub directory page.

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

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

Xiaoye