返回顶部
t

tavily-quota-router

>-

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
92
下载量
1
收藏
概述
安装方式
版本历史

tavily-quota-router

# Tavily Quota Router Use this skill for **multi-key Tavily search routing**. Do not confuse it with OpenClaw's built-in `web_search` provider. ## What this skill does - Reads multiple Tavily API keys from `config/keys.json` - Syncs each key's real usage from Tavily's official `/usage` endpoint - Chooses a healthy key automatically before each search - Skips invalid, rate-limited, exhausted, or cooled-down keys - Exposes status information for every configured key ## Best use cases Use this skill when the user wants any of the following: - Multiple Tavily API keys with automatic routing - Quota-aware Tavily search instead of single-key search - Better resilience when one key becomes invalid or temporarily unavailable - Visibility into per-key usage and remaining plan quota ## Files - `config/keys.json` - active multi-key configuration - `config/keys.example.json` - configuration example - `state/quota.json` - local runtime state and cooldown markers - `scripts/tavily_multi_key.py` - core router script If `config/keys.json` is still empty, copy the structure from `config/keys.example.json` and add real keys before searching. ## Commands Show status: ```bash python3 scripts/tavily_multi_key.py status ``` Test all keys: ```bash python3 scripts/tavily_multi_key.py test-keys ``` Search: ```bash python3 scripts/tavily_multi_key.py search --query 'OpenClaw docs' --count 5 ``` Reset only local state: ```bash python3 scripts/tavily_multi_key.py reset-month ``` ## Usage rules 1. Check `config/keys.json` first. 2. If no keys are configured, stop and tell the user to add keys. 3. Prefer the bundled script over ad-hoc Tavily requests. 4. Be clear that this is a **multi-key Tavily wrapper**, not the built-in OpenClaw `web_search` provider. 5. If the user later wants this behavior wired into their default search stack, handle that as a separate configuration task instead of silently mutating the built-in provider. ## Routing policy - Sync usage via Tavily's official `/usage` endpoint - Prefer keys with more remaining quota - Prefer lower `search_usage` when remaining quota is comparable - Disable keys on `401/403` - Cool down keys temporarily on transient errors like `429`, `5xx`, or timeouts ## Example config ```json { "cooldown_minutes": 10, "keys": [ "tvly-xxx1", "tvly-xxx2" ] } ``` ## Notes - This skill relies on Tavily's official API responses for usage and plan data. - Local state is only used for cooldown/error handling and last synced snapshots. - This skill is designed for controlled multi-key routing, not anonymous/public key distribution.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 tavily-quota-router-1776054317 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 tavily-quota-router-1776054317 技能

通过命令行安装

skillhub install tavily-quota-router-1776054317

下载 Zip 包

⬇ 下载 tavily-quota-router v1.0.0

文件大小: 5.32 KB | 发布时间: 2026-4-14 13:59

v1.0.0 最新 2026-4-14 13:59
Initial release of the Tavily Quota Router skill:

- Enables quota-aware, multi-key Tavily web search with automatic routing and failover
- Syncs API key usage via Tavily's official `/usage` endpoint
- Automatically selects a healthy key and skips invalid, rate-limited, or exhausted keys
- Provides per-key usage and status visibility
- Includes commands to check status, test keys, perform searches, and reset local state
- Requires user configuration of multiple Tavily API keys in `config/keys.json`

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部