Preface¶
When using OpenRouter in DeepSeek Harness (DSH), the model list is typically defined in the provider configuration of a profile. Since the set of “currently free” models on OpenRouter’s side fluctuates, relying solely on manual patching can result in an outdated list. This may also cause inconsistencies between the models available for selection and those actually available on OpenRouter.
dsh-openrouter-sync, published by community maintainer bosenok and categorized as a network tool, serves to synchronize the model list of the openrouter provider in DSH with OpenRouter’s currently free models. The following sections introduce its positioning, installation methods, and prerequisites for use.
What is this¶
dsh-openrouter-sync is a plugin for DeepSeek Harness packaged as a DSH bundle. The package.json declares dsh.bundle.patch, and cordis.patch.yml injects openrouter-sync related configuration into the currently active profile.
Plugin Description (consistent with the repository README): Keep the DSH openrouter provider model list in sync with OpenRouter’s currently-free models.
The current package version is 0.1.0, requiring DSH version >=0.2.1-rc.2 <0.3.0. The license is MIT.
Core Functionality¶
According to the repository, this plugin is host-side only logic:
- Every six hours, it fetches the current free model information from OpenRouter and rewrites the
modelslist for theopenrouterprovider within the current profile patch. - Running DSH applications can recompose the profile via HMR, eliminating the need for a manual restart just to update the list (though the documentation still suggests restarting when enabling the bundle to ensure the client side is also correctly rebuilt).
Beyond the synchronization mentioned above, the plugin does not introduce separate “business configuration items.” Whether the network synchronization can be completed depends on whether you have configured OpenRouter and an API Key (see the next section).
Installation and Enabling¶
The installation command must follow the syntax in the README. Choose one based on your usage scenario.
Desktop Application
Install github:bosenok/dsh-openrouter-sync from the Plugins page. If the repository is private, ensure your local machine has git access permissions. After installation, enable the bundle.
CLI (Specify Profile)
dsh plugin --profile <profile> add github:bosenok/dsh-openrouter-sync
Local Directory
dsh plugin --profile <profile> add file:/path/to/dsh-openrouter-sync
The plugin is mounted only after the bundle is enabled; HMR applies to running applications.
Note regarding the desktop profile
For the application-managed desktop profile, executing dsh plugin --profile desktop add only installs dependencies and copies the package; it does not automatically enable the bundle as it does for standard profiles. You need to do one of the following:
- Add the package name to
dsh.profile.bundlesin~/.dsh/profiles/desktop/package.json; - Or enable it on the Plugins page of the desktop client.
For other profiles, installed bundles are generally automatically enabled after installation.
API Key & OpenRouter Configuration¶
Synchronization relies on access to OpenRouter. The host-side resolution order for OPENROUTER_API_KEY is:
- Harness credential service;
- Process environment variables;
~/.dsh/.credentials.yaml.
If there is no Key, models for the provider may still be listed (provided the provider is configured in the standard way), but the synchronization step will be skipped. Apart from configuring the OpenRouter provider or providing OPENROUTER_API_KEY via credential storage or the environment layer, the README does not require any additional plugin-specific configuration.
Use Cases and Notes¶
Who is it for
- Users who are already using the
openrouterprovider in their DSH profiles and want the models list to regularly align with OpenRouter’s currently free models, thereby reducing the manual effort of maintaining patches.
Things to know before using
- The plugin runs with the permissions of the current dsh process and will periodically access the network and rewrite profile patches. It is recommended to review the source code and the MIT License on the GitHub repository before installation.
- The entry on the community plugin directory SkillHub has no official affiliation with DeepSeek or Hunyuan. The DSH ecosystem adheres to the principle of “everything is a plugin.” The information in this article is based on the repository README and package metadata.
Conclusion¶
dsh-openrouter-sync binds “OpenRouter’s currently free models” to the models list of the openrouter provider in DSH, using scheduled synchronization and HMR to alleviate the burden of manually updating the list. For further information on categorization and descriptions, please refer to the directory page; for installation and behavioral details, the GitHub repository is authoritative.
- Directory Page: https://www.skillhub.cn/plugins/bosenok/dsh-openrouter-sync
- GitHub: https://github.com/bosenok/dsh-openrouter-sync