openclaw - 💡(How to fix) Fix Feature Request: Support multiple Tavily API keys for failover [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#59374Fetched 2026-04-08 02:24:34
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0

Error Message

  • Quota exhaustion error is returned

Code Example

plugins:
     entries:
       "tavily-search":
         enabled: true
         config:
           apiKey:
             - key_1
             - key_2
             - key_3

---

TAVILY_API_KEY_1=xxx
   TAVILY_API_KEY_2=xxx
RAW_BUFFERClick to expand / collapse

Problem

When the Tavily API key reaches its rate limit or runs out of quota, users need to manually switch to another API key. Currently, OpenClaw only supports a single Tavily API key configuration, which is inconvenient for users who have multiple keys.

Use Case

In a production environment, users may have:

  • Multiple Tavily accounts with separate API keys
  • Different rate limits per key
  • Need for seamless failover when one key is exhausted

Expected Behavior

Support configuring multiple Tavily API keys, with automatic failover when the primary key is rate-limited or exhausted.

Suggested Implementation

  1. Allow apiKey in plugins.entries."tavily-search".config to be an array:

    plugins:
      entries:
        "tavily-search":
          enabled: true
          config:
            apiKey:
              - key_1
              - key_2
              - key_3
  2. OpenClaw automatically rotates to the next key when:

    • Rate limit (429) is hit
    • Quota exhaustion error is returned
  3. Alternatively, support environment variable fallback:

    TAVILY_API_KEY_1=xxx
    TAVILY_API_KEY_2=xxx

Benefits

  • Improved reliability for production deployments
  • Better cost management (switching keys when one runs out)
  • Seamless user experience without manual intervention

Related

  • Current config: plugins.entries."tavily-search".config.apiKey (single string)
  • Tavily API documentation: https://tavily.com

extent analysis

TL;DR

To support multiple Tavily API keys with automatic failover, modify the plugins.entries."tavily-search".config.apiKey configuration to accept an array of keys.

Guidance

  • Update the plugins.entries."tavily-search".config.apiKey configuration to an array format, as suggested in the issue, to allow multiple API keys.
  • Implement automatic key rotation when a rate limit (429) error or quota exhaustion error is encountered, switching to the next available key in the array.
  • Consider supporting environment variable fallbacks, such as TAVILY_API_KEY_1, TAVILY_API_KEY_2, etc., for additional flexibility.
  • Review the Tavily API documentation to ensure compliance with their rate limiting and quota policies.

Example

plugins:
  entries:
    "tavily-search":
      enabled: true
      config:
        apiKey:
          - key_1
          - key_2
          - key_3

Notes

The implementation details for automatic key rotation and error handling are not specified in the issue, so additional development and testing may be required to ensure seamless failover.

Recommendation

Apply the suggested implementation to support multiple Tavily API keys with automatic failover, as it provides improved reliability and cost management for production deployments.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Feature Request: Support multiple Tavily API keys for failover [1 participants]