Introduction¶
In DeepSeek Harness (DSH), allowing an agent to read web pages usually relies on the built-in web_fetch. This tool layer has SSRF protection: after domain resolution, if the result contains any non-public unicast address, the entire batch of requests is rejected before packets are sent.
When using VPNs like Clash or Mihomo with fake-ip enabled (default pool 198.18.0.0/15), the system often resolves every domain to 198.18.x.x. In this case, web_fetch reports resolves to a non-public IP address for almost all sites, while your local browser and curl continue to work normally—the website isn’t broken; it’s a clash between the Harness-side IP validation and fake-ip.
The following introduces the community plugin dsh-edge-search (Maintainer: Chuzhj, Category: Web Tool). It drives your local, real Microsoft Edge via CDP to provide the agent with edge_search and edge_read. It retrieves page text under the premise that DNS and socket operations are handled by the browser and traffic follows system routing (including VPN tunnels), serving as a fallback channel for the built-in web tools.
What is this¶
dsh-edge-search is a Host plugin for DSH, with the package name @local/dsh-edge-search (current documented version 0.3.0, MIT License). It does not depend on third-party search APIs, requires no API keys, and has no runtime npm dependencies.
Its positioning can be summarized as: use local Edge for searching and reading body text when web_fetch is unavailable due to fake-ip or similar reasons, or when you do not want to pay for pay-per-use search services. The official description emphasizes that this is a fallback channel; it is an order of magnitude slower than web_fetch and should not be used as the default path.
- Directory Page: SkillHub - dsh-edge-search
- Source Code & Docs: GitHub - Chuzhj/dsh-edge-search
Core Functions¶
The plugin registers two stateless tools for the agent. Both return plain text only, do not operate on your already-open tabs, and do not require login (the independent debugging profile does not contain your cookies).
| Tool | Function |
|---|---|
edge_search |
Opens the search engine results page in a background tab, extracts titles, URLs, and snippets, then closes the tab. Supported engines: bing (default), baidu, google, duckduckgo |
edge_read |
Opens a specified URL in a background tab, extracts body text using a text density strategy, then closes the tab |
Key principle: Resolution and connection are completed within the browser, bypassing DSH’s public IP validation on resolution results, thus circumventing the site-wide blocking caused by fake-ip. Since Chromium 136, the default data directory ignores the remote debugging port, so the plugin always launches Edge with a dedicated --user-data-dir and does not reuse your daily windows.
Environment Requirements¶
- DSH is installed (Desktop or CLI).
- Windows + Microsoft Edge; other Chromium-based browsers can be specified via the
edgePathconfiguration. - If running the offline self-test script separately outside of DSH, Node.js 22+ is required (the plugin uses the global
WebSocket; DSH’s bundled runtime generally handles this automatically).
Installation and Activation¶
Please review the repository source code and license before installing; Host plugins run with the current DSH process permissions, so only install in trusted environments.
The official documentation provides two methods. The README suggests Method 1 for beginners; Method 2 (manual) is for troubleshooting.
Method 1: Let the DSH agent install it¶
- Drag the entire
dsh-edge-searchfolder into the DSH dialog (or send the full path), ensuring the agent can seepackage.jsonandindex.js. - Include instructions (README provides copyable text): Copy to a fixed directory (e.g.,
D:\tools\dsh-edge-search), register in the profile’sdependenciesanddsh.profile.bundles(package name@local/dsh-edge-search), and copyskills/web-fallbackto%DSH_HOME%\skills\. - The agent will execute steps like
dsh plugin --profile desktop add; you must fully exit DSH and reopen it, otherwise the Host plugin will not load.
Verification:
dsh plugin --profile desktop list
@local/dsh-edge-search@file:... should appear.
Method 2: Manual Installation¶
-
Place the plugin directory at a fixed path (README example:
D:\tools\dsh-edge-search), withpackage.jsonandindex.jsin the root. -
Add to profile:
dsh plugin --profile desktop add D:\tools\dsh-edge-search
-
Add
"@local/dsh-edge-search"todsh.profile.bundlesin%DSH_HOME%\profiles\desktop\package.json(If you only install dependencies without writing to bundles, the plugin will not load). -
Fully exit and restart DSH, then run
dsh plugin --profile desktop listagain to confirm.
If dsh plugin add is unavailable, change dependencies to a file: path and execute:
dsh plugin --profile desktop install
Then restart DSH.
Optional Configuration¶
Configure in the profile’s cordis.patch.yml:
- id: dsh-edge-search
name: "@local/dsh-edge-search"
config:
port: 9222
edgePath: "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
profileDir: "..."
| Key | Default | Description |
|---|---|---|
port |
9222 |
CDP port, must not be occupied |
edgePath |
Auto-detected | Path to msedge.exe; errors immediately if file does not exist |
profileDir |
%LOCALAPPDATA%\dsh-edge-search\edge-profile |
Dedicated profile for automation, can be deleted to reset |
Companion Skill: web-fallback¶
The skills/web-fallback in the repository guides the agent to switch to edge_read / edge_search when web_fetch fails (e.g., WEB_BLOCKED_URL, non-public IP errors). The tools can be called without installing this, but installing it makes them more likely to be selected proactively. After copying to %DSH_HOME%\skills\web-fallback\, verify in a new session. Do not coexist with old skills of the same name or function.
Typical Usage¶
In a DSH conversation, ask the agent to read a web page or search; it should call edge_read or edge_search.
If not going through DSH, you can explore via the self-test script in the plugin directory (Node 22+ required):
node selftest.mjs probe
node selftest.mjs read "https://example.com" 400
node selftest.mjs search "Hello" bing 3
The first call usually pops up a dedicated debugging Edge window (independent profile, no bookmarks or login state). Keeping the window open allows instance reuse; closing it will restart it on the next call, costing a few extra seconds.
On Windows, you can self-test if you are in fake-ip mode: if Resolve-DnsName www.baidu.com returns 198.18.x.x, the built-in web_fetch is likely to fail across the board, making the fallback tool more significant.
Suitability and Notes¶
Who is it for
- Windows users who rely on DSH for web reading and searching with VPN fake-ip enabled.
- Developers who want to use a local browser for limited web access without search API keys or third-party services.
Limitations and Risks
- Only for Windows + Edge (or specified Chromium) scenarios; slower than
web_fetch, intended as a fallback. - Sites requiring login or heavy JS SPAs may not yield body text; the dedicated profile cannot read your daily browser cookies (this is by design).
- CDP listens on
127.0.0.1, allowing local processes to connect; be mindful in shared or untrusted environments and close the debugging Edge window when not in use. - The plugin does not report data to third parties; however, review the GitHub repository source code before installing.
Common failures: unknown tool "edge_read" usually means DSH was not restarted or bundles was not updated; port occupation can be resolved by changing port or checking 9222; handle edgePath errors according to the README troubleshooting table.
Conclusion¶
dsh-edge-search uses local Edge and CDP to provide edge_search and edge_read as two plain-text fallback paths for the agent when VPN fake-ip conflicts with DSH web_fetch SSRF validation, requiring no API keys. The community directory has no official affiliation with DeepSeek or Hithink RoyalFlush; it is a Web Tool entry in the DSH “everything is a plugin” ecosystem (GitHub star count depends on the repository).