Introduction¶
In DSH (DeepSeek Harness), web search capabilities can be integrated via the provider interface of the web seam. dsh-web-search-anysearch uses AnySearch’s POST /v1/search REST API as the search backend and provides an independent Web settings section. It is maintained by mcxianyujun, licensed under MIT, and versioned at 0.1.1.
What is this¶
This is a native DeepSeek Harness WebSearchProvider with id anysearch, attached to ctx.web. It calls AnySearch’s native POST /v1/search, not the /mcp JSON-RPC bridge, and does not require patching the Harness core.
Core Features¶
- Native
WebSearchProvider(id: anysearch) overctx.web - Calls AnySearch
POST /v1/searchREST API - Provides an independent Web settings section, separate from the DeepSeek search provider
- Uses independent credentials:
ANYSEARCH_API_KEYand field-referencedANYSEARCH_*, does not reuse DeepSeek provider keys - API keys are saved by the DSH credentials service, not written to settings documents
- Preserves source information: complete mapping of
url,title,snippet, and deduplication by URL - Supports configuration of
Max Results(1–20),Zone(cn/intl),Language,Format(json/markdown), andBase URL - Supports Web profile (GUI + settings section)
- Supports Headless profile (CLI / automation)
- Provides structured, non-fabricated error handling, covering
401/403,429, network, JSON, and exception response packets - Provides minimal zero-network unit tests
- Does not require patching the Harness core
Installation and Activation¶
Requirements¶
- DeepSeek Harness with
weband/orheadlessprofile - Build steps require Node.js
>= 20andpnpm - AnySearch API key is optional for low-frequency anonymous use; recommended for reliable access
Web Profile Installation¶
Execute the following under the Web profile:
dsh plugin --profile web add dsh-web-search-anysearch
This command installs and registers the dsh-web-search-anysearch plugin.
Enabling Search¶
After installation, fill in the AnySearch API key and related configuration in the Web settings section. The API key is saved by the DSH credentials service and will not be written to settings documents.
Windows Installation Path¶
The PowerShell installer only modifies the target profile’s package.json and cordis.patch.yml and backs up these two files first; executing it repeatedly is idempotent and will not add duplicate entries.
Typical Usage¶
The following queries can trigger searches requiring external information:
- “How is the weather in Beijing today?”
- “What are the latest release notes for Go?”
- “Search for recent DeepSeek Harness plugins”
The returned results will preserve url, title, and snippet metadata and be deduplicated by URL.
Applicable Scenarios and Notes¶
This plugin is suitable for developers who need to integrate AnySearch within DSH’s Web profile or Headless profile. Pay attention to the following points before use:
- The plugin runs with the current DSH process permissions; check the source code and MIT license before installing.
- The plugin initiates external requests to AnySearch; if more stable access is needed, configure the API key.
ANYSEARCH_API_KEYis saved via the DSH credentials service and is not written to settings documents.- DSH CLI remove will remove npm dependencies and bundle registration, but will not delete user-written
cordis.patch.ymloverride entries.
Resources¶
- Community directory: mcxianyujun/dsh-web-search-anysearch
- GitHub: mcxianyujun/dsh-web-search-anysearch