Skip to main content
RapidDev - Software Development Agency

How to Install and Use Tavily AI Search in OpenClaw

To use Tavily AI Search in OpenClaw, run `clawhub install tavily-ai-search` in your terminal, get a free API key at app.tavily.com, and set TAVILY_API_KEY in your OpenClaw config. Once configured, type natural language search queries directly into OpenClaw chat and get AI-ranked, relevance-scored results with extracted content — not just blue links.

What you'll learn

  • How to install the tavily-ai-search skill using ClawHub in one command
  • How to generate a Tavily API key and configure it in OpenClaw
  • The difference between Tavily AI Search and Tavily Web Search, and when to use each
  • How to write effective OpenClaw chat prompts that get precise, AI-ranked search results
  • How to tune search depth and result count for different use cases
Book a free consultation
4.9Clutch rating
600+Happy partners
17+Countries served
190+Team members
Beginner13 min read5 minutesSearch & ScrapingMarch 2026RapidDev Engineering Team
TL;DR

To use Tavily AI Search in OpenClaw, run `clawhub install tavily-ai-search` in your terminal, get a free API key at app.tavily.com, and set TAVILY_API_KEY in your OpenClaw config. Once configured, type natural language search queries directly into OpenClaw chat and get AI-ranked, relevance-scored results with extracted content — not just blue links.

Why Tavily AI Search Is the #1 OpenClaw Search Skill

Tavily AI Search is the most-searched OpenClaw skill because it solves the core problem of web search inside AI agents: traditional search engines return ten blue links, but AI agents need structured, relevant, pre-extracted content they can reason over. Tavily was built from the ground up for this use case. When OpenClaw sends a query, Tavily fetches multiple web sources, extracts the meaningful content from each page, and runs an AI ranking pass to return only the most relevant results — including a synthesized answer when one can be inferred. This means your OpenClaw agent gets research-grade information without needing to scrape and parse raw HTML itself.

The AI-enhanced result format is what distinguishes this skill from the companion tavily-web-search skill. Tavily Web Search returns raw, unranked results at lower cost and higher speed — useful when you want to process results yourself or run many queries in bulk. Tavily AI Search applies post-processing to every query, which adds a small amount of latency but delivers dramatically better signal-to-noise ratio for research, fact-checking, competitive analysis, and any task where answer quality matters more than raw throughput.

Tavily's free tier allows 1,000 API calls per month — more than enough for personal use and light production workloads. The generous free tier combined with one-command ClawHub installation is why this is OpenClaw's most popular search skill. Most users have Tavily AI Search running in under five minutes from a cold start, and the skill works across every OpenClaw-supported messaging platform: terminal, Slack, Discord, Telegram, and more.

Integration method

ClawHub Skill

Tavily AI Search is available as a native ClawHub skill, which means you install it with a single `clawhub install` command and it runs entirely inside OpenClaw. The skill handles authentication, query formatting, and result ranking automatically — you just ask questions in OpenClaw chat and Tavily fetches, ranks, and summarizes the most relevant web content in response. No separate server or proxy layer is needed.

Prerequisites

  • OpenClaw installed and running (see openclaw.ai for installation instructions)
  • ClawHub CLI available in your terminal (comes bundled with OpenClaw)
  • A free Tavily account at app.tavily.com to generate your API key
  • Terminal/command line access to run the clawhub install command

Step-by-step guide

1

Install the Tavily AI Search Skill via ClawHub

ClawHub is OpenClaw's official skill registry — the equivalent of npm for OpenClaw capabilities. Installing the tavily-ai-search skill adds web search functionality to your OpenClaw instance in a single command. Open your terminal (or the terminal panel inside your OpenClaw interface) and run the install command below. The installation downloads the skill package, validates its integrity, and registers it with your local OpenClaw configuration. You will see a confirmation message showing the skill version installed and the configuration keys it requires. The skill will not activate until you supply the API key in the next step — attempting to use it before configuration will produce a clear error message pointing you to the missing key. If you see a `clawhub: command not found` error, your OpenClaw installation may be incomplete or the ClawHub binary may not be on your PATH. Check your OpenClaw installation documentation to verify the installation path, or reinstall OpenClaw to get a fresh ClawHub setup.

terminal
1clawhub install tavily-ai-search

Pro tip: Run `clawhub list` after installation to confirm the skill appears in your installed skills inventory. You can also run `clawhub info tavily-ai-search` to see all available configuration options for the skill.

Expected result: Terminal shows a success message: 'tavily-ai-search@X.X.X installed successfully. Required config: TAVILY_API_KEY'. The skill appears when you run `clawhub list`.

2

Get Your Tavily API Key

Tavily provides a free API tier with 1,000 requests per month — plenty for personal use and development. Navigate to app.tavily.com and sign up or log in. Once inside the dashboard, look for the 'API Keys' section in the left sidebar or under your account settings. Click 'Create API Key'. Give it a descriptive name like 'OpenClaw Integration'. Tavily generates the key immediately — it starts with `tvly-`. Copy the full key now, as the dashboard may not display it again after you navigate away (though you can always generate a new one if needed). Tavily API keys on the free tier are rate-limited to 100 requests per minute and 1,000 per month. If you plan to use Tavily AI Search heavily or in automated workflows, consider upgrading to a paid plan. The Research plan at $35/month provides 10,000 requests per month with higher rate limits and access to advanced search depth settings. Keep your API key private — it is scoped to your Tavily account and any searches performed with it count against your quota.

Pro tip: Tavily's free tier resets monthly. You can monitor your usage in the Tavily dashboard to avoid hitting the limit during critical work periods. If you need temporary extra capacity, paid plans activate immediately.

Expected result: You have a Tavily API key starting with `tvly-` copied to your clipboard, ready to add to OpenClaw's configuration.

3

Configure the API Key in OpenClaw

OpenClaw stores skill configuration in a local config file or as environment variables, depending on your installation type. The recommended method is to set the key in your OpenClaw `.env` file or skill config — this keeps credentials out of shell history and applies them persistently across sessions. Locate your OpenClaw configuration directory (typically `~/.openclaw/` on macOS/Linux or `%APPDATA%\openclaw\` on Windows). Open the `.env` file in that directory with any text editor, or create it if it does not exist. Add your Tavily API key as shown in the code block below. Alternatively, use the `clawhub config set` command to set the key directly from the terminal — this writes to the same config file without requiring you to open an editor. After saving the configuration, restart OpenClaw or reload your configuration for the change to take effect. On most installations, running `clawhub reload` is sufficient without a full restart.

.env
1# Option A: Add to ~/.openclaw/.env
2TAVILY_API_KEY=tvly-your-api-key-here
3
4# Option B: Set via clawhub config command
5clawhub config set TAVILY_API_KEY tvly-your-api-key-here
6
7# Verify the key is set
8clawhub config get TAVILY_API_KEY

Pro tip: Never paste your API key directly into an OpenClaw chat prompt or commit it to a git repository. If you accidentally expose your key, generate a new one in the Tavily dashboard immediately — old keys can be revoked with one click.

Expected result: Running `clawhub config get TAVILY_API_KEY` returns your key (masked as tvly-****). OpenClaw confirms the tavily-ai-search skill is active and ready.

4

Test the Skill with a Search Query in OpenClaw Chat

Open OpenClaw chat and type a natural language search prompt. The tavily-ai-search skill activates automatically when OpenClaw determines a web search is appropriate — you do not need to prefix commands or invoke the skill by name. Just ask questions naturally and OpenClaw routes search-type queries to Tavily. Tavily AI Search returns results with the following structure: a synthesized answer (when available), a ranked list of sources with titles, URLs, and extracted content snippets, and relevance scores for each result. The AI post-processing phase is what produces this structured output — raw Tavily Web Search returns the same sources but without the ranking and synthesis layer. For optimal results, be specific in your queries. Vague queries like 'tell me about AI' produce lower-quality results than targeted queries like 'what are the latest benchmark results for Claude 3.7 Sonnet on coding tasks'. The more context Tavily has, the better it can rank and filter results.

OpenClaw Prompt

Search the web for the latest developments in quantum computing announced in 2026 and give me a summary of the top 3 most significant breakthroughs with sources.

Paste this in OpenClaw chat

Pro tip: If OpenClaw does not seem to be using Tavily for a query, try explicitly mentioning 'search the web' or 'look up online' in your prompt. This signals to OpenClaw that external search is appropriate rather than answering from its training data.

Expected result: OpenClaw returns a structured response with a synthesized answer, 3-5 ranked source URLs with content excerpts, and relevance metadata. The response takes 2-5 seconds depending on query complexity.

5

Advanced Configuration: Search Depth and Result Count

The tavily-ai-search skill exposes several configuration options that let you tune search behavior for your specific use cases. The two most important settings are search depth and max results. **Search depth** controls how thorough Tavily's crawling is. The default `basic` depth fetches the top search results and extracts content from their main pages. The `advanced` depth performs a deeper crawl, following links and extracting content from more pages per result — useful for research tasks but slower and more expensive in API credits. **Max results** controls how many ranked sources are returned per query. The default is 5, which is appropriate for most conversational queries. For research tasks where you want broad coverage, increase this to 10. For quick factual lookups, reduce it to 3 to get faster responses. You can also set a time-based filter to restrict results to content published within a specific timeframe — useful for news monitoring and keeping OpenClaw's answers current. RapidDev offers custom OpenClaw configuration reviews for teams looking to optimize skill settings for specific research workflows — particularly useful when integrating Tavily AI Search into automated pipelines alongside other skills.

OpenClaw Prompt

Search the web for recent funding rounds in the AI startup space in Q1 2026. Use a deep search to find comprehensive coverage across multiple sources.

Paste this in OpenClaw chat

tavily-ai-search.yaml
1# Advanced skill configuration in ~/.openclaw/skills/tavily-ai-search.yaml
2tavily-ai-search:
3 search_depth: advanced # basic (default) or advanced
4 max_results: 10 # default: 5, range: 1-20
5 include_answer: true # include synthesized answer (default: true)
6 include_raw_content: false # include full page content (increases response size)
7 days: 7 # restrict to content from last N days (optional)
8 include_domains: [] # restrict to these domains only (optional)
9 exclude_domains: [] # exclude these domains (optional)

Pro tip: Advanced search depth uses approximately 2x more API credits than basic depth. Reserve it for research tasks where comprehensiveness matters. For casual queries, keep the default basic depth to preserve your monthly quota.

Expected result: Searches with advanced depth return more comprehensive results from a wider set of sources, taking 5-10 seconds instead of 2-5. The result set shows more domain diversity.

Common use cases

Real-Time Competitive Research

Ask OpenClaw to research a competitor's recent product announcements, pricing changes, or press coverage. Tavily AI Search pulls live web content, ranks the most relevant pages, and presents a concise summary — replacing hours of manual tab-switching with a single chat message.

OpenClaw Prompt

Search the web for what Notion has announced in the last 30 days, including any new features, pricing changes, or partnerships. Summarize the top 5 most relevant findings.

Copy this prompt to try it in OpenClaw

Fact-Checking and Source Verification

Use Tavily AI Search to verify claims before including them in documents, emails, or reports. The skill returns sourced content with URLs so you can trace every fact back to its original page and confirm credibility.

OpenClaw Prompt

Find authoritative sources that confirm or deny the claim that GPT-4 has a 128,000 token context window. List the sources with their URLs and publication dates.

Copy this prompt to try it in OpenClaw

Aggregated News Briefing on Any Topic

Configure a recurring OpenClaw workflow that runs a Tavily AI Search each morning and delivers a curated news briefing on topics you care about — startups, a specific industry, regulatory changes, or a competitor's activity.

OpenClaw Prompt

Search for the latest news about AI regulation in the European Union from the past 7 days. Summarize each article in 2 sentences and include the source URL.

Copy this prompt to try it in OpenClaw

Troubleshooting

OpenClaw chat returns 'tavily-ai-search: authentication failed' or '401 Unauthorized'

Cause: The TAVILY_API_KEY is not set in OpenClaw's configuration, is set under a different variable name, or the key value was copied incorrectly (truncated or with extra whitespace).

Solution: Run `clawhub config get TAVILY_API_KEY` to confirm the key is set. If it returns empty, re-run `clawhub config set TAVILY_API_KEY tvly-your-key-here`. Ensure there are no spaces around the `=` sign in your .env file. Verify the key starts with `tvly-` and matches exactly what the Tavily dashboard shows.

typescript
1# Check current config
2clawhub config get TAVILY_API_KEY
3
4# Re-set if missing or wrong
5clawhub config set TAVILY_API_KEY tvly-XXXXXXXXXXXXXXXXXXXX
6
7# Reload config
8clawhub reload

clawhub install tavily-ai-search fails with '429 Too Many Requests' or times out

Cause: ClawHub's skill registry has temporary rate limits during high-traffic periods, or your network connection is throttled. This is a ClawHub registry issue, not a Tavily issue.

Solution: Wait 2-3 minutes and retry the install command. If the error persists, check the ClawHub status page or OpenClaw community forums for any known registry outages. You can also try installing with the `--registry` flag pointing to an alternative mirror if one is available in your region.

typescript
1# Wait and retry
2sleep 120 && clawhub install tavily-ai-search
3
4# Or force reinstall if partially installed
5clawhub install tavily-ai-search --force

Search results are outdated — Tavily returns old content not reflecting recent events

Cause: The skill's default configuration does not restrict results by date, so Tavily may surface older, higher-ranked pages over newer content for some queries.

Solution: Add a `days` setting to your skill configuration to restrict results to recently published content. For news and current events queries, set `days: 7` or `days: 30`. You can also include the date context in your search prompt itself, e.g., 'in March 2026' or 'announced this week'.

typescript
1# Restrict to recent content in skill config
2tavily-ai-search:
3 days: 30 # only return content from last 30 days

Tavily AI Search returns fewer results than expected, or results seem low quality for technical topics

Cause: The default `basic` search depth may not crawl deeply enough for niche technical topics with limited mainstream coverage. Some specialized topics require `advanced` depth to find relevant content.

Solution: Switch to `advanced` search depth in your skill configuration for research-heavy queries. Also try rephrasing the query with more specific terminology — Tavily's ranking performs better with precise, domain-specific language than broad colloquial terms.

typescript
1# Use advanced depth for technical research
2clawhub config set tavily-ai-search.search_depth advanced

Best practices

  • Use specific, targeted search queries rather than broad questions — 'Claude 3.7 Sonnet benchmark results MMLU 2026' retrieves far better results than 'how good is Claude'.
  • Keep TAVILY_API_KEY in your OpenClaw .env file or skill config, never in chat history or shared configuration files that might be committed to version control.
  • Monitor your monthly API usage in the Tavily dashboard — the free tier allows 1,000 requests per month, and it is easy to approach this limit if you run automated or scheduled search workflows.
  • Use the `days` configuration parameter for news and current events queries to prevent Tavily from surfacing dated content that ranks highly due to domain authority rather than recency.
  • Prefer Tavily AI Search for quality-sensitive queries (research, fact-checking, reports) and switch to tavily-web-search for high-volume bulk queries where raw speed and cost matter more than AI ranking.
  • Combine Tavily AI Search with other OpenClaw skills — for example, search with Tavily, summarize findings with a summarize skill, then save results to Notion or Google Sheets using their respective skills.
  • Use `include_domains` to restrict searches to authoritative sources for professional domains — e.g., restrict medical queries to PubMed and CDC domains for higher-confidence clinical information.
  • If you share your OpenClaw instance with a team, generate separate Tavily API keys per user or environment so you can track usage and revoke access independently.

Alternatives

Frequently asked questions

How do I install Tavily AI Search in OpenClaw?

Run `clawhub install tavily-ai-search` in your terminal. Then get a free API key from app.tavily.com, and add it to your OpenClaw configuration with `clawhub config set TAVILY_API_KEY tvly-your-key-here`. Reload OpenClaw and you can immediately start using web search in chat.

What is the difference between Tavily AI Search and Tavily Web Search in OpenClaw?

Both skills use the same TAVILY_API_KEY and the same underlying search infrastructure. The difference is in post-processing: Tavily AI Search applies an AI ranking and synthesis layer to return relevance-scored, structured results with a synthesized answer. Tavily Web Search returns raw, unranked results faster and at lower API cost. Use Tavily AI Search for quality-sensitive research; use Tavily Web Search for bulk or speed-critical queries.

How do I configure the OpenClaw Tavily API key?

Run `clawhub config set TAVILY_API_KEY tvly-your-api-key-here` in the terminal. This writes the key to your OpenClaw skill configuration securely. You can also add `TAVILY_API_KEY=tvly-your-key` directly to the `~/.openclaw/.env` file. Run `clawhub reload` or restart OpenClaw after making changes.

ClawHub install tavily-search is not working — what should I do?

First verify the exact skill name: it is `tavily-ai-search` (with a hyphen, not an underscore). If the install fails with a network error, check your internet connection and try again in a few minutes — ClawHub's registry occasionally has brief rate limits. If the problem persists, run `clawhub install tavily-ai-search --force` to clear any partial installation state.

How many searches can I do with Tavily in OpenClaw for free?

Tavily's free tier provides 1,000 API requests per month at no cost. Each OpenClaw search prompt that triggers Tavily counts as one API request. The free tier is sufficient for personal use and light professional use. If you need more capacity, Tavily's Research plan at $35/month provides 10,000 requests per month.

Does RapidDev offer help with OpenClaw and Tavily search configuration?

Yes — RapidDev can help you set up Tavily AI Search as part of a broader OpenClaw configuration, particularly for teams building automated research pipelines or integrating multiple skills together. The setup described on this page is self-serve for individual users, but teams with more complex requirements can reach out to RapidDev for configuration support.

Why is Tavily returning results in the wrong language?

Tavily searches the global web and returns results based on query language and web content availability. If your query is in English but you want results in another language, add the language explicitly to your search prompt (e.g., 'en français' or 'in Japanese'). You can also add country-specific domains to the `include_domains` config to bias results toward a particular region's web content.

RapidDev

Talk to an Expert

Our team has built 600+ apps. Get personalized help with your project.

Book a free consultation

Need help with your project?

Our experts have built 600+ apps and can accelerate your development. Book a free consultation — no strings attached.

Book a free consultation

We put the rapid in RapidDev

Need a dedicated strategic tech and growth partner? Discover what RapidDev can do for your business! Book a call with our team to schedule a free, no-obligation consultation. We'll discuss your project and provide a custom quote at no cost.