Introduction¶
After connecting multiple providers in DeepSeek Harness (dsh), the model selector next to the input box often stretches very long: models from different sources, region-restricted entries, or rarely used items all mixed together, requiring you to scroll through a long list every time you switch.
The official version doesn’t have a preference switch like “only show my frequently used models.” The community plugin dsh-plugin-model-whitelist (maintainer swyc520) does something different: it adds a “Model Display” panel at the bottom of “Settings → Models,” allowing you to check or uncheck individual models to control whether they appear in the selector menu. Unchecked models are hidden from the menu, but this doesn’t modify the provider configuration or the invocation chain.
The following sections introduce its positioning, installation method, daily usage, and why the implementation chose “projection” instead of replacing the official selector.
What Is This¶
dsh-plugin-model-whitelist is a client-side (web) plugin for dsh, with the npm package name @swyc520/dsh-plugin-model-whitelist, current version 0.2.0, licensed under MIT.
In one sentence: it adds a whitelist to the model selector—check the models you want to display in the settings page, and unchecked ones will disappear from the input box model menu.
It is not for disabling or uninstalling models. Hiding only affects the display of the selector menu; model definitions, provider settings, and request paths remain unchanged. With an empty whitelist, the behavior is identical to not having the plugin installed, and by default no models are hidden.
- Directory page: https://www.skillhub.cn/plugins/swyc520/dsh-plugin-model-whitelist
- Source code and documentation: https://github.com/swyc520/dsh-plugin-model-whitelist
Core Features¶
Settings Page “Model Display” Panel¶
The plugin registers a settings.models.footer slot at the bottom of the Settings → Models page, providing the “Model Display” panel:
- Lists the currently read models grouped by provider in cards, with the ability to uncheck individual models to hide them.
- Displays Showing N/M (visible count / total count) at the top.
- Five actions: Show All, Hide All, Expand All, Collapse All, Refresh.
Check state changes take effect immediately without needing to refresh the page. Hidden models still appear in the settings list and can be restored by checking them again.
Collapsing and Hiding Are Different¶
Clicking a provider card’s title row collapses/expands that group; the arrow and the count on the right side of the title (which shows the number of hidden items when applicable) will update. Collapse state is written to local storage and persists after refresh.
Collapsing is only for easier reading in the settings page and does not change which models are visible in the selector. When there are many providers, you can click “Collapse All” to fold them first.
Selector Side: Filtering the List, Not Replacing Official UI¶
The plugin does not take over conversation.input.model (this slot is marked as shadows-shipped-ui, and replacing it would affect the official menu, reasoning level, keyboard shortcuts, and failure notifications). Instead, it wraps getSnapshot of ctx.modelDirectories.catalog.store, performing a read-only projection on the snapshot so that the official component still renders its own interface, but the groups it reads contain fewer hidden models.
Therefore, the README clearly states: model menus, reasoning levels, keyboard operations, and failure notifications remain as they are in the official version.
Persistence and Default Values¶
The whitelist is stored in the browser’s local storage under the key dsh-model-whitelist/v1, isolated by browser and web address; it is not written to settings.yaml, nor is it uploaded. Clearing site data will remove the whitelist.
The plugin chooses to persist the “hidden set” rather than the “visible set,” so that models from new versions or newly connected providers are visible by default, avoiding silent hiding of new entries.
Installation and Activation¶
Command Line (Pure dsh web)¶
In the installation steps provided in the documentation, use the following commands (note the --profile web):
dsh plugin --profile web add @swyc520/dsh-plugin-model-whitelist
dsh --profile web --dump-config # Verify the plugin entry has been added to the configuration tree
Restart once after installation for dsh web.
Desktop / DSHEAC AIO¶
The desktop profile is exclusively owned by the Electron application, and the command-line dsh plugin add cannot write to the configuration. Installation should be done through the Plugin Manager within the application. If installing manually, the desktop profile does not allow link: dependencies or directory junctions; it must be a real directory.
The plugin runs with the current dsh process and frontend environment; before installation, you can check the source code and MIT license on GitHub.
Typical Usage¶
- Complete installation and restart
dsh web(or the equivalent desktop process). - Open Settings → Models, scroll to the bottom of the page to find “Model Display.”
- Uncheck models that you don’t want to appear in the menu; use “Show All” or check individual items to restore them when needed.
If the panel shows “No model list read yet,” first open the model selector once—the model catalog is loaded on-demand by the official model selector plugin, and this plugin reads the same data.
Models that are currently selected remain usable even if hidden; hiding only affects whether the menu lists the item.
Use Cases and Caveats¶
Suitable for: dsh users who regularly use a few specific models, want to shorten the selector list, but don’t want to modify provider configurations.
Boundaries in how it works (from README “Known Limitations”):
- The whitelist only affects the display of the selector menu and does not interrupt currently used models.
- Lazy-loaded provider models need to trigger catalog loading first (e.g., open the selector once) before appearing in the panel.
- Changing ports, switching browsers, or clearing site data will lose the whitelist and collapse state.
- There is no dedicated “hide entire provider group” button; “Hide All” applies to the entries already read in the panel. Collapsing cannot replace hiding.
Compatibility: The README documents that it has been tested on dsh 0.2.0-rc.2 (desktop @deepseek-ai/dsh-desktop 0.2.0-rc.2); it depends on the snapshot shape of ctx.modelDirectories.catalog.store and the settings.models.footer slot. If future versions change these public interfaces, the plugin may degrade to an empty panel or no filtering; the design tries to avoid breaking startup (there are fallbacks for activation failure paths). Not verified on the 0.1.x series.
The community directory SkillHub has no official affiliation with DeepSeek or High-Flyer; the DSH ecosystem emphasizes “everything is a plugin,” and this plugin is a client-side visibility preference tool within it.
Conclusion¶
When there are many models, using the settings page to check and collapse the menu is more convenient than repeatedly scrolling through a long list. dsh-plugin-model-whitelist achieves this with local whitelists and snapshot projection, without replacing the official selector UI.