AI Agent Hub
Back to plugins
🧰

dsh-web-search-local

Web Tools Updated 2026.08.24

Run the following command in DeepSeek Harness:

dsh plugin install gausszhou/dsh-web-search-local

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install gausszhou/dsh-web-search-local in your terminal to install and auto-activate this plugin; the source repository is at https://github.com/gausszhou/dsh-web-search-local .

About this plugin

The built-in web_search tool in dsh is model-agnostic at the interface level, but its default provider ships every query to DeepSeek's server-side search API, which requires a DEEPSEEK_API_KEY. The moment you switch to a local model such as Ollama, search simply stops working. dsh-web-search-local fills that gap: it registers both a search provider and a page-fetch provider on the ctx.web seam, performing all HTTP with node's native modules and zero third-party runtime dependencies.

Search runs through a three-layer engine chain: a private SearXNG instance, then Google / DuckDuckGo / Mojeek, then Bing / Baidu / Sogou / 360. Engines within the same layer are queried in parallel and merged round-robin; a layer that returns no results automatically degrades to the next. The provider auto-detects local proxy ports (Clash, v2rayN, etc.) but routes only the global engines through the tunnel, while CN engines and a private SearXNG always connect directly, avoiding Baidu's verification wall, Sogou's anti-spider captcha, and 360's redirect loops that a foreign exit IP would trigger. Per-engine circuit breakers cool down walls and rate-limits, and DuckDuckGo includes a lite-endpoint fallback, so a single failing engine never takes down the whole search.

This plugin is ideal for dsh users running local models (Ollama, llama.cpp, and the like) who want keyless web search without signing up for any search API. It also serves network-restricted environments that need reliable coverage of both global and Chinese search sources. Installation auto-activates the web profile with no manual config edits required, and all settings are hot-reloadable through dsh's settings panel, taking effect on the very next query.

Use Cases

  • Local model users who need web search without a DeepSeek API key or any paid search service
  • Restricted or mixed-network environments requiring both global and Chinese engines with automatic layer degradation
  • Teams that want fully self-hosted search and page fetch with zero external API dependencies

Best For

  • dsh users running local models such as Ollama or llama.cpp
  • Developers who value keyless search with no third-party runtime dependencies
  • Users in network-restricted environments needing parallel multi-engine search with circuit-breaking fallback