Integrate AnySearch into DeepSeek Harness to provide real-time web search, vertical domain search, and concurrent batch search capabilities.
$ dsh plugin --profile web add github:anysearch-team/anysearch-dshRun the command above in your terminal to install this plugin via the dsh CLI. You can switch Profile in the top-right corner. New to dsh? Read the beginner tutorial
Bring AnySearch's search capabilities as a plugin to DeepSeek Harness, enabling Harness's built-in web search to use AnySearch's real-time data source, while adding vertical domain search and concurrent batch search tools.
web_search with AnySearch as the data source, returning results with title, summary, and URL for easy citationanysearch_capabilities tool for models to discover searchable domains, vertical categories, and supported parameters in real-timeanysearch_search tool supporting vertical search by tags, region, language and dynamic parameters, with optional cleaned contentanysearch_batch_search tool for concurrent execution of 1-5 independent searches, where single failure doesn't affect other resultstype: module, sideEffects: false)@deepseek-ai/cordis (Cordis plugin runtime), @deepseek-ai/dsh-tools (tool registration), @deepseek-ai/dsh-credentials (credentials parsing), @deepseek-ai/schemastery (configuration schema)cordis.patch.yml sets searchProvider to anysearch and registers web-search-anysearch entry; plugin apply() replaces default search Provider via ctx.web.registerSearchProvider and registers three advanced tools to ctx.toolssrc/index.ts (exports apply, Config, name = 'web-search-anysearch', inject = ['web', 'credentials', 'tools'])Harness users want more real-time and professional search results without the model leaving Harness — for example, queries across vertical data sources like finance, academia, law, code, or running multiple independent search tasks in the same turn. This plugin挂载 AnySearch's search infrastructure into Harness's tool system; regular prompts continue using web_search, while professional searches are automatically handled by the advanced tools when needed.
| Dependency | Minimum Version | Description |
|---|---|---|
| DSH (cordis/credentials/tools/web) | 0.1.0-rc.6+ (cordis ≥4.0.1-rc.1 <5) | From peerDependencies |
| Node.js | ^22.19.0 or >=24.0.0 | From engines.node |
| pnpm | 11.7.0+ | DSH plugin command relies on pnpm for profile management |
| Platform | macOS / Windows / Linux | README states same install command for all three platforms |
| Native Modules | None | Pure HTTP client, no node-pty, node:sqlite or other native dependencies |
dsh plugin --profile web add github:anysearch-team/anysearch-dsh
| Config | Type | Description | Default |
|---|---|---|---|
apiKeyEnv | String (credential reference name) | DSH credential reference; falls back to AnySearch anonymous quota on parse failure | ANYSEARCH_API_KEY |
baseURL | String (absolute URL) | AnySearch API base address, must be http or https, cannot include user info | https://api.anysearch.com |
maxRenderedContentChars | Integer (≥1) | Maximum cleaned content characters to show the model per advanced tool call | 12000 |
Q: What does this plugin do?
A: It integrates AnySearch into DeepSeek Harness, making Harness's built-in web_search and three new tools all use AnySearch's real-time data source; regular web search, vertical search, and batch search share the same credentials.
Q: Is an API Key required?
A: No. For quick trials without an API Key, requests use AnySearch's anonymous quota. After registering an AnySearch account and writing to ~/.dsh/.credentials.yaml (key ANYSEARCH_API_KEY: "as_sk_xxx") or a same-named environment variable, you get 1000 free daily calls.
Q: What's the relationship with Harness's built-in web_search?
A: After installation, cordis.patch.yml sets web.searchProvider to anysearch; regular queries still go through Harness's web_search, but the underlying data source is switched to AnySearch; professional searches are handled by the new tools anysearch_search, anysearch_batch_search, anysearch_capabilities.
Q: How to uninstall?
A: Run dsh plugin --profile web remove @anysearch/anysearch-dsh; Harness will remove the AnySearch Provider and fall back to the built-in search Provider; use dsh plugin --profile web update @anysearch/anysearch-dsh for updates.
Q: Doesn't it support Windows / Linux / macOS?
A: All three platforms are supported with the same install command, but requires Node.js, npx, and pnpm to be in PATH.
Q: What to do when errors occur?
A: All plugin errors are categorized under AnySearchClientError, with diagnostic fields like request_id, httpStatus, retry-after; use dsh --profile web --dump-config to check combined configuration (credential values are not output). If upstream issues are suspected, contact AnySearch with the returned request_id for investigation.
Beginner — one-click install command, works with default config, no manual YAML editing needed; configuration editing only required when custom API addresses or limits are needed.
anysearch_extract tool provided; extracting full pages requires using AnySearch MCPsrc/tools/batch.ts:16); single tool timeout is 60 seconds (src/limits.ts:2)AnySearch-powered real-time web and vertical search for DeepSeek Harness.
English | 简体中文
@anysearch/anysearch-dsh connects AnySearch to DeepSeek Harness as a plugin. Keep using Harness's native web_search while gaining real-time web search, vertical search, and concurrent batch search.
AnySearch is search infrastructure for AI agents, covering the public web and specialized data sources across code, finance, academia, law, security, and more.
# Fetch the complete installation guide, read it end to end, and then follow it step by step:
curl -fsSL https://raw.githubusercontent.com/anysearch-team/anysearch-dsh/refs/heads/main/docs/agent-installation.md
Install the plugin into the web profile:
npx -y @deepseek-ai/dsh plugin --profile web add @anysearch/anysearch-dsh
Start DeepSeek Harness:
npx -y @deepseek-ai/dsh web
No API key is required for a quick start. Requests use AnySearch's anonymous quota until you configure one.
web_search, AnySearch returns results with titles, snippets, and URLs for easy citation.Try it without an API key.
Sign up for an AnySearch account and configure an API key to get 1,000 free search calls per day.
Sign up or sign in at anysearch.com, then visit API Keys to get one. Store the key in $DSH_HOME/.credentials.yaml (~/.dsh/.credentials.yaml by default):
ANYSEARCH_API_KEY: "as_sk_your_key"
The plugin resolves the managed credential for every operation, so credential rotation reaches the next request without restarting DSH. A launching ANYSEARCH_API_KEY environment variable has higher priority.
Inspect the composed profile without exposing the credential value:
npx -y @deepseek-ai/dsh --profile web --dump-config
| Use case | Harness tool |
|---|---|
| Ordinary web search | web_search |
| Discover available domains and tags | anysearch_capabilities |
| Vertical or parameterized search | anysearch_search |
| Run one to five searches together | anysearch_batch_search |
For ordinary prompts, let Harness select the tool. Models can discover live domain and parameter definitions before making a specialized search.
Requires Node.js 22.19 or Node.js 24+, pnpm 11.7, and DeepSeek Harness. The DSH plugin command uses pnpm to manage profile dependencies, so pnpm must be available on PATH.
Windows, Linux, and macOS use the same installation command. Before installing, ensure that Node.js, npx, and pnpm can all be run directly from PATH.
The bundled profile layer automatically selects AnySearch as the existing ctx.web provider and mounts the advanced tools, so no changes are required by default.
To customize it, ask an AI assistant—or edit it manually—to add the complete block below to the target DSH profile's user configuration layer, overriding the bundled id: web-search-anysearch entry. Keep the id unchanged, replace the complete config, and do not add a second AnySearch provider under a different ID:
- id: web-search-anysearch
config:
apiKeyEnv: ANYSEARCH_API_KEY
baseURL: https://api.anysearch.com
maxRenderedContentChars: 12000
| Field | Default | Purpose |
|---|---|---|
apiKeyEnv | ANYSEARCH_API_KEY | DSH credential reference; missing uses anonymous access |
baseURL | https://api.anysearch.com | AnySearch API base URL |
maxRenderedContentChars | 12000 | Maximum cleaned-content characters rendered to the model per advanced tool call |
Update:
npx -y @deepseek-ai/dsh plugin --profile web update @anysearch/anysearch-dsh
Remove:
npx -y @deepseek-ai/dsh plugin --profile web remove @anysearch/anysearch-dsh
anysearch_extract. For full-page extraction, use AnySearch MCP.Join the AnySearch community to share your experience, report issues, and get technical support.
WeChat group survey![]() | Discord invite![]() |
git clone https://github.com/anysearch-team/anysearch-dsh.git
cd anysearch-dsh
pnpm install
pnpm run check
The live AnySearch E2E suite is opt-in. Run it without ambient credentials in anonymous mode:
ANYSEARCH_E2E=1 ANYSEARCH_E2E_ANONYMOUS=1 pnpm run test:e2e