Preface¶
When performing web-based Q&A in DeepSeek Harness (DSH), web_search and web_fetch often follow two distinct paths: public search engines (e.g., dsh-free-search), or the official deepseek-official provider—the latter embeds search into a complete Anthropic Messages call (web_search_20250305 server tool), where every search requires a full model run and generates token usage.
If you prefer search and page fetching to be “a single HTTPS request returning organized results” rather than occupying another round of inference, the community plugin deepseek-search-tools (maintainer ansellchen-boop, category: Web Tools) registers the DeepSeek dedicated tools API as a DSH web provider, allowing the built-in web_search / web_fetch to directly hit POST /v1/tools/search and POST /v1/tools/fetch.
What is this¶
deepseek-search-tools is a plugin package for the DSH web profile (npm name deepseek-search-tools, current version 0.1.0, MIT License). It registers a provider with the id deepseek-tools in both the search and fetch registries of ctx.web. The entire pipeline requires switching the provider only once, without modifying the official package.
| Tool | Endpoint | Return Key Points |
|---|---|---|
web_search |
POST https://api.deepseek.com/v1/tools/search |
results[] (title / url / snippet / summary / content / date / authority, etc.) |
web_fetch |
POST https://api.deepseek.com/v1/tools/fetch |
{ title, content }, where content is Markdown |
For API descriptions, see the DeepSeek Search Guide. Documentation records: Search and fetch are each 5 yuan per 1,000 successful requests; count does not affect the price; QPS is 5 for each.
Environment dependencies: Node >=20, DSH >=0.2.0-rc.1 (dsh.engines in package.json).
Core Features¶
The following summarizes capabilities based on the README, without expanding on behaviors not present in the materials.
Does not consume model tokens¶
After calling the dedicated Tools API, the search side returns the API-organized summary (approx. 600–800 words) along with fields like date and authority, rather than making the model “search by itself” within the current turn.
Auto-takeover after installation (Configurable)¶
During apply, it can automatically take over web.searchProviderId and web.fetchProviderId under conditions such as “not set / still factory default / preemptively registered by dsh-free-search.” If pinned by other configurations, the plugin only warns and does not steal the registration. If the plugin is not loaded, the original provider continues to work.
Fetch Fallback¶
For web_fetch in cases of 403/404/timeout or empty body, it can be configured to fall back to anonymous HTTP fetching (fetchFallback, default true).
Settings Page Search Tools¶
Optionally mount a settings section (enableSettingsPage, default true): active status, key management, real connectivity testing, search/fetch details, usage summary (Simplified Chinese / English). Details and usage are written to <DSH_HOME>/plugin-data/deepseek-search-tools/usage.json atomically; write failures do not affect the search itself.
Offline Self-test¶
The repository provides harness tests that do not depend on API keys or DSH (README claims 87 checks); add --live <apiKey> to run real end-to-end requests.
Installation and Activation¶
Prerequisite: dsh plugin forwards arguments to pnpm, so terminal installation requires ensuring pnpm is in the PATH.
1. Install Package¶
From npm (Recommended):
dsh plugin --profile web add deepseek-search-tools
From GitHub:
dsh plugin --profile web add github:ansellchen-boop/deepseek-search-tools
Or install release attachment (example is v0.1.0):
dsh plugin --profile web add https://github.com/ansellchen-boop/deepseek-search-tools/releases/download/v0.1.0/deepseek-search-tools-0.1.0.tgz
dsh plugin add only completes the package installation; you must also make the profile load the bundle.
2. Write to bundles and Restart¶
Edit ~/.dsh/profiles/web/package.json, and add deepseek-search-tools to dsh.profile.bundles, for example:
{
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"deepseek-search-tools"
]
}
}
}
You can also enable it in the DSH settings page Plugins tab (after successful installation, dependencies declaring dsh.bundle are automatically written to bundles). Then restart dsh web (restart the app for the desktop version). When upgrading from the old package name dsh-Deepseek-tools, old detail logs will automatically continue to be read.
Configuration and Credentials¶
If optionally fixing the provider, you can paste the snippet from the README into ~/.dsh/profiles/web/cordis.patch.yml:
- insert:
- id: web-search-deepseek-tools
name: deepseek-search-tools
config:
# apiKeyEnv: DEEPSEEK_API_KEY
# baseUrl: https://api.deepseek.com
# searchPath: /v1/tools/search
# fetchPath: /v1/tools/fetch
Common keys (see README table for default values): apiKeyEnv (default DEEPSEEK_API_KEY), baseUrl, searchPath, fetchPath, localization, includeContent, fetchFallback, takeOverSearch, takeOverFetch, timeoutMs (default 60000), maxSourceChars (default 4000), etc.
Credential resolution order: first ctx.get("credentials").resolve(apiKeyEnv), then process.env[apiKeyEnv]. DEEPSEEK_API_KEY usually exists in ~/.dsh/.credentials.yaml; if missing, it reports WEB_PROVIDER_CREDENTIAL_MISSING and outputs the variable name. You can also save or clear keys in the settings page.
If you want to explicitly pin the provider in the configuration (reporting unregistered after plugin uninstall is intentional behavior), the README example is:
- id: web
config:
searchProvider: deepseek-tools
fetchProvider: deepseek-tools
Note that the patch is a full-line overwrite, not a merge.
Typical Usage¶
After the installation and bundle activation above, reopen the session and ask a question requiring internet access to verify if web_search goes through /v1/tools/search. The “Test Connection” in the settings page Search Tools → API Management sends a real request to /v1/tools/search.
For local development, link installation is available (README example uses Windows path format):
dsh plugin --profile web add link:C:\path\to\deepseek-search-tools
After modifying lib/client.js, you can press Ctrl+R in the browser to refresh; modifying lib/index.js requires restarting the process.
Offline self-test:
node --import ./test/register-loader.mjs test/harness.mjs
Live check with a real key:
node --import ./test/register-loader.mjs test/harness.mjs --live sk-xxxx
Use Cases and Notes¶
Who it is for: Developers already using web_search / web_fetch in the DSH web profile who wish to switch to the clearly billed DeepSeek Tools API and reduce the cost of “search occupying a full model round.”
Relationship with dsh-free-search: The README explains that this plugin only takes over web-search-free / fs-quality-fetch which that package grabbed via default values; other tools like advanced_search, multi_search in that package are unaffected.
Billing and Errors: 401/402 (authentication, balance) are reported as-is without retry; 429 etc. have retry logic (see README features and test descriptions).
Security and Trust: The plugin runs with the current DSH process permissions and will access the network to send queries and URLs to the DeepSeek API. Before installation, please review the GitHub Repository source code and MIT License yourself, and install only under the premise of trusting the maintainer and the code. The DSH community plugin directory is an independent site and has no official affiliation with DeepSeek / Hithink RoyalFlush.
Common Issues: If only dsh plugin add is executed without adding the package name to bundles, it may result in “installed but no reaction”; the desktop desktop profile is exclusive to Electron and requires restarting within the app or Ctrl+R.
Conclusion¶
deepseek-search-tools connects the DeepSeek dedicated search/fetch API to the DSH web provider layer, exchanging a single HTTPS call for structured results, accompanied by a settings page and local usage records. To learn more, start with the community directory page and the repository: