dsh-web-search-pool
by DreamRift
DeepSeek Harness 网页搜索插件:多个 Tavily/Exa key 按限流负载均衡,429 自动换 key,含设置页 UI 与 Tavily 额度总览。
安装
dsh plugin --profile web add github:DreamRift/dsh-web-search-poolGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
目录
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
原始 README: https://github.com/DreamRift/dsh-web-search-pool/blob/main/README.md ↗
同类插件
查看全部 →
dsh-web-ui-all
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。

dsh-web-ui
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。

dsh-TUI
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。

DSH-better-sidebar
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。

working-activity
让 agent 的"工作状态行"活过来——实时工具动态与进度、俏皮文案、模型自述、上下文预警。同一套想法,适配两个平台: pi CLI 与 DeepSeek Harness(DSH) 。

deepseek-idesign
可视化设计工作室,支持网站、App 原型、海报、信息卡、报告和杂志的模板创建、元素编辑、选区级 AI 草稿衔接与导出。