Setup Guide
OpenClaw Tavily Search Setup
Tavily is an AI-optimized web search API that gives your OpenClaw agent high-quality, structured search results. This guide covers how to get a Tavily API key, set Tavily as the search provider for your AI agent.
What Is Tavily?
Tavily is a search API designed specifically for AI agents and LLMs. Unlike traditional search engines that return links and snippets, Tavily returns clean, structured content that AI agents can immediately use — full article text, extracted answers, and organized data.
In OpenClaw, Tavily is a web search provider for the built-in web_search tool. It is not a ClawHub skill. Its plugin also adds two Tavily-specific tools, tavily_search and tavily_extract, for controls such as search depth and URL extraction.
Why Use Tavily with OpenClaw?
OpenClaw already has a built-in web_search tool, so why switch its provider to Tavily? Here are the key differences:
| Tavily Search | Default Search (no key) | |
|---|---|---|
| Result quality | Structured results built for LLMs | Title, URL and snippet |
| Answer extraction | Optional AI answer summary, via tavily_search | No |
| URL extraction | Yes — tavily_extract | Use the separate web_fetch tool |
| Cost | Free tier: 1,000 API credits/mo | No separate fee |
| API key required | Yes | No |
For casual use, the default search works fine. For agents that do heavy research or fact-checking, Tavily adds search depth, topic and domain controls, and URL extraction.
Step 1: Get a Tavily API Key
- Go to tavily.com and create an account
- Navigate to the API section in your dashboard
- Copy your API key (starts with
tvly-)
Tavily offers a free tier with 1,000 API credits per month, which is enough for personal AI agent use. Paid plans offer more searches and advanced features.
Step 2: Set Tavily as the Search Provider
Tavily is an official web search provider plugin for OpenClaw's built-in web_search tool. It is not a ClawHub skill, and there is no install command to type in the chat. The quickest route is the setup wizard, which installs and enables the plugin when needed, asks for your key and saves it for you:
openclaw configure --section webOr do it by hand. First install the plugin from a terminal:
openclaw plugins install @openclaw/tavily-pluginThen edit ~/.openclaw/openclaw.json: enable the plugin, add the key, and set tavily as the search provider:
{
"plugins": {
"entries": {
"tavily": {
"enabled": true,
"config": {
"webSearch": { "apiKey": "tvly-your-api-key-here" }
}
}
}
},
"tools": {
"web": {
"search": { "provider": "tavily" }
}
}
}You can also leave the key out of the file and set the TAVILY_API_KEY environment variable for the OpenClaw gateway instead. These steps were checked on OpenClaw 2026.11.6.
Step 3: Test It
Once Tavily is set as the provider, test it by asking your agent a question that requires web search:
- “Search the web for the latest news about AI”
- “What is the current weather in Tokyo?”
- “Find the latest release notes for Next.js”
Your agent will use Tavily to search the web. To confirm which provider is active, check that tools.web.search.provider is set to "tavily" in openclaw.json.
Advanced Configuration
Search Depth
The tavily_search tool, which the Tavily plugin adds next to web_search, supports two search depth levels:
- basic (default) — Fast search, suitable for most queries
- advanced — Deeper search with more sources, takes longer but provides more comprehensive results
Include/Exclude Domains
The tavily_search tool also accepts include_domains and exclude_domains, plus topic and time_range filters. This is useful when you want your agent to only reference trusted sources.
Tavily vs. Other Search Providers
OpenClaw supports several web search providers, and one provider serves web_search at a time. Here is how Tavily compares:
- Tavily — Search built for AI applications, with depth and topic controls, optional answer summaries, and a free tier.
- Brave Search API — Structured snippets with country, language and time filters.
- Firecrawl — A search provider that is also used for scraping and extracting content from specific URLs.
- Key-free providers (such as DuckDuckGo or a self-hosted SearXNG) — No API key needed. Good for basic lookups.
Troubleshooting
Agent Is Not Using Tavily
If your agent is still using another search provider after you set up Tavily:
- Check that
tools.web.search.provideris set to"tavily"inopenclaw.json - Check the API key is configured correctly
- Set the provider explicitly. If it is not set, OpenClaw uses the first provider that has a credential, in a fixed order that puts Brave ahead of Tavily
API Key Errors
If you see authentication errors, verify your Tavily API key:
- The key should start with
tvly- - Check for extra spaces or newlines in the key
- Verify your Tavily account is active and the key is not expired
- Check your monthly search quota on the Tavily dashboard
Use Tavily on OpenClaw Launch
Bots on OpenClaw Launch come with web search already working, with no API key to set up. To use Tavily instead, choose it in your bot's search setting on the Dashboard and enter your own Tavily key, or set the key and provider in openclaw.json from the bot's web Terminal as shown above.
Frequently Asked Questions
What is Tavily in OpenClaw?
Tavily is a web search provider for OpenClaw's built-in web_search tool. It connects your agent to Tavily's AI-optimized search API and returns structured results. Its plugin also adds tavily_search and tavily_extract tools for search depth, topic filters, optional answer summaries and URL extraction.
Is Tavily free to use with OpenClaw?
Tavily offers a free tier with 1,000 API credits per month (a basic search costs 1 credit, an advanced search 2, and extraction also uses credits), which is sufficient for personal AI agent use. The OpenClaw side has no extra charge. You only need a Tavily API key (free to create at tavily.com).
How do I set up Tavily on OpenClaw?
There is nothing to install from the chat: Tavily is an official search provider plugin. Run openclaw configure --section web and choose Tavily, which installs and enables the plugin when needed. Or run openclaw plugins install @openclaw/tavily-plugin and set tools.web.search.provider to "tavily" in openclaw.json and put your key under plugins.entries.tavily.config.webSearch.apiKey (or in the TAVILY_API_KEY environment variable).
Can I use Tavily and built-in web search together?
Only one provider serves web_search at a time, so Tavily replaces the default search once it is set as the provider. Fetching a specific URL is a separate tool, web_fetch, which is unaffected.
What's Next?
- Explore all skills — Browse thousands of skills beyond search — coding, automation, image generation, and more
- Compare AI models — Choose the best model to pair with Tavily search
- See pricing — Deploy a bot with web search already working, starting at $3/month
- Browser automation — Go beyond search with interactive web browsing