Introduction¶
In DeepSeek Harness (DSH), when an Agent performs web searches via ctx.web, it defaults to the built-in provider @deepseek-ai/dsh-web-search-deepseek. This implementation hardcodes the model to deepseek-v4-flash and only interfaces with DeepSeek’s official Anthropic-compatible endpoint (https://api.deepseek.com/anthropic/v1). Consequently, it does not follow the model selected in the Web UI and consumes quota solely from the official DeepSeek API.
If you have already configured ClinePass or another OpenAI-compatible gateway on the “Models” page and wish for web search to share the same routing as the main conversation—utilizing the gateway’s vendor-side search tools (e.g., vercel:perplexity_search)—you need to switch the ctx.web search provider. The following section introduces the community plugin dsh-web-search-clinepass (maintained by qujinting), which is categorized as a “Web Tool” in the DSH plugin directory.
What is this¶
dsh-web-search-clinepass is a DSH plugin that registers a ctx.web search provider with the id clinepass, replacing the built-in DeepSeek-specific implementation. Search requests are sent to your configured OpenAI-compatible gateway (such as ClinePass), meaning they do not consume your official DeepSeek API key quota, nor do they inject search rounds into the main conversation context.
Repository: https://github.com/qujinting/dsh-web-search-clinepass
Directory Page: https://www.skillhub.cn/plugins/qujinting/dsh-web-search-clinepass
The current package version is 0.3.2, licensed under MIT, with a runtime requirement of Node ≥ 22.
Core Functions¶
Upon installation, the plugin utilizes the bundled cordis.patch.yml to perform two actions: it sets web.searchProvider to clinepass and inserts the web-search-clinepass component. Simply “registering a new provider” is insufficient—since @deepseek-ai/dsh-base hardcodes searchProvider to deepseek-official by default, an explicit switch via patch is required.
The general flow of a search request is as follows:
- Read the actual
provider/modelused for this step from the current session request headers; - Parse the route’s
baseURLandapiKeyEnvfrom thellm-pi-aiconfiguration (consistent with the Web “Models” page); - Initiate an OpenAI-compatible request to
{baseURL}/chat/completions, including the gateway’s vendor-side search tools in thetoolsparameter (four types are available by default, such asvercel:perplexity_search); - Parse the
Sources:section at the end of the model’s response and convert it into the source list required byctx.web.
The built-in web-search-deepseek remains in the system but is no longer the default selection; it can be reverted to the official provider if needed.
Installation and Activation¶
Choose a path based on your dsh version. Both paths install the same bundle; the difference lies in who modifies the profile manifest and where the configuration entry is located post-installation. A restart of dsh is required for the installation to take effect (bundles are assembled at startup). You can use dsh --profile web --dump-config to view the assembled result without starting the service.
dsh 0.1.7 and later (including 0.2.0, with built-in plugin manager)¶
Install from npm (replace the profile name according to your environment; desktop is common for desktop versions):
dsh plugin --profile web add dsh-web-search-clinepass
Install from a local checkout (the example path is from the README; please replace it with your directory):
dsh plugin --profile web add file:D:/project/qujinting/dsh-plugin/web-search
Additional notes (all from the README):
- Starting from 0.2.0-rc.2, the
dshcommand is bundled with the desktop version; on first use, click “Manage dsh command” in the menu bar to add it to the PATH. - The plugin manager uses pnpm to wrap the package into
<DSH_HOME>/profiles/web/node_modulesand appends the package name to that profile’sdsh.profile.bundles(a backup ofpackage.jsonis created before installation). - Configuration entry: Left sidebar “Plugins” → Installed →
dsh-web-search-clinepass→ “Configure” on theweb-search-clinepasscomponent row. - Uninstall:
dsh plugin --profile web remove dsh-web-search-clinepass.
dsh 0.1.5¶
Execute the following in the plugin directory:
node install.mjs --profile web
dsh --profile web --dump-config
dsh web
install.mjs creates a directory junction at <DSH_HOME>/profiles/web/node_modules/dsh-web-search-clinepass pointing to the plugin directory and updates dsh.profile.bundles. For development, simply refresh the browser or restart the host after modifying the repository code; there is no need to re-add. Configuration is located at Settings → Plugins → Plugin Config and is written to the web-search-clinepass: section of <DSH_HOME>/settings.yaml. Uninstall: node install.mjs --profile web --uninstall.
Configuration Points¶
Settings namespace: web-search-clinepass. No changes are needed for most scenarios: when the session model uses an OpenAI-compatible gateway like clinepass, the endpoint and credentials are automatically resolved from llm-pi-ai.providers.<route> (using settings.get for dsh 0.1.5 and settings.describe() for 0.1.7+).
| Field | Default | Description |
|---|---|---|
enabled |
true |
If disabled, the provider reports as unavailable |
tool |
vercel:perplexity_search |
Gateway-side search tool id; four options available |
provider / model |
empty | If not empty, the route is fixed and will not follow the UI |
baseURL / api / apiKeyEnv / apiKey |
empty | If not empty, the endpoint and credentials are fixed |
timeoutMs |
90000 |
Timeout for a single search |
maxTokens |
8192 |
Output limit for the search round; too small may truncate the trailing Sources: |
maxSources |
10 |
Maximum number of sources to return |
All four server-side search tools listed in the gateway’s Chat Completions documentation can be switched by changing tool; specific pricing and required parameters are detailed in the “Tool Selection and Cost” section of the repository README.
Unavailable errors on dsh 0.1.7+¶
If version 0.3.0 on dsh 0.1.7 only uses settings.get to read llm-pi-ai, it causes available() to always return false, resulting in the search error: configured web provider "clinepass" is registered but unavailable. Since 0.3.1, support for describe() has been added simultaneously. If you cannot upgrade the plugin immediately, you can temporarily pin the provider, model, baseURL, apiKeyEnv, etc., for web-search-clinepass in the profile’s cordis.patch.yml (see README examples); after upgrading to 0.3.1, simply delete that section to resume following the session model.
Typical Usage¶
- Configure the OpenAI-compatible gateway (e.g., ClinePass) and environment variables (e.g.,
CLINEPASS_API_KEY) on the DSH Web “Models” page. - Install dsh-web-search-clinepass into the corresponding profile using the commands above and restart dsh.
- Trigger a web search in an Agent or workflow supporting
ctx.web; the provider should already beclinepass, and the search will use the current session model and the selectedtool.
There is no need to write separate invocation code: the plugin replaces the web search provider within the Harness internally. The behavior remains consistent with the built-in search tool integration, except the backend routing and billing account are switched to your gateway.
Applicable Scenarios and Notes¶
Who it is for: Teams or individual developers who are already using OpenAI-compatible gateways like ClinePass or Vercel AI Gateway as their main model in DSH, wish to route web searches through the same path as the main conversation, utilize gateway-native search tools, and want to avoid being locked into the DeepSeek official flash model.
Permissions & Security: The plugin runs under the permissions of the current dsh process and will read API configurations from llm-pi-ai routes and environment variables. You should review the repository source code and the MIT license before installation to ensure compliance with your requirements. The community directory SkillHub has no official affiliation with DeepSeek or High-Flyer; the DSH ecosystem emphasizes “everything is a plugin,” and this article introduces a third-party maintained web tool plugin.
Version Compatibility: The same npm package supports both dsh 0.1.5 and 0.1.7+ (including 0.2.0-rc.2, which behaves consistent with 0.1.7 regarding settings). The persistence location for settings differs by version (settings.yaml vs. cordis.patch.yml under the profile); refer to the README comparison table for details.
Conclusion¶
dsh-web-search-clinepass changes ctx.web from “DeepSeek official fixed model” to “current session model + gateway vendor-side search tools,” and correctly switches the default searchProvider via bundle patches. If you are selecting a DSH web plugin on SkillHub or GitHub, this is a great place to start:
- Directory Page: https://www.skillhub.cn/plugins/qujinting/dsh-web-search-clinepass
- Source Code & Full Configuration Instructions: https://github.com/qujinting/dsh-web-search-clinepass