dsh-tavily: Seamlessly Integrating Tavily Search into DSH Web Capabilities with Key-Free Priority and Visible Fallback

Introduction

When doing web search in DeepSeek Harness (DSH), the common practice is to connect a search API and expose it to the agent through ctx.web’s search capability seam. Tavily’s /search directly returns titles, URLs, body text, and optional publication dates—structured result lists in a single HTTP call—so the model no longer has to “pick” results out of the provider’s natural-language prose.

There are already several Tavily-style DSH plugins in the community. What makes @0x427567/dsh-tavily (repo ShawnOY/dsh-tavily) different is: whether a given search goes through the keyless tier or your API key should not be silently switched in the background. By default it tries Tavily’s keyless tier first; only after a rejection does it fall back to the key, and it states this clearly in the tool output and logs. The following sections describe its positioning, installation, and configuration.

What Is This

@0x427567/dsh-tavily is a search provider backed by Tavily, mounted on DSH’s web capability seam (ctx.web), and shipped as a bundle: dsh plugin add writes it into the profile, with no manual edits to cordis config required.

  • Maintainer: ShawnOY (GitHub: ShawnOY/dsh-tavily)
  • Category: Web tool (community directory: skillhub.cn/plugins/ShawnOY/dsh-tavily)
  • License: MIT (see package.json in the repo, current version 0.2.1)
  • Problem it solves: Let web_search be served by Tavily, while making the credential policy (keyless / key) and fallback behavior configurable and observable.

After installation, the bundle’s built-in patch registers the provider, pins the web seam’s search to this plugin, and disables the DeepSeek search provider shipped with the base bundle. Therefore, under Settings → Plugins → Plugin configuration you will see this plugin’s card; its Search provider can be switched between Tavily and the official DeepSeek backend without restarting the harness (other file-level configuration aside).

Core Features

Tavily’s /search response is the result list itself: one request corresponds to one search, with no additional model round-trips and no reliance on parsing results out of the provider’s prose.

Credential Policy: Keyless First, Fallback Visible

  • Keyless first (default): The keyless Tavily tier can be used without an account; your key is only attempted when the keyless tier “rejects”.
  • Rejection visible: After the keyless tier is rejected, that tier enters cooldown, and the switch to the key is written into the search result body and the harness logs, with wording following the harness language preference (see the README for the default Simplified Chinese example).
  • Explicit modes: keyless-first (default), key-first, keyless-only, key-only.

“Rejection” includes HTTP 401, 403, 429, or an HTTP 200 whose body is explanatory text instead of a results array (Tavily may do this for restricted keyless calls). 400 is treated as a bad query and will not be retried with the key.

Keyless is free but rate-limited; Tavily has not disclosed the keyless quota. The documented limits for the keyed tier are 100 RPM for development and 1,000 RPM for production.

Runtime and UI

provider, mode, keylessCooldownMinutes, and language can be changed in Settings → Plugins → Plugin configuration and take effect on the next search; the values in the profile patch serve as the baseline for “reset”. The plugin ships with a browser-side card (namespace dsh-tavily).

No Build Step

Published as pure ESM, no install script runs at installation time, so no allowBuilds permission is required.

Environment and Dependencies

  • Node: ^22.19 || >=24
  • Harness peers (missing version causes installation to fail rather than a forced load): @deepseek-ai/dsh-web and @deepseek-ai/dsh-credentials, both ^0.1.5-rc.2

Installation and Activation

Installing the prebuilt package from npm is recommended (the scope @0x427567/dsh-tavily exists because the names dsh-tavily and dsh-web-tavily on npm are already taken by other Tavily providers):

dsh plugin --profile web add @0x427567/dsh-tavily

Install the same package from GitHub:

dsh plugin --profile web add github:ShawnOY/dsh-tavily

After installation, a harness restart is required: the hmr line in the base bundle is disabled, so the new module will not hot-load.

For local development, run npm pack and install the tarball—do not point dsh plugin add at the checkout directory (pnpm symlinks cause peers to resolve against the checkout’s node_modules, leading to startup failure). Example from the documentation:

npm pack
dsh plugin --profile web add ./0x427567-dsh-tavily-<version>.tgz

Credential Configuration

No configuration is needed for keyless mode. To use the keyed tier, matching proceeds in first-match-wins order:

  1. A literal apiKey in the plugin config (not recommended—it lands in the config file)
  2. TAVILY_API_KEY in the harness credential store ~/.dsh/.credentials.yaml (or the apiKeyEnv you configured):
version: 1
refs:
  TAVILY_API_KEY: tvly-...
  1. An environment variable of the same name when starting the harness process

Configuration Options

Key Default Meaning
apiKey — Literal key; prefer the credential store
apiKeyEnv TAVILY_API_KEY Credential reference name resolved on every search
baseURL https://api.tavily.com API root; /search is appended
searchDepth basic Tavily search_depth; advanced is more expensive
maxResults 5 Result cap when the caller does not specify
includeAnswer false Whether to let Tavily additionally return an LLM-summarized answer
provider tavily web_search backend: tavily or deepseek-official
mode keyless-first Credential policy, see above
keylessCooldownMinutes 10 Minutes to skip the keyless tier after rejection; 0 disables cooldown
language auto Language of this plugin’s prompts; auto follows Settings → General → Language in the harness

provider, mode, keylessCooldownMinutes, and language can be changed in the plugin configuration card; the remaining options are only available via profile / file configuration.

Typical Experiences

When the agent calls the harness’s web_search, this provider requests Tavily; on the success path the tool output is a result list with no extra switching notice.

Fallback After Keyless Quota Is Exhausted

When the keyless tier rejects and a usable key exists, the tool output will contain a notice like the following (Simplified Chinese by default):

⚠️ Tavily keyless quota exhausted, switched to key for this request; the key will be used directly for the next ~10 minutes.

During the cooldown period, a subsequent search may show a notice with the remaining minutes. The same event is written to the harness logs at warn level.

Switching the Search Backend

Switching the Search provider in the plugin configuration card to the official DeepSeek backend makes web_search respond from that backend without a restart; switching back to Tavily works the same way.

Use Cases and Cautions

Who it suits

  • Agent developers working under the DSH web profile who need stable, structured web search.
  • Users who want to try Tavily keyless with zero configuration first, then use their own key when the quota or rate limit is hit, with the switch visible to both users and logs.
  • Users who need to switch between this provider and the base bundle’s DeepSeek search provider within the same card, rather than mixing in multiple unpinned third-party search providers.

Important cautions

  • The plugin runs under the permissions of the current dsh process; review the GitHub source and the MIT license yourself before installing.
  • The community directory skillhub.cn is an independent site, with no official affiliation with DeepSeek / High-Flyer, and is not an official app store.
  • Do not hard-code API keys into a commitable profile; prefer ~/.dsh/.credentials.yaml or environment variables.
  • Star counts and ecosystem popularity should be based on the repo page (the directory showed 0 at the time of scraping); base your selection on versions, issues, and your own compliance requirements.

Conclusion

@0x427567/dsh-tavily connects Tavily to DSH’s ctx.web search seam, emphasizing keyless-first and visible fallback, and is bundled into the web profile to reduce manual cordis editing. If you are building a web agent under the web profile, you can install it with the commands above, configure the key and mode as needed, and verify with web_search after restarting the harness.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye