Introduction¶
DeepSeek Harness (DSH) provides the web_search tool in the web profile, which defaults to the search capability on the DeepSeek API side: each query is billed and bound to the API Key. If you already have or can deploy a SearXNG metasearch engine, and prefer the Agent’s web search to go through infrastructure you control without relying on third-party search API accounts, you need to register a different WebSearchProvider on the ctx.web seam.
Below is an introduction to the community plugin dsh-web-searxng-search (Maintainer: kkgace, Category: Web Tools). It hooks a self-hosted SearXNG instance into the Harness, requiring no API Key or vendor account; the invocation method for the built-in web_search remains unchanged, while the actual backend is switched via configuration.
What is this¶
dsh-web-searxng-search is a Cordis plugin for DSH: it implements the WebSearchProvider contract, registers the search provider via ctx.web.registerSearchProvider, and uses the bundled cordis.patch.yml to point web.searchProvider to searxng. Search requests are sent to the SearXNG root address configured in baseURL, reading the JSON results from its Search API.
- Repository: kkgace/dsh-web-searxng-search
- Community Directory: SkillHub Plugin Page
- License: MIT (Consistent in README and package.json)
- Current package version: 0.1.0
The plugin itself has no additional runtime dependencies; @deepseek-ai/* is provided by the host as a peer dependency. It requires Node.js >= 22.19 and DeepSeek Harness side @deepseek-ai/dsh-web 0.1.x.
Core Features¶
The capabilities listed in the README are as follows, all centered around “replacing the provider without changing the tool interface”:
- Plug and Play: Registers the provider on the
ctx.webseam; the built-inweb_searchremains available. - Configurable Retrieval Behavior: Timeout, language, safe search level, SearXNG categories, and engines whitelist.
- De-duplicate Results by URL: Metasearch often returns duplicate entries.
- Distinguishable Configuration Errors: Different prompts are given for instances returning HTML (JSON not enabled) versus “no results”.
- Lifecycle: The registration package is within
ctx.effect, allowing clean rollback for uninstallation and HMR. - Offline Testing: The repository contains 14 unit tests that do not depend on the network (
npm test).
Failures are thrown as WebError for the host to handle; there is no silent fallback to other providers.
Prerequisites: Enable JSON in SearXNG¶
SearXNG does not output JSON by default; if not enabled, the instance may still return 200 with an HTML page, and the plugin will report a configuration-type error rather than “no results”. Enable JSON in the instance’s settings.yml:
# settings.yml
search:
formats:
- html
- json
Before installing the plugin, verify the endpoint with curl (replace the address with your instance):
curl -fsS 'http://localhost:8888/search?q=test&format=json' | head -c 120
Installation & Enablement¶
Add the plugin under the web profile (commands from the official README):
# from npm
dsh plugin --profile web add dsh-web-searxng-search
# from GitHub
dsh plugin --profile web add github:kkgace/dsh-web-searxng-search
# from a local checkout
dsh plugin --profile web add /path/to/dsh-web-searxng-search
Then restart the web application:
dsh web
Once the plugin is listed, it can also be installed via Settings → Plugin Market.
Note: Simply installing the plugin is not enough. The bundle sets web.searchProvider to searxng via a patch; if the profile does not take effect or still points to the built-in provider, web_search will continue to use the original backend. You must restart dsh web after modifying configuration.
Configuration¶
The default baseURL is http://localhost:8888. When pointing to your own instance, patch the existing entry in the profile overlay; do not insert a new line (otherwise it will conflict with the bundle’s duplicate id, causing a startup error duplicate loader entry id: web-search-searxng):
# ~/.dsh/profiles/web/cordis.patch.yml
- id: web-search-searxng
config:
baseURL: 'https://searxng.example.com'
You can also set SEARXNG_BASE_URL in the environment where dsh is running.
| Option | Type | Default | Description |
|---|---|---|---|
baseURL |
string |
http://localhost:8888 |
Instance root URL, do not include trailing /search |
timeoutMs |
number |
15000 |
Timeout for a single request, 1000–120000 ms |
language |
string |
— | UI language passed to the instance, e.g., en-US |
safeSearch |
0 \| 1 \| 2 |
0 |
Off · Moderate · Strict |
categories |
string |
— | Comma-separated categories, e.g., general,it |
engines |
string |
— | Comma-separated engine names to narrow the search scope |
apiKey |
string |
— | Only required if the instance requires a Bearer token |
Typical Usage & Troubleshooting¶
Still using another provider: Check if web.searchProvider is searxng, and confirm that dsh web has been restarted.
Data exists but shows no results: Most likely the instance has not enabled the JSON format; see settings.yml above.
WEB_PROVIDER_CONFIGURED_UNAVAILABLE: available() is false, usually because baseURL is not a valid absolute http(s) URL.
WEB_PROVIDER_TIMEOUT: The instance did not respond within timeoutMs. You can increase the timeout or check the network and instance load.
No changes to the tool name are needed on the Agent side: once configured correctly, web_search is triggered as usual in conversations, and requests are forwarded to SearXNG by the plugin.
Use Cases & Notes¶
Suitable for: Teams or individuals who have deployed or plan to deploy SearXNG, want DSH Agent web search to be self-controlled, and wish to avoid DeepSeek Search API billing and Key attribution.
Not suitable for: Scenarios without a maintainable SearXNG instance, or where one is unwilling to perform engine and compliance configuration at the metasearch layer.
The DSH ecosystem emphasizes “Everything is a plugin”; community directories like SkillHub are independent of DeepSeek / High-Flyer and are not official app stores. The plugin runs with the permissions of the current dsh process. Before installation, it is recommended to read the repository source code and the MIT license to ensure that baseURL and the optional apiKey comply with your security policies.
Conclusion¶
dsh-web-searxng-search connects web_search to a self-hosted SearXNG on ctx.web, retaining the tool interface while swapping out the billing and vendor account dependencies; the prerequisite is that the instance has the JSON API enabled and the searxng provider is correctly selected via a patch.
- Directory Page: https://www.skillhub.cn/plugins/kkgace/dsh-web-searxng-search
- GitHub: https://github.com/kkgace/dsh-web-searxng-search