tavily-quota-router

Tavily quota-aware multi-key search router. Use when you want reliable Tavily-backed web search across multiple API keys, automatic failover for invalid/rate-limited keys, official usage-based routing via Tavily's /usage endpoint, and status visibility for each key. Prefer this when the user explicitly wants multi-key Tavily routing instead of OpenClaw's built-in single-key web_search provider.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "tavily-quota-router" with this command: npx skills add 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:

python3 scripts/tavily_multi_key.py status

Test all keys:

python3 scripts/tavily_multi_key.py test-keys

Search:

python3 scripts/tavily_multi_key.py search --query 'OpenClaw docs' --count 5

Reset only local state:

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

{
  "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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

通义晓蜜 - 智能外呼

触发阿里云晓蜜外呼机器人任务,自动批量拨打电话。适用于批量外呼、客户回访、满意度调查、简历筛查约面试等场景。可从前置工具或节点获取外呼名单。

Registry SourceRecently Updated
General

Letterboxd Watchlist

Scrape a public Letterboxd user's watchlist into a CSV/JSONL list of titles and film URLs without logging in. Use when a user asks to export, scrape, or mirror a Letterboxd watchlist, or to build watch-next queues.

Registry SourceRecently Updated
General

Seedance Video Generation

Generate AI videos using ByteDance Seedance. Use when the user wants to: (1) generate videos from text prompts, (2) generate videos from images (first frame, first+last frame, reference images), or (3) query/manage video generation tasks. Supports Seedance 1.5 Pro (with audio), 1.0 Pro, 1.0 Pro Fast, and 1.0 Lite models.

Registry SourceRecently Updated
4.2K17jackycser
General

Universal Skills Manager

The master coordinator for AI skills. Discovers skills from multiple sources (SkillsMP.com, SkillHub, and ClawHub), manages installation, and synchronization...

Registry SourceRecently Updated