dsh-travily-api: Tavily Web Search for DeepSeek Harness

DeepSeek Harness (DSH) is a plugin-based intelligent agent development platform. During development or usage, when more controllable web search capability is needed, external services can be introduced through plugins. ceilcelia/dsh-travily-api is a plugin for DSH that performs web searches via the Tavily interface and provides toggle control, credential storage, and connectivity testing features.

Core Features

This plugin integrates Tavily’s search capabilities into DSH’s web_search interface. It does not directly modify DSH’s core logic but loads as a standalone profile bundle. Its core value lies in providing a toggleable search strategy and securely storing the API Key as a credential rather than plaintext configuration.

Installation & Activation

Installing the plugin requires restarting DeepSeek Harness, as the plugin loads as a profile bundle and only takes effect on the next startup.

  1. Open the “Plugins” panel in DeepSeek Harness.
  2. Click “Add Plugin”.
  3. Enter the following in the “Package name or address” field:
    github:CeilCelia/dsh-travily-api
Or install via command line:
    dsh plugin --profile desktop add github:CeilCelia/dsh-travily-api
  1. After installation, restart DeepSeek Harness.

Configuration & Usage

After restart, navigate to the “Installed” list in the “Plugins” panel, find “Tavily Web Search”, and open its settings page.

  1. Apply for an API Key at tavily.com and enter it. If left blank, Tavily’s keyless mode will be used.
  2. Enable the “Use Tavily for web search” toggle.
  3. Click “Connectivity Test” to verify that the configuration is working.

Fallback mechanism: When the toggle is disabled, web_search falls back to the platform’s built-in (default) search provider, so installation alone does not alter existing behavior. Changes to the toggle and API Key take effect immediately after saving, without requiring another restart.

API Key Storage

The API Key does not appear in configuration files or session records. It is stored as a credential in $DSH_HOME/.credentials.yaml, with the following content:

TAVILY_API_KEY: tvly-xxxxxxxx

Additionally, TAVILY_API_KEY can be injected via startup environment variables, which takes precedence over the credential file.

Configuration Options

The settings page writes to the web-search-tavily entry in the profile patch. You can also directly edit this entry. Available configuration options include:

- id: web-search-tavily
  config:
    enabled: true
    maxResults: 8
    searchDepth: basic
    searchTimeoutMs: 30000
Field Default Value Description
enabled false Whether to perform searches via Tavily; falls back to platform search when off
apiKeyEnv TAVILY_API_KEY Credential reference name for reading the API Key
baseURL https://api.tavily.com Tavily API endpoint address
allowCustomBaseURL false Whether to allow non-official API endpoints
maxResults 5 Number of results returned when not specified in the request
searchDepth basic basic or advanced
searchTimeoutMs 30000 Single request timeout (milliseconds)

Notes

This plugin is open-sourced under the MIT License, with some code derived from SZMY-haruhi/dsh-tavily. Before installation, please ensure you have read the source code and license declaration (see THIRD-PARTY-NOTICES.md in the project root directory).

This plugin provides a standardized Tavily search access point for DSH. Through toggle control and secure credential management, it enables flexible invocation of external search capabilities without altering the platform’s default behavior.

Project Directory | Source Repository

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

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

Xiaoye