Introduction¶
DeepSeek Harness (DSH) ships with built-in web_search and web_fetch tools; the actual retrieval and scraping are performed by providers registered on the ctx.web seam. The default web-search-deepseek relies on the upstream implementation of Anthropic’s web_search_20250305 server-side search tool and returns web_search_tool_result blocks.
9router is an OpenAI-compatible gateway: it exposes that tool definition to the model as a regular function rather than executing the search server-side, so it cannot independently provide the same form of “native search” as the default provider. If you route the model through 9router in DSH and still want the Agent to perform web searches and fetch pages, you need to connect DSH’s web capabilities to 9router’s own /v1/search and /v1/web/fetch endpoints.
Below is an introduction to the community plugin dsh-web-search-9router (maintainer rebron1900, repository rebron1900/dsh-web-search-9router). It registers the provider 9router on DSH’s web seam, directly invokes the aforementioned endpoints, and maps responses to the WebSource and WebFetchBody types that DSH expects.
What Is This¶
dsh-web-search-9router is an ESM plugin targeting DSH >=0.2.0-rc.2 (currently published version 0.2.4, MIT license). It introduces no additional build step and is implemented in pure JavaScript.
The data flow can be summarized as follows:
web_search / web_fetch (DSH native tools)
│
▼
ctx.web seam
│ provider = "9router"
▼
dsh-web-search-9router
├── search → POST {baseURL}/search → WebSource[]
└── fetch → POST {baseURL}/web/fetch → WebFetchBody
│
▼
9router gateway
Comparison with the default solution is as follows (based on the repository README):
web-search-deepseek (default) |
9router (this plugin) | |
|---|---|---|
| Dependency | Anthropic web_search_20250305 server-side tool |
Any 9router-compatible gateway |
| Works with 9router | No | Yes |
| Search | Provided via model-side tool chain | POST /v1/search |
| Fetch | Provided via model-side tool chain | POST /v1/web/fetch |
Core Features¶
Search Provider¶
When DSH invokes the native web_search, the plugin sends a request to 9router’s search endpoint and returns a deduplicated list of WebSource objects (including fields such as title, snippet, and published date).
Fetch Provider¶
web_fetch is forwarded by the plugin to 9router’s web fetch endpoint, returning cleaned text or markdown body (WebFetchBody).
Configuration and Credentials¶
The plugin provides a form on the bundle detail page: you can configure the base URL, search/fetch model names, maximum number of results, timeout, etc. API Keys are written through the DSH credentials service, with the default credential reference being NINE_ROUTER_API_KEY; keys are not stored in plaintext in the plugin settings.
Error Behavior¶
Failures are exposed via routable WebError codes (e.g., WEB_PROVIDER_ERROR, WEB_PROVIDER_CREDENTIAL_MISSING, WEB_ABORTED). Non-2xx responses from fetch are returned as results rather than silently throwing errors.
Environment Requirements¶
- DSH:
>=0.2.0-rc.2 - Node.js:
>=20
Installation and Activation¶
1. Install the Plugin¶
In the command given in the README, the profile is web:
npx @deepseek-ai/dsh plugin --profile web add github:rebron1900/dsh-web-search-9router
If you need to pin a specific version, you can append a release tag after the GitHub source, for example:
npx @deepseek-ai/dsh plugin --profile web add github:rebron1900/dsh-web-search-9router#v0.2.4
2. Enable the Bundle¶
After installing and enabling the bundle, search and fetch will automatically use the provider 9router. Disabling the entire bundle in Plugins will restore the provider selected by the remaining configuration layers (typically deepseek-official and http).
If you have previously explicitly specified a web provider in profile, home configuration, or launch overrides, the higher-priority selection will still take effect. To let the bundle become the dominant provider, you need to remove the old id: web provider configuration override.
3. Fill in Configuration¶
Restart DSH and refresh your browser. Open Plugins, navigate to the bundle detail page for dsh-web-search-9router to complete the configuration. When filling in the API Key, the content is stored in DSH credentials, corresponding to the credential reference you select.
Configuration Items¶
| Key | Type | Default | Description |
|---|---|---|---|
baseURL |
string | 9router default endpoint | Base URL for the 9router-compatible API; the environment variable NINE_ROUTER_BASE_URL also takes effect |
searchModel |
string | search-combo |
Model name used by the search endpoint |
fetchModel |
string | fetch-combo |
Model name used by the fetch endpoint |
searchType |
string | web |
search_type passed to the search endpoint |
maxResults |
number | 8 |
Maximum number of results returned per search |
timeoutMs |
number | 30000 |
Request timeout per call (milliseconds) |
| API key | credential | — | Write-only field, stored by DSH credentials |
apiKeyEnv |
credential-ref | NINE_ROUTER_API_KEY |
Credential reference used when resolving the API Key |
Typical Usage¶
Once enabled and configured, there is no need to separately call the plugin API on the Agent side: simply use the built-in web_search and web_fetch in your DSH session, and the underlying layer will be forwarded to the gateway by the provider 9router.
In the development repository, the maintainer runs tests with the following commands (for reference in secondary development, not required for end users):
pnpm install
pnpm test
The entry point and layout in the repository are as follows: src/index.js (search + fetch providers), client.js (bundle settings form), cordis.patch.yml (bundle registration).
Use Cases and Notes¶
Who it is for: Users who are already using or plan to use 9router as an OpenAI-compatible gateway in DSH, and who want to retain DSH’s native web tool semantics without relying on the server-side Anthropic search tool implementation required by web-search-deepseek.
Distribution and versions: The GitHub repository is the sole distribution source; stable releases are published as v<version> GitHub Releases. The plugin is also listed in the community collection awesome-dsh-plugin. Directory pages such as SkillHub are community indexes and have no official affiliation with DeepSeek / High-Flyer.
Security: The plugin runs with the current DSH process permissions and sends search and fetch requests to the configured 9router endpoint. Before installation, please review the source code and the MIT license to ensure that the base URL, credential reference, and network policies comply with your environment.
Conclusion¶
dsh-web-search-9router connects DSH’s web_search and web_fetch to 9router’s /v1/search and /v1/web/fetch, filling the capability gap for the combination where “the gateway does not execute the default deepseek search tool but internet access is still required.”
- Directory page: skillhub.cn/plugins/rebron1900/dsh-web-search-9router
- Source code and documentation: github.com/rebron1900/dsh-web-search-9router