Preface¶
The core design philosophy of DeepSeek Harness (DSH) is “everything is a plugin”. The built-in web_search and web_fetch tools typically rely on the host backend. When the official backend encounters rate limiting or failures, direct calls may fail.
The dsh-hydrasearch plugin aims to solve this problem. By registering two backends — TinyFish and AnySearch — it builds an automatic failover chain, allowing DSH’s search and fetch requests to flow automatically between two free services, providing more stable web retrieval capabilities.
Plugin Positioning¶
This is a TinyFish + AnySearch search and fetch backend plugin that supports automatic dual-backend failover. It is maintained by dgagf111 and licensed under the MIT license.
Core Features¶
- Automatic dual-backend failover: When one backend times out, is rate-limited, or errors, it automatically switches to the other, ensuring uninterrupted requests.
- Web search: Supports language, region, time range, site blacklist/whitelist filtering, and pagination control.
- Web fetching: Supports fetching target web pages as Markdown, HTML, or JSON formats, and can extract links within the page.
- Resources and rate limiting: Provides free quotas and high-frequency rate limits, supporting web search and fetching.
Installation and Activation¶
- Run the installation command:
dsh plugin --profile web add github:dgagf111/dsh-hydrasearch
- After restarting DSH, go to “Plugins Page → Installed → dsh-hydrasearch → Inline Configuration”.
- For first-time use, fill in the TinyFish API Key in the card (AnySearch can be left blank initially).
- Verify using DSH’s built-in
web_searchorweb_fetch: if the results return normally, it means the requests are going through the TinyFish / AnySearch chain.
Typical Usage¶
After installation and configuration, there is no need to modify DSH’s core calling code. In the inline configuration card, you can adjust the order of the backends (those listed first are used first), set the failover switch, and fill in the backend parameters (such as search language, fetch format, timeout, etc.).
Use Cases and Notes¶
- Version requirements: Only supports DSH 0.2.0-rc.2 and above. Older versions are deprecated and cannot be loaded.
- API Key security: The Key is stored only in the local credential center, not uploaded to the cloud, not used for third-party statistics, and only sent to the search service being called.
- Version upgrade notes: Starting from version 0.3.0, the credential reference names have changed to
HYDRASEARCH_TINYFISH_API_KEY/HYDRASEARCH_ANYSEARCH_API_KEY. If upgrading from an older version, you need to re-enter the Key in the card. - Code runtime environment: The plugin runs with DSH process permissions. Please review the source code and license before installation.
Summary¶
dsh-hydrasearch solves the availability issues of DSH’s built-in search tools by introducing two free backends: TinyFish and AnySearch. Its automatic failover mechanism ensures high availability, making it suitable for development scenarios that require extensive web searching and fetching.