Preface¶
When building agents that require real-time information in DeepSeek Harness (DSH), you often want to route the shell’s built-in web_search through a unified entry point while also having direct access to capabilities such as search, extraction, crawling, site mapping, and deep research. Integrating the Tavily API yourself would mean repeatedly handling authentication, quotas, and auditing. Below is the community plugin @zx06/tavily (repository zx06/dsh-tavily), which registers Tavily as the search provider for ctx.web and comes with five standalone tools and a settings page.
What Is This¶
@zx06/tavily is published by maintainer zx06 and categorized as a web tool. The plugin provides two integration approaches:
ctx.websearch provider (id:tavily) — registered into DSH’s web capability seam, so the shell’s built-inweb_searchcan also return Tavily results.- Five standalone tools — independent of provider selection; callable by tool name once the installation profile is installed.
It also includes a settings page: API Key, search options, quota card, audit log. The current GitHub star count is 0; the package version is 0.1.0, license MIT.
Core Features¶
Five Tools¶
| Tool | Description | Key Required |
|---|---|---|
tavily_search |
Web search (query/topic/depth/result count/domain filter/time window), returns titles, links, snippets, scores, and an optional AI answer | No (keyless) |
tavily_extract |
Extract article body by URL | No (keyless) |
tavily_crawl |
Crawl related pages from an entry URL | Yes |
tavily_map |
List site URL structure | Yes |
tavily_research |
Deep research task, returns a cited report; async, dual-mode within a single tool | Yes |
Two modes of tavily_research
- Pass
input: create a task and poll until completion within the tool (subject to theresearchTimeoutMslimit). If it is still running at timeout, it returns therequestIdand a hint; the task is not lost. - Pass
request_id: only query status once, for continuing to poll an existing task.
ctx.web Provider¶
The plugin registers a search provider with id tavily. Key points of DSH’s selection rules:
- When
web.searchProvideris not configured and only one provider is available, it is auto-selected; - When
web.searchProvider: tavilyis configured, Tavily is selected; - When no Key is configured and keyless mode is disabled,
available()returnsfalse, so it does not participate in selection, avoidingWEB_PROVIDER_AMBIGUOUSerrors in single-provider deployments where Tavily is not configured.
If the profile pins web.searchProvider to deepseek-official, the Tavily provider will not be selected; in that case, you can directly use the tavily_* tools.
Settings Page and Credentials¶
The settings page includes: an API Key form (password field, auto-validated on save), search options (default result count/depth/timeout/allow keyless), a quota card (Tavily /usage), current-month usage statistics, and an audit log table.
API Key priority (highest to lowest):
- DSH Settings → Tavily Search (recommended). Validated against Tavily
/usageon save; if it passes, it is written to the DSH credentials service ($DSH_HOME/.credentials.yaml). - Environment variable
TAVILY_API_KEY. If set, the settings page will refuse to save and prompt you to unset this environment variable (inherited environment variables are read-only and shadow writes). - The
apiKeyfield in plugin config (role('secret')). The credential reference name can be changed viaapiKeyEnv, defaultTAVILY_API_KEY.
Key application: https://app.tavily.com.
Keyless Mode¶
Tavily allows using search and extract without a Key (shared rate limits). The plugin defaults to allowKeyless: true: when no Key is configured, tavily_search / tavily_extract remain available; crawl / map / research will give clear prompts; when keyless rate limits are triggered, it prompts to configure a Key and suggests the number of seconds to wait. After disabling allowKeyless, all tools will throw errors directly when no Key is configured.
Auditing¶
Call records are written to ~/.dsh/tavily/audit-YYYYMM.jsonl: time, tool, target, duration, result count, status/error code, caller, and credits consumed by this call. Keys are not written to logs (strings such as tvly-... in targets are masked). You can view them in the settings page or read the file directly.
Installation and Activation¶
Install under the web profile (the npm and GitHub channels are the same build output):
# npm channel (recommended)
dsh plugin --profile web add @zx06/tavily
# GitHub channel
dsh plugin --profile web add github:zx06/dsh-tavily
After installation, restart the profile and fill in the API Key under Settings → Tavily Search; you can also rely on keyless mode to try search / extract first.
For local development debugging, build first and then install via the local path channel:
pnpm install && pnpm build
Then use install_bundle to install this repository’s root directory.
Typical Usage¶
- Only web search and article extraction needed: after installation, you can call
tavily_searchandtavily_extractwithout filling in a Key (subject to keyless rate limits). - Route the shell’s
web_searchthrough Tavily: ensure the profile does not exclusively use another provider, or setweb.searchProvider: tavily, and configure a Key or keep keyless as needed (only search/extract related capabilities are available under keyless mode). - Crawling, site maps, deep research: after configuring a valid API Key in the settings page, use
tavily_crawl,tavily_map, andtavily_research; if a research task times out, you can use the returnedrequestIdwith therequest_idparameter to continue querying. - Troubleshooting usage and failures: check quota and audits in the settings page, or directly view
~/.dsh/tavily/audit-YYYYMM.jsonl.
The README does not provide complete conversation examples; actual parameters should follow the DSH tool schema and Tavily documentation.
Applicable Scenarios and Caveats¶
Suitable for: teams already developing agents in the DSH web profile who want unified Tavily search and extraction, or need crawl/map/research integrated with quotas and auditing.
Permissions and security: the plugin runs with the permissions of the current DSH process and makes outbound requests to Tavily. Before installation, read the repository source code and the MIT license, and confirm that the credential storage method ($DSH_HOME/.credentials.yaml) complies with your environment policy.
Differences from the legacy @dsh-plugins/search-tavily: the package name and provider id changed to tavily; the Key no longer uses ~/.dsh/tavily.key and must be re-entered in the settings page; the audit directory changed from ~/.dsh/search-tavily/ to ~/.dsh/tavily/.
Ecosystem note: DSH community plugin directories (such as SkillHub and dsh-plugin.org) are independent sites with no official affiliation to DeepSeek / High-Flyer; this article does not describe them as an official app store.
Conclusion¶
@zx06/tavily bundles Tavily’s search provider, five types of tools, a settings page, and auditing into a single DSH plugin, making it easy to complete web retrieval and research-type tasks within the Harness. Directory and source code:
- Directory page: https://www.skillhub.cn/plugins/zx06/dsh-tavily
- GitHub: https://github.com/zx06/dsh-tavily