Preface¶
In DeepSeek Harness (DSH), the commonly used @deepseek-ai/dsh-tool-web invokes the standard web_search tool. The Harness-bundled @deepseek-ai/dsh-web-search-deepseek utilizes the Anthropic-compatible Messages API to let the model trigger server-side web_search. While this path retrieves titles and links, the normalized sources[].snippet is often empty, leaving the model without directly quotable or readable excerpts.
If you want every source in your web search results to include body text snippets, without burning an extra round of model tokens for every search, you can switch the search backend to the Volcengine Doubao Search API. Below is an introduction to how the community plugin dsh-web-search-doubao (maintainer: gilsaia, Category: Web Tools) works.
What is this?¶
dsh-web-search-doubao is a search provider plugin for DSH. It registers the Doubao Search (Volcengine) backend and points the search provider to this backend via the Harness’s ctx.web capability seam. From the model’s perspective, @deepseek-ai/dsh-tool-web remains unchanged; only the underlying implementation differs.
The current plugin version is 0.2.1 (see package.json in the repo), licensed under MIT. Community directory page: SkillHub Plugin Page; Source code and documentation: GitHub Repository.
Differences from Default Web Search¶
The README compares the fields and costs of the model-side web_search tool before and after integrating this plugin with the Doubao Search API using a table (the following points are summaries from the source material, not independent benchmarks):
| Capability | Default DeepSeek Web Path | This Plugin (Doubao Search API) |
|---|---|---|
sources[].title / .url |
Yes | Yes |
sources[].snippet |
Always empty | Real excerpts for each result |
sources[].publishedAt |
Sometimes 1970-01-01 sentinel value |
Real dates, with sentinel filtering |
| Cost per search | Extra model call (thousands of tokens) | One API call, consumes no model tokens |
| Typical Latency | ~6–14 s | ~0.2–0.6 s |
Doubao Search returns structured results containing the body of each result; the plugin maps this to snippet to facilitate model reading and quoting.
Environment and Dependencies¶
Before installation, please ensure:
- DeepSeek Harness
>= 0.2.0-rc.2(provides thectx.webseam provider API). - Node.js
>= 22. - Volcengine API Key. Documentation notes: Keys for Agent Plan are applicable and consume the plan’s AFP quota; Agent Plan documentation describes Doubao Search as the search service for this plan, requiring a plan-specific API key. Keys from other Volcengine products might authenticate but are not covered by the plan quota.
The default request URL is https://open.feedcoopapi.com/search_api/web_search (the public Doubao Search URL). Generally, no endpoint change is needed for access.
Installation and Activation¶
Install from GitHub under the web profile (command from README, do not modify the format):
dsh plugin --profile web add github:gilsaia/dsh-web-search-doubao
If using a local directory:
dsh plugin --profile web add /path/to/dsh-web-search-doubao
The package declares dsh.bundle.patch. Upon adding the plugin, it writes to the bundle and selects the provider via a patch. The patch snippet provided in the README is as follows (fetchProvider must be included because the row patch replaces the entire config line; omitting it will cause web_fetch to fail):
- insert:
- id: web-search-doubao
name: 'dsh-web-search-doubao'
- id: web
config:
searchProvider: doubao
fetchProvider: http
Restart the Harness (or reload the profile) after installation, then run a search. If Issues with peer dependencies found appears, the README explains this is expected: @deepseek-ai/dsh-* are provided by the Harness at load time. pnpm will report missing peers, but they are resolved by the Harness at runtime.
Configuring API Key¶
The plugin must be provided a key, resolved in the following order:
- The literal value of the config item
apiKey; - The credential referenced by
apiKeyEnv(defaultARK_API_KEY), read via the Harness credentials service, falling back to startup environment variables.
Without a GUI, you can export the environment variable before starting:
export ARK_API_KEY=... # then start the harness
Or write it in the profile’s patch layer (using apiKeyEnv is recommended for keys to avoid plaintext in config files):
- id: web-search-doubao
config:
apiKey: '...'
If the profile patch is still the default bare [], you should replace that [] with your entry; appending - id: after it creates two YAML documents, which the Harness cannot parse as an overlay. If the key is missing, the search fails with the error WEB_PROVIDER_CREDENTIAL_MISSING, indicating the reference to check, rather than silently returning empty results.
GUI Configuration¶
The plugin includes a client half: After restarting, a Web search page will appear in the Harness settings sidebar, where you can configure:
- API Key: Input via a password field, written to the reference specified in the form via the Harness credentials domain; plaintext does not enter the settings file, and the page only displays whether it is configured.
- Config Fields: endpoint, search type, result count, time range, authority filter, query rewriting, summary toggle, etc.; modified but unsaved fields show Unsaved, and user-layer overrides show Overridden with a Restore Defaults option.
- Save performs a revision-fenced write; Undo discards unsaved edits.
Changes take effect for the next search; no restart is required for config or key changes. The page mounts only if the host provides the web-search-doubao settings namespace; this page will not appear in environments where the plugin is not deployed.
Tunable Parameters¶
The following fields are read per search. Changes apply immediately to the next search (Table from README):
| Field | Type | Default | Meaning |
|---|---|---|---|
apiKey |
string (secret) | — | Plaintext API key |
apiKeyEnv |
credential ref | ARK_API_KEY |
Credential resolved per search |
baseURL |
string | Doubao Search URL | Full endpoint, changeable for proxies or regions |
searchType |
web | image |
web |
image returns image results |
maxResults |
1–50 | 10 |
Number of results if request doesn’t specify a limit |
timeRange |
string | — | OneDay / OneWeek / OneMonth / OneYear, or YYYY-MM-DD..YYYY-MM-DD |
authLevel |
0–2 | 0 |
1 restricts to authoritative sources (web search only) |
queryRewrite |
boolean | false |
Whether to rewrite conversational queries into search-style queries |
needSummary |
boolean | true |
Whether to request excerpts as snippet; if off, snippet is empty |
The environment variable DOUBAO_SEARCH_BASE_URL can override baseURL.
Enabling and Disabling¶
The plugin takes over provider selection on the seam while mounted and restores the previous selection upon unmounting, so standard plugin toggles work as follows:
- Enable: Registers the provider, seam selects
doubao, and searches go through Doubao Search. - Disable: Unregisters the provider and restores the previous selection; if no explicit selection existed, the seam automatically selects the remaining unique available provider (usually the bundled DeepSeek implementation).
The bundle patch deliberately excludes the row patch for - id: web to avoid the profile pointing to a non-existent provider after the plugin is disabled (which would error with WEB_PROVIDER_CONFIGURED_MISSING and not fall back). If you wish to use the bundled DeepSeek provider when this plugin is off, you need to configure it separately, e.g., the Anthropic-compatible endpoint from the README (not interchangeable with Doubao keys):
- id: web-search-deepseek
config:
baseURL: https://ark.cn-beijing.volces.com/api/plan/v1
If you explicitly fix searchProvider: doubao in your own patch layer, disabling this plugin while still pointing to doubao will cause an error; you must ensure it points to a registered provider.
Verification¶
The README provides local test commands (excerpt):
# pure-function and plugin-contract tests: no network
npm test
There is also npm run test:live (node scripts/smoke.mjs) for live smoke testing, which requires a valid key and network.
Use Cases and Notes¶
Who it’s for: Developers already using the standard web_search in the DSH web profile who need web excerpts with snippets, lower latency, and are willing to use Volcengine Doubao Search / Agent Plan quota.
Important Notes:
- The plugin runs under the current dsh process permissions; review the source code and LICENSE before installing to ensure it meets your security and compliance requirements.
- Incorrect API key or endpoint configuration may cause search failures or billing to the wrong product line; Doubao Search is called within plan quota only when the Agent Plan key matches the README instructions.
- Community directories like SkillHub are independent sites and have no official affiliation with DeepSeek/Hunyuan; plugin stars are based on the directory/GitHub display at the time (GitHub stars were 0 in the source material).
Conclusion¶
dsh-web-search-doubao switches the backend of the Harness standard web_search to the Doubao Search API. It fills in sources[].snippet without modifying the model-side tool and optionally manages keys and search parameters via the Web search settings page. For details, refer to the repository README (including Chinese README.zh.md).
- Community Directory: https://www.skillhub.cn/plugins/gilsaia/dsh-web-search-doubao
- GitHub: https://github.com/gilsaia/dsh-web-search-doubao