Preface¶
When building agents with internet capabilities in DeepSeek Harness (DSH), configuring the search backend for ctx.web typically requires changing searchProvider in the settings, or cross-referencing documentation between different plugins and APIs. Switching engines often means opening Plugins › Web search, verifying that credentials are complete, and then restarting or refreshing the application to ensure the behavior takes effect.
The following introduces the community plugin dsh-search-picker (Maintainer: xiaoxiaosrm, Category: Networking Tools). It adds a Search: … button to the bottom of the DSH desktop sidebar (above the Settings row). This button uses a menu to switch between various search backends, writing to the same web.searchProvider field found in the official settings page. Changes take effect immediately and persist to the host configuration document.
- Directory Page: https://www.skillhub.cn/plugins/xiaoxiaosrm/dsh-search-picker
- Source Code & Documentation: https://github.com/xiaoxiaosrm/dsh-search-picker
- Current Release: v0.1.0 (MIT License)
- Declared Compatibility: DSH desktop 0.2.1-rc.2
What is this¶
dsh-search-picker is a DSH bundle plugin: the server registers search provider patches via cordis.patch.yml; the client injects UI into the web platform, providing a search engine selector in the sidebar.
The core problem it solves is allowing for a one-click switch of ctx.web search implementations between DeepSeek Messages, DeepSeek Search API, OpenCode Go, Tavily, and Exa, without conflicting with the official Plugins › Web search. Engines in the menu without configured credentials are greyed out; if an unregistered or unavailable provider is selected in settings, web_search returns a clear WEB_PROVIDER_* error rather than silently falling back to another engine.
The plugin runs with the current DSH process privileges; please review the repository source code and the MIT license before installation, and only obtain code from trusted sources.
Supported Search Engines¶
The list of engines in the material is as follows (id corresponds to the searchProvider value direction):
| id | Engine | Credential Env Var | Description |
|---|---|---|---|
deepseek-official |
DeepSeek Official Messages | DEEPSEEK_API_KEY |
Built-in; Anthropic Messages + web_search_20250305; each search consumes model tokens |
deepseek-search-api |
DeepSeek Official Search API | DEEPSEEK_API_KEY |
Built-in; Direct connection to search endpoint; does not consume model tokens |
opencode-go |
OpenCode Go | OPENCODE_GO_API_KEY |
Provided by this plugin; Anthropic Messages + x-opencode-session header; approx $0.01/search |
tavily |
Tavily | TAVILY_API_KEY |
Provided by this plugin; Menu item greyed out if key is not configured |
exa |
Exa | EXA_API_KEY |
Provided by this plugin; Menu item greyed out if key is not configured |
The plugin does not directly read or write credential files; during search, it resolves the reference indicated by apiKeyEnv via ctx.credentials, falling back to process environment variables. If missing, it throws WEB_PROVIDER_CREDENTIAL_MISSING, with the error message naming the specific variable.
Core Features¶
Shares the same field as official settings¶
The selector writes to searchProvider under the official web namespace, which is the same field edited by Plugins › Web search. Therefore:
- Switching takes effect immediately without restarting DSH;
- The selection persists with the host settings document and remains after restart;
- The sidebar menu and settings page will not overwrite different fields respectively.
Sidebar UI Behavior¶
The button is located at the bottom of the sidebar, directly above the Settings row. The menu is a position: fixed popup layer: its width follows the sidebar content width (sidebar default 280px, draggable between 264–420px; menu approx 240–396px). It updates in real-time during dragging to avoid being clipped by the sidebar column’s overflow: hidden. When the sidebar collapses to the 56px icon rail, the menu pops out to the right with a width of 280px.
The menu background uses an opaque material (white for light theme, dark gray for dark theme, using --dsw-alias-bg-layer-1), with official popover borders and --dsw-elevation-panel shadows; it does not adopt the official menu material which is only 58% opaque and relies on backdrop-filter, to prevent sidebar text from showing through.
There is a visual illustration in docs/ui.png in the repository.
Installation and Activation (desktop profile)¶
The official README targets the desktop profile, mounting the bundle into the profile via a local file: dependency. The following steps correspond to the original logic in the material; place the complete plugin directory in a fixed path (the README example uses Windows D:\tools\dsh-search-picker, choose an equivalent path for POSIX), and do not mix with unverified commands like dsh plugin add github:....
- Edit
%DSH_HOME%\profiles\desktop\package.json(POSIX:$DSH_HOME/profiles/desktop/package.json):
- Add"dsh-search-picker": "file:D:/tools/dsh-search-picker"to dependencies (modify the path according to your actual local directory);
- Append"dsh-search-picker"todsh.profile.bundles. - Execute under
%DSH_HOME%\profiles\desktop:
pnpm install
- Completely exit and reopen the DSH desktop application. The Loader only scans profile bundles at startup, and the client half is also loaded into memory at startup; simply refreshing the page is not sufficient to load new plugins.
If the file: dependency cannot be resolved, you can copy the plugin directory to %DSH_HOME%\profiles\desktop\node_modules\dsh-search-picker and still add the package name to dsh.profile.bundles (without needing the file: dependency item).
The runtime environment requires Node >= 20 (see package.json → engines).
Configuration¶
The bundle comes with default patch items (cordis.patch.yml); all fields are optional, and if omitted, the following default values are used. You can override them in the profile’s cordis.patch.yml for the same entry id (search-picker).
- insert:
- id: search-picker
name: dsh-search-picker
config:
opencodeGo:
baseURL: https://opencode.ai/inference/go/anthropic/v1
model: deepseek-v4.1-flash
maxTokens: 4096
maxUses: 5
tavily:
baseURL: https://api.tavily.com
apiKeyEnv: TAVILY_API_KEY
exa:
baseURL: https://api.exa.ai
apiKeyEnv: EXA_API_KEY
Typical Usage¶
- Complete the profile installation as described in the previous section and perform a cold start of the desktop app.
- Configure the required variables for the target engine in DSH credentials or the environment (e.g.,
DEEPSEEK_API_KEY,TAVILY_API_KEY). - Click Search: … in the sidebar and select the engine to use; items without configured credentials remain greyed out and unselectable.
- Trigger
web_searchin conversations or workflows; the behavior is consistent with selecting the samesearchProviderin Plugins › Web search.
To revert to the built-in path, select deepseek-official in the menu, or open the official Plugins › Web search page to modify it.
Uninstallation and Rollback¶
- Switch back to
deepseek-officialvia the menu or the official page. - Remove the
dsh-search-pickerdependency from the profile’spackage.jsonand the package name fromdsh.profile.bundles, runpnpm install, and then completely restart the desktop application.
Use Cases and Precautions¶
Suitable for: Developers who frequently compare the retrieval effectiveness or costs of DeepSeek Official Messages / Search API, OpenCode Go, Tavily, and Exa in the DSH desktop; teams that want to minimize trips to the settings page while maintaining consistency with the official searchProvider.
Important Notes:
- The engine list in the menu is fixed; if an official provider maps
apiKeyEnvto a different credential name, the grey-out logic still checks based on the default reference name. - Conflicts with plugins that take over
web.searchProviderat runtime (such asdsh-free-search,dsh-web-search-free, etc.); do not install them simultaneously. - When
opencode-gocannot obtain the current session id,x-opencode-sessionuses a random in-process UUID (the relay only requires it to be opaque and stable). deepseek-officialreturns 404: Check if profile patches or other plugins have rewrittenweb-search-deepseek.baseURL; it should remain the built-in defaulthttps://api.deepseek.com/anthropic/v1. Incorrectly pointing to a search provider host will cause exceptions.- Menu width does not follow sidebar: The popover relies on
ResizeObserver; modifications to the profile/bundle require a restart of the desktop app to reload the client bundle.
The DSH ecosystem emphasizes “everything is a plugin”; community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer. This plugin has a GitHub star count of 1 (based on directory page/repository public information); please assess maintenance activity and risks yourself before use.
Conclusion¶
dsh-search-picker moves the switching of web.searchProvider to the sidebar, sharing the same source and field as the official Web search settings, making it suitable for quickly experimenting with various networking backends under the desktop profile. For details and Issues, see GitHub: https://github.com/xiaoxiaosrm/dsh-search-picker; for the plugin index, see SkillHub: https://www.skillhub.cn/plugins/xiaoxiaosrm/dsh-search-picker.