Preface¶
In the DeepSeek Harness (DSH) 0.2.0 series, the llm-pi-ai provider configuration has been tightened to schema and volatile paths. While directly modifying providers in settings.yaml is feasible, it lacks a unified graphical interface and struggles to simultaneously handle encrypted keys, remote model lists, thinking effort levels, OpenRouter routing rewrites, and smart fallback capabilities. Although there are independent plugins for OpenRouter in the community, models and routing are often scattered across different entry points.
Below is an introduction to dsh-model-ultra (npm package name same, GitHub: MrCashmere/dsh-model-ultra), released by maintainer MrCashmere. It is a static bundle plugin for DSH that adds a “Model Ultra” entry to the settings page, providing a complete set of UIs for llm-pi-ai providers from creation to observability. It is compatible with DSH >= 0.2.0-rc.1, supports both Web (dsh web) and Desktop applications, and the interface switches between Chinese and English following the DSH language settings.
What is this¶
dsh-model-ultra is positioned to take over the full lifecycle management of llm-pi-ai providers within DSH settings—CRUD, enable/disable, remote discovery, connectivity testing, per-model thinking effort, OpenRouter provider routing, smart routing, composite providers, health checks, and observability. When the plugin is uninstalled or disabled, it restores data as-is back to providers, avoiding configuration stranding in foreign keys known only to the plugin.
It is categorized as a model inference plugin. The current npm version is 2.0.2 (subject to package.json and README), licensed under MIT. This package was renamed from dsh-model-pro: the old package does not auto-migrate, so you must uninstall dsh-model-pro before installing dsh-model-ultra.
Compatibility Points¶
| Item | Description |
|---|---|
| DSH | >= 0.2.0-rc.1 |
| Node (Build) | >= 18 |
| Form | Web GUI / Desktop |
| Settings Entry ID | dsh-model-ultra (declared by cordis.patch.yml) |
DSH 0.2.0-rc.1 has two contract changes related to legacy plugins: the strict Typert codec requires codec.create().parse(); settings writes are restricted to volatile paths, and for llm-pi-ai, only providers is volatile. Therefore, this plugin’s extended state is stored in the plugin’s own settings entry and merged back to providers upon uninstallation.
Core Features¶
Providers & Credentials¶
- Provider CRUD: Guided three-step wizard for creation; card list with enabled (green) / disabled (amber) status; editable
baseURL,api,apiKeyEnv,displayName, and custom HTTP headers (authorization/api-keyare filled by the adapter). - Enable / Disable: Disabled providers move to the plugin-side
disabledProviders, hiding them from the model selector while retaining full configuration. - Keys: API Keys pasted in the GUI are written to the config using AES-256-GCM (ciphertext on the file side) and written to the DSH credentials service; the master key is stored in the credentials service and not regenerated, allowing old ciphertexts to be decrypted after reinstallation.
Model List & Thinking Effort¶
- Remote Discovery: Performs
GET /modelsfor providers; supports select all/invert; selected items can be “replaced” or “merged” into the explicit model list; “forwarding names” can be set for single models. - Thinking Effort: Route-level default levels (
off/minimal/low/medium/high/xhigh/max, etc.) and token budgets, compat fields; each model can “inherit catalog / non-reasoning / custom level”, where custom levels require filling in the online values sent to the gateway for each tier. After saving, an Effort bar appears in the chat box model selector; option names align with DSH levels, while actual request values are determined by “online values”, requiring no restart. - Explicit
modelslist is written back tomodels[i]; built-in catalog routing writes tomodelOverrides[id], avoiding narrowing the entire catalog into a handwritten list.
OpenRouter Provider Routing¶
Aligns with the capabilities of the reference plugin dsh-openrouter-providers v1.3.0: whitelist only or sequential order, 12-level quantization limits, optional HTTP-Referer / X-OpenRouter-Title / X-OpenRouter-Categories; the default active host openrouter.ai is customizable. At startup, it wraps globalThis.fetch, rewriting only JSON POST/PUT/PATCH containing model on the configured host, merging existing provider objects; fetch is restored upon uninstallation. One-click import from old plugin JSON or settings.yaml.imported is supported.
Smart Routing, Composite & Observability¶
- Smart Routing: Named routes (e.g.,
auto) aggregate models from multiple providers; policies includepriority,weighted,round-robin,min-latency,sticky; seamless fallback occurs before the first content chunk is produced if the preferred target is unreachable. - Composite Providers: Union or intersection of models from multiple providers; displayed in the selector as
composite / CompositeName::Model. - Health Checks & Observatory: Minimal real requests for
provider + model; in-session request logs and aggregated statistics by route/target; optionally displays actual servingprovider/modelbadges below the turn.
Connectivity & Uninstall Safety¶
The “Test” page initiates minimal real inference requests for selected models, returning latency, stop reason, and response content. Upon uninstalling or disabling the plugin, providers in disabledProviders are restored to providers, and the OpenRouter fetch wrapper is removed.
Installation & Activation¶
Installation commands follow the README original text.
Desktop: Open Settings → Plugins → Install, fill in the npm package name:
dsh-model-ultra
Web (CLI / Web GUI):
dsh plugin --profile web add npm:dsh-model-ultra
When used as a project dependency:
npm install dsh-model-ultra
The Host half is loaded at startup, so a restart of the Desktop app or dsh web process is required after installation. After successful installation, dsh-model-ultra will appear in the profile’s package.json dependencies, and dsh.profile.bundles will include this bundle.
For local debugging, use the plugin page to fill in absolute paths, or for the Web side:
dsh plugin --profile web add file:/path/to/dsh-model-ultra
Typical Usage¶
- After installing and restarting DSH, open the Model Ultra entry in settings.
- Use the wizard to Create Provider, complete
baseURLand protocol, paste API Key in the GUI (encrypted storage), and add custom request headers if necessary. - Fetch Remote Models on the model page, merging or replacing them into the list; configure forwarding names and Effort levels for models as needed, then verify in the chat input box’s model selector whether the Effort dropdown matches the preview after saving.
- If using OpenRouter, configure
only/order, quantization, and attribution headers in the corresponding block, and use the page’s shaping preview and request counts to confirm injection effectiveness. - For multiple upstreams, configure Smart Routing or Composite Providers, select
router / RouteNameorcomposite / ...in the model selector; view latency, fallback, and health check status in the observatory. - Perform a connectivity test on the target model on the “Test” page before sending a conversation.
When upgrading from dsh-model-pro: uninstall the old package first, then install dsh-model-ultra. The disabled list and settings entry ID need to be reconfigured or manually migrated in the new entry.
Scenarios & Precautions¶
Suitable for: Production or daily development environments using llm-pi-ai on DSH 0.2.0-rc and above, wanting to centrally manage multiple API providers in a graphical interface, and requiring thinking effort, OpenRouter routing, smart fallback, and observability.
Notes:
- The plugin runs with the permissions of the current DSH process, reading and writing config, credentials service, and wrapping global
fetchwhen OpenRouter features are enabled. Before installation, read the GitHub Source and the MIT license to ensure compliance with your security policies. - Smart routing fallback, health checks, and connectivity tests all initiate real API requests, which may incur costs and rate limits. Control the scope in the test page and routing configuration.
- The community directory SkillHub Plugin Page is an independent ecosystem site with no official affiliation with DeepSeek / High-Flyer; versions and stars are subject to what is displayed on each site at the time (directory clue stars are 0).
Conclusion¶
dsh-model-ultra consolidates the configuration, routing, and observability of llm-pi-ai providers under DSH 0.2.0 into a single settings entry, emphasizing zero-loss restoration upon uninstallation. For installation instructions and troubleshooting, please refer to the README:
- Directory Page: https://www.skillhub.cn/plugins/MrCashmere/dsh-model-ultra
- Source & Docs: https://github.com/MrCashmere/dsh-model-ultra
- npm: https://www.npmjs.com/package/dsh-model-ultra