Introduction¶
When connecting multiple API channels in DeepSeek Harness (DSH), the native model selector tends to be “provider flat list + model flat list”: the same DeepSeek account may mix account pools with the official API; connecting a relay service like OpenRouter suddenly adds hundreds of models to the list, all crammed into a single scrollable layer. Finding a specific Claude or Qwen model costs linearly more time as the number of models grows.
The community plugin dsh-model-hub (maintainer: awawuming, category: Model Inference) does just one thing: it reorganizes the model list into a two-level “Channel → Family” directory, and provides a dropdown selector alongside the native control on the right side of the input box, sharing the same session model state. Below we introduce what it is, what it can do, and how to install and use it.
What Is This¶
dsh-model-hub is a Web client plugin for DSH (dsh.client.platform = web), current package version 0.1.0, license MIT. It inserts a Loader (id: model-hub) into the host via cordis.patch.yml, registers a slot at conversation.input.right on the right side of the conversation input area, and loads the build artifact lib/client.js.
The plugin does not take over the native single-slot model control (conversation.input.model); instead, it adds a parallel button displaying “current channel / current model”. Model data comes from the platform service modelDirectories: directoryFor(sessionId) provides a snapshot store along with load() / select({ provider, model }). The selection result flows through the same selectModel process consistent with the session, and the native control updates accordingly.
Core Features¶
Two-Level Menu and “All Models”¶
- Root panel (API channels): DeepSeek account, DeepSeek official, self-hosted relay, local Ollama, etc. each occupy one row, with type labels (
Account/Official/Relay/Local/Custom) and model counts. The current channel is marked with a checkmark. - Channel panel (model families): After entering a channel, models are grouped by family with sticky group headers. The family order follows a fixed list in the README (e.g., DeepSeek → OpenAI GPT → Anthropic Claude → Google Gemini → Qwen → … → Other).
- All Models (by category): Aggregated by family across all channels, with the owning channel indicated at the end of each row. Useful for browsing when you only know the family and are unsure which channel the model belongs to.
When relay services like OpenRouter have many model IDs, the README explains that this structure is easier to search than the native single-level flat list (actual experience varies depending on channel and model count).
Search and Selection¶
- Root panel: filters by channel name and model name; can directly match models.
- Channel panel: substring matching on model names, ignoring case and
-/_/.separators. - Clicking a model row submits it to the current session; clicking the currently selected model only closes the menu.
- Errors such as a session being occupied (e.g.,
session/writer-held) are displayed as Chinese prompts at the bottom of the menu, without silently discarding the operation.
Interaction and Implementation Constraints¶
The menu uses accessibility attributes such as role=menu and role=menuitemradio; it supports closing via outside click or Esc; the expansion direction prefers upward and is constrained within the viewport. Styles are injected via style[data-plugin-css=dsh-model-hub], relying only on react / react-dom provided by the host, with no additional npm runtime dependencies.
The classification logic is implemented in src/classify.mjs and inlined into lib/client.js at build time: on the channel side, it classifies based on provider name, baseURL, ollama/localhost rules, etc.; on the model side, it first looks at the OpenRouter-style vendor/model prefix, then falls back to ID keywords and channels. Unrecognized models are placed under other.
Installation and Activation¶
The DSH ecosystem adopts the “everything is a plugin” philosophy; the SkillHub directory page is a community collection with no official affiliation with DeepSeek / HF (HiFound). Before installing, please review the GitHub repository source code and MIT license yourself; the plugin runs with the permissions of the current DSH process. As with any DSH plugin, only install from sources you trust.
Method 1: Plugin Manager (Recommended)¶
The DSH “Plugins” page supports installing plugin packages from a local path or a git address. After installation, the profile configuration layer inserts the same id: model-hub record as manual patching, with the same effect as Method 2 below. The specific entry point and form depend on the DSH version UI you are using.
Method 2: Desktop Profile Local Link (Windows Example)¶
The desktop profile path given in the README is %USERPROFILE%\.dsh\profiles\desktop\. Given that the dsh-model-hub package has already been placed in a local directory (e.g., D:\开源文件\dsh-model-hub):
- Create a junction pointing the profile’s
node_modulesto that directory (the README example on Windows does not require administrator privileges):
cmd /c mklink /J "%USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-model-hub" "D:\开源文件\dsh-model-hub"
- Append to the end of
%USERPROFILE%\.dsh\profiles\desktop\cordis.patch.yml:
- insert:
- id: model-hub
name: dsh-model-hub
- The desktop client hot-reloads the profile (
dsh-hmr); after refreshing the browser page withCtrl+R, a “Channel / Model” button should appear on the right side of the input box.
The files published in the repository already include the pre-built lib/client.js. When mounted as described above, no need to run npm run build locally.
Uninstallation¶
Delete the junction and remove the above three-line insert configuration from cordis.patch.yml, then refresh the page.
Typical Usage¶
Click the “Channel / Model” button on the right side of the input box:
- Select an API channel in the root panel; the search box at the top can filter across channels directly by model name.
- After entering a channel, browse by family, or continue typing keywords to narrow down the list.
- Click a row → the menu closes, the current session model switches, and the native model control updates in sync.
- If you don’t know which channel a model belongs to, use “All Models (by category)” to find it by family, then confirm the source via the channel name at the end of the row.
After switching models, if you need to adjust the reasoning level (e.g., High) in the native control, do so in the native model control; this plugin’s menu does not provide reasoning level switching (a known limitation in the README).
Use Cases and Notes¶
Who it’s for
- DSH users who have configured DeepSeek accounts, official APIs, relay services (OpenRouter, etc.), or local Ollama simultaneously, have many model entries, and need to browse by channel and family.
- Developers who want an additional parallel quick-selection entry without modifying the native single-slot control.
Development and Verification Environment (README)
- Platforms: DSH Web / Desktop.
- Development and verification version: DeepSeek Harness
0.2.1-rc.2. - Dependency injection services:
slots,modelDirectories(built into the model selection UI), no additional plugins need to be installed.
Classification and Compatibility
- Classification is based on heuristic rules; niche models may fall under “Other”. Relay service ID variants (e.g.,
~openai/…,accounts/, Bedrock dot-separated IDs, etc.) are listed in the README as handled cases, but may still require updates as upstream IDs change. - To modify classification, edit
src/classify.mjs; the maintainer workflow isnpm test→npm run build→ refresh the page (HMR reloads based on the client bundle’s mtime).
Conclusion¶
dsh-model-hub condenses the lengthy flat model lists in DSH into a two-level “first channel, then family” menu, retaining search and cross-channel category-based views to address the selection pain points of multiple channels and multiple models (especially long relay service lists). For installation or contributing classification rules, visit the directory page awawuming/dsh-model-hub and the source repository github.com/awawuming/dsh-model-hub.