JPA957/dsh-web-search-anysearch ↗★ 0

@jpa957/dsh-web-search-anysearch

提供支持API密钥轮换与故障转移的搜索引擎插件。 适合需要配置多密钥轮换、高可用网络搜索服务的开发者和高级用户。

包名
@jpa957/dsh-web-search-anysearch
兼容性
待验证
Harness 依赖范围
*
版本
0.3.0
许可证
MIT
最近更新
2026年9月3日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JPA957/dsh-web-search-anysearch

Configuration in the Settings tab

Open the web app's Settings → AnySearch tab: the page lets you set

  • API key — stored in the Host's credentials store under the key reference below; the literal is never sent back to the browser (the card only reports configured / unset).
  • Key reference — the credential/environment name the provider resolves per search; defaults to ANYSEARCH_API_KEY. A comma-separated value forms a key pool.
  • Endpoint base — defaults to https://api.anysearch.com when blank.
  • Max results — result count requested per search (1-10).

Edits are staged and written on Save; Discard reverts. The settings namespace is web-search-anysearch (the section the card edits), so the same configuration can also be managed through the settings document.

Key-pool behavior

Keys are gathered from the credentials reference (comma-split), plus any composition-layer apiKey/apiKeys literals, deduplicated. Searches rotate round-robin; a key-scoped failure — rate limiting (HTTP 429 / "retry after N seconds", honoring the API's retry-after header), quota exhaustion, or auth rejection (401/403) — puts that key on cooldown (60s default, 10min for auth/quota) and retries the next key within the same search, up to six attempts. An exhausted pool aggregates one WEB_PROVIDER_ERROR naming the pool size, masked key, and the API's request_id. An empty pool searches anonymously.