dsh-ofm-model-manager: DeepSeek Harness Global Model Management

DeepSeek Harness (DSH) adopts a plugin-based architecture that lets clients extend functionality through plugins. When dealing with many models, managing each model’s status and name directly in configuration files can be cumbersome. The dsh-ofm-model-manager plugin adds a model management panel to DSH’s settings UI, allowing users to enable/disable and rename models per provider directly from a graphical interface.

Core Features

The plugin adds a panel at the bottom of the Settings → Models page, providing the following capabilities:

  1. Model toggle & renaming: Each model has a toggle to enable or disable it independently. When you check “Custom name”, you can enter a display name that will replace the built-in name in the model selector without modifying the model ID.
  2. Multi-dimensional search: Supports exact-match search across name, custom name, model ID, description, and provider name.
  3. Status & filtering: Displays counts via status chips (All / Enabled / Region-restricted / Disabled) and provides a drop-down to filter by provider.
  4. Bulk actions: Buttons to enable or disable models in bulk based on the current filtered view.
  5. Immediate effect: Preferences are saved in the configuration file and applied immediately after changes; no page refresh or DSH restart is required.

Installation

Use the official DSH plugin install command to add this plugin. The desktop in the command is the profile name; replace it if you use a different profile.

dsh plugin --profile desktop add github:DeepseekDays/dsh-ofm-model-manager

After installation, fully exit DSH (including any processes in the system tray) and restart to ensure the new plugin is loaded correctly.

Typical usage

  • Disable models: Turn off the toggle for a model in the model panel; it will no longer appear in the chat window’s model selector or the /model dialog. If all models under a provider are disabled, that provider will also disappear from the selector.
  • Rename models: In the model panel, check “Custom name” and enter a new name. In the model selector, the name you enter will be shown instead of the original built-in name.

Technical implementation and notes

  • Mechanism: The plugin does not modify DSH’s core files. Instead, it wraps the model list at runtime by intercepting ctx.llm.listModels(), implementing display and filtering logic.
  • Coexistence: This plugin can coexist with the dsh-provider-toggle plugin. It does not depend on additional runtime libraries.
  • Routing impact: Disabling a model only affects the model catalog; it does not change existing session routing. Ongoing conversations continue to use their original model, while new sessions will not be able to select disabled models.
  • Configuration format: Preferences are saved using the provider|modelId format. If a modelId without a separator (e.g., deepseek-v4.1-flash) appears in the configuration, it is treated as a wildcard and matches models with the same name across all providers. Newer plugin versions prioritize exact matches, ensuring specific configurations take precedence over wildcards.

This plugin is maintained by DeepseekDays and distributed under the MIT license.

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

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

Xiaoye