插件目录 / UI & Skins / dsh-web-search-pool
dsh-web-search-pool
已验证 · 实测可装 DreamRift
功能简介
DeepSeek Harness 网页搜索插件:多个 Tavily/Exa key 按限流负载均衡,429 自动换 key,含设置页 UI 与 Tavily 额度总览。
可用 — 实测通过,早期项目
DeepSeek Harness 网页搜索插件:多个 Tavily/Exa key 按限流负载均衡,429 自动换 key,含设置页 UI 与 Tavily 额度总览。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-web-search-pool
DeepSeek Harness 的 多供应商搜索负载均衡插件。将多个 Tavily 和 Exa API keys 组织成智能池,自动按限流调度并故障切换。
✨ Features
- 🔑 Multi-key Pool: 支持多个 Tavily + Exa keys,统一管理
- ⚖️ Smart Load Balancing: 基于 RPM(每分钟的请求数)加权轮询调度
- 🔄 Automatic Fallback: 429 rate limit、额度耗尽、网络错误时自动切换到下一个 key
- 📊 Usage Dashboard: Settings 页卡片实时查看已用额度、总限额、刷新按钮
- 🔒 Secure: API keys 通过 DSH credentials service 保存,不写入配置文件
- 🎯 Exa Anonymous Free Tier: 内置免费匿名层(1 req/sec),有 key 走 REST 提配额
- 🏗️ Native Bundle (rc.7): DeepSeek Harness 官方式原生 Bundle 集成
📦 Installation
# Build distribution package
npm pack
# Install to your profile
dsh plugin --profile web add ./dsh-web-search-pool-0.1.0-rc.7.tgz
Prerequisites
- ✅ DeepSeek Harness 0.1.0-rc.7 or higher
- 🔐 At least one search provider API key (Tavily / Exa)
⚙️ Configuration
After installation, configure via DSH Settings UI:
- Open DeepSeek Harness → Settings → Plugins
- Find "搜索 Key 池" card and expand it
- Add your Tavily/Exa keys with:
- Environment Variable Name (e.g.,
TAVILY_API_KEY_1) - Rate Limit (RPM): requests per minute
- Remark: friendly name (optional)
- Environment Variable Name (e.g.,
- Click Save - secrets are stored securely via credentials
🔐 All API keys are stored in DS H's credential system, never in plain-text configs.
🛠️ Usage
Once configured, the plugin automatically becomes your default web_search tool. No manual selection needed!
The provider will:
- Select optimal key based on current quota and load
- Switch providers (Tavily ↔ Exa) on failure
- Respect rate limits and quotas across all keys
- Return structured errors without exposing sensitive data
🧪 Testing
# Run test suite
npm run test
# Syntax check
node --check src/**/*.js scripts/*.mjs
# Pack integrity check
npm pack --dry-run
📄 Documentation
- Installation Guide - Quick setup for rc.7
- Upgrade & Rollback Guide - Migrate from v0.2.x, troubleshooting
- Development History & Specs - Design decisions and specifications
- [Architecture Overview](AI搜索Key池负载均衡 - 开发计划.md) - Technical architecture and trade-offs
🔧 Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| No settings card | Legacy rc.6 slot registration | Update to use key: web-search-pool, restart DSH |
| Still using official search | Bundle patch not loaded | Reinstall tarball, verify searchProvider: search-pool |
| Usage refresh fails | Invalid credentials or quota exhausted | Check credentials config, wait for quota recovery |
See Upgrade Guide for complete table.
🏗️ Architecture
See technical design docs:
🔐 Security
This plugin follows Zero Trust for credentials:
- No hardcoded secrets or API keys
- Keys only stored via DSH credentials service
- Never logged or exposed in responses
- Public anonymous mode available (Exa free tier)
📜 License
MIT License - see LICENSE file
🤝 Contributing
Issues and PRs welcome! Please follow existing patterns:
- Core logic in
src/core/(DSH-independent) - Provider implementation in
src/dsh/(Host half) - Client UI in
src/dsh/client.js(Web half) - Tests parallel production coverage (TDD)
See Development Guidelines for best practices.
Built for DeepSeek Harness community · Part of native ecosystem
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-web-search-pool」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:DreamRift/dsh-web-search-pool Headless(CLI)profile:
dsh plugin --profile headless add github:DreamRift/dsh-web-search-pool 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。