Preface¶
When performing web searches in DeepSeek Harness (DSH), the official search utilizes the Anthropic-compatible interface, which typically requires a DEEPSEEK_API_KEY or an account login session. If you simply want the agent within your local Harness to search the web without applying for a separate search API, you need an alternative path that does not rely on API keys. The following introduces the community plugin dsh-free-web-search (Maintainer: vi0let-dev, Category: Networking Tools): It registers a provider named free-web into DSH’s ctx.web search slot. This provider is served by public free backends and supports proxies, latency probing, and one-click switching with the official search.
What is this¶
dsh-free-web-search is a pure JavaScript, zero-dependency (npm) DSH plugin (MIT license, package.json version 1.0.0). It does not replace the DeepSeek official search; instead, it registers an additional “Free Web Search” provider to the same Web search slot. By default, only the Bing scraping backend is enabled, allowing usage immediately after installation without a proxy environment. Other backends are attempted sequentially in the order you set after being selected in the settings page, and the first one to return usable results wins.
Backend overview (Order and descriptions based on the source materials):
free-web-search
├─ bing bing.com/search (Enabled by default)
├─ searxng Public instance JSON API (Optional)
├─ google google.com/search (Optional, often requires proxy)
├─ baidu baidu.com/s (Optional, strong for Chinese content)
├─ yandex yandex.com/search (Optional)
├─ duckduckgo html / lite scraping (Optional)
└─ wikipedia MediaWiki API (Optional, encyclopedia-focused)
The README emphasizes: Google may return a JavaScript shell page to non-script clients (no parseable results in the HTML); Yandex may easily encounter CAPTCHAs; and the stability of public SearxNG instances varies by network. These are typical scenarios where “reachable ≠ searchable.” The plugin attempts to provide specific diagnostics rather than vague errors like “page redesign.”
Core Features¶
Multi-backend & Default Strategy¶
| Config | Default | Description |
|---|---|---|
backends |
['bing'] |
List of enabled backends and attempt order; unknown names are discarded with a warning. |
maxResults |
5 |
Maximum number of results per search (upper limit 20). |
timeoutMs |
12000 |
Timeout per request (upper limit 60000). |
totalTimeoutMs |
timeoutMs × 2 |
Total time budget for the entire backend chain (upper limit 120000). |
The chain adopts a “reservation-style” timeout allocation: it prevents a stuck backend at the front from consuming the entire budget and causing subsequent usable backends to be skipped. Fast failure returns time to the pool.
Optional: When digest: true, results are additionally rendered as plain text into content; when takeover: true, the search slot is unconditionally occupied (default false; when coexisting with official search, interface switching is required, see below).
Proxy (HTTP / HTTPS / SOCKS5)¶
Since the host cannot rely on undici’s ProxyAgent, the plugin uses hand-written tunnels (node:net / node:tls / node:http) while maintaining zero dependencies. It supports HTTP CONNECT, SOCKS5/SOCKS5H, and user:pass@ authentication; SOCKS4, PAC, and proxy client certificates are not supported.
Example for global and per-backend overrides:
- id: free-web-search
name: 'dsh-free-web-search'
config:
proxy: 'http://127.0.0.1:7890'
proxyByBackend:
baidu: 'direct'
google: 'socks5://127.0.0.1:1080'
noProxy: ['internal.corp']
useEnvProxy: true
When useEnvProxy is true, existing HTTPS_PROXY / HTTP_PROXY / ALL_PROXY variables are recognized; setting it to false disables this. The environment variable prefix is DSH_FREE_WEB_SEARCH_ (e.g., PROXY, BACKENDS, PROXY_BY_BACKEND=google=http://a:1,baidu=direct, etc.; refer to the README config table for the full list).
Latency Test & Settings Page¶
The settings page adds a “Free Search” panel, roughly divided into four sections:
- Default Search Service — “Set as this plugin’s search” / “Restore DeepSeek Official” (Decides who
web_searchactually uses). - Proxy — Fill in, save, and separately test proxy connectivity.
- Search Backends — Check and reorder backends.
- Latency Test — Sends
HEAD /requests to the homepages of enabled backends to measure connection, TLS, and total latency; does not send search requests or use query words; only provides suggested order and copyable configs, does not automatically modify your configuration. The UI will explain: Reachable does not mean searchable.
Changes in the interface are written to $DSH_HOME/dsh-free-web-search/settings.json, rather than rewriting the loader’s cordis.patch.yml. Priority (Low → High): Built-in defaults < Environment variables < cordis.patch.yml < settings.json.
Coexistence with Official Search¶
The DeepSeek official search provider may still appear as “available” in its available() function without an API key. The slot will prioritize it and then fail at runtime with no API key, meaning this plugin as a fallback might never get a chance to run. Therefore, after installation and restart, you must click “Set as this plugin’s search” in Settings → Free Search → Default Search Service; the switch takes effect immediately without another restart. To restore the official one, click “Restore DeepSeek Official” in the same place.
Installation & Activation¶
Install from GitHub (Recommended)¶
In the DSH interface:
Settings → Plugins → Add Plugin
Input (Original text from source):
github:vi0let-dev/dsh-free-web-search
After installation, restart DSH, then complete the default search service switching described in the previous section.
Equivalent manual method (Windows PowerShell example, consistent with README):
cd $env:DSH_PROFILE_DIR
pnpm add github:vi0let-dev/dsh-free-web-search
Add dsh-free-web-search to the dsh.profile.bundles array in that directory’s package.json, then restart DSH.
For local development, file: path dependencies can be used; pnpm copies rather than symlinks, so after modifying source code, you need to re-run pnpm install or manually sync to node_modules.
Typical Usage¶
- Install and restart as described above, then set it as the default Web search provider in “Free Search”.
- Keep the default
bingonly, trigger the DSH Web search tool in a Harness conversation, and verify if entries are returned. - If Chinese results are needed, enable
baiduin the settings page and adjust the order; the README suggests setting Baidu’sproxyByBackendtodirect. - If Google etc. requires a proxy, fill in the global or per-backend proxy. First use “Test Proxy”, then run “Latency Test” for reference, and finally manually “Adopt this order” or modify YAML/
settings.json. - When using SearxNG, the README suggests changing
searxngInstancesto a self-hosted instance rather than relying solely on the default 5 public instances.
SearxNG, Wikipedia, etc. can also be fine-tuned via config items searxngInstances and wikipediaLang (zh is common for Chinese).
Use Cases & Notes¶
Suitable for: Performing web Q&A and document retrieval assistance in local/self-hosted DSH environments, where you want to avoid search API keys and can accept that scraping-based backends fluctuate with target site strategy changes.
Notes:
- The plugin initiates external HTTP(S) requests with the permissions of the current DSH process; please review the source code and MIT license of the GitHub Repository before installation.
- Scraping pages like Bing and Baidu constitutes automated access to third-party services. Please comply with each site’s terms and local regulations; enterprise networks may have additional proxy and audit requirements.
- Latency tests only reflect the network path to the homepage of each service and cannot replace actual search trial runs; cases where Google, Yandex, public SearxNG etc. are “fast but cannot search” are explained in the README.
- Engine requirement: Node
^22.19.0 || >=24.0.0(see package.jsonengines). The repository reports a total of 242 passing tests (see README badges and test chapter).
The DSH ecosystem emphasizes “Everything is a plugin”; the SkillHub Directory Page is a community collection and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-free-web-search consolidates keyless multi-backend Web search, hand-written proxies, and latency suggestions into the DSH settings page, while clearly distinguishing “whether the default search goes through the plugin or the official one.” If your pain point is that the official search occupies the slot and fails due to a missing Key in Harness, following the README to install, switch the default provider, and then configure backends and proxies will usually allow you to start verifying immediately.
- Directory Page: https://www.skillhub.cn/plugins/vi0let-dev/dsh-free-web-search
- GitHub: https://github.com/vi0let-dev/dsh-free-web-search