Tavily Search V2
/install liang-tavily-search-v2
Tavily Search
Search the web and get relevant results optimized for LLM consumption.
Authentication
Get your API key at https://tavily.com and add to your OpenClaw config:
{
"skills": {
"entries": {
"tavily-search": {
"enabled": true,
"apiKey": "tvly-YOUR_API_KEY_HERE"
}
}
}
}
Or set the environment variable:
export TAVILY_API_KEY="tvly-YOUR_API_KEY_HERE"
Quick Start
Using the Script
node {baseDir}/scripts/search.mjs "query"
node {baseDir}/scripts/search.mjs "query" -n 10
node {baseDir}/scripts/search.mjs "query" --deep
node {baseDir}/scripts/search.mjs "query" --topic news
Examples
# Basic search
node {baseDir}/scripts/search.mjs "python async patterns"
# With more results
node {baseDir}/scripts/search.mjs "React hooks tutorial" -n 10
# Advanced search
node {baseDir}/scripts/search.mjs "machine learning" --deep
# News search
node {baseDir}/scripts/search.mjs "AI news" --topic news
# Domain-filtered search
node {baseDir}/scripts/search.mjs "Python docs" --include-domains docs.python.org
Options
| Option | Description | Default |
|---|---|---|
-n \x3Ccount> |
Number of results (1-20) | 10 |
--depth \x3Cmode> |
Search depth: ultra-fast, fast, basic, advanced |
basic |
--topic \x3Ctopic> |
Topic: general or news |
general |
--time-range \x3Crange> |
Time range: day, week, month, year |
- |
--include-domains \x3Cdomains> |
Comma-separated domains to include | - |
--exclude-domains \x3Cdomains> |
Comma-separated domains to exclude | - |
--raw-content |
Include full page content | false |
--json |
Output raw JSON | false |
Search Depth
| Depth | Latency | Relevance | Use Case |
|---|---|---|---|
ultra-fast |
Lowest | Lower | Real-time chat, autocomplete |
fast |
Low | Good | Need chunks but latency matters |
basic |
Medium | High | General-purpose, balanced |
advanced |
Higher | Highest | Precision matters, research |
Tips
- Keep queries under 400 characters - Think search query, not prompt
- Break complex queries into sub-queries - Better results than one massive query
- Use
--include-domainsto focus on trusted sources - Use
--time-rangefor recent information - Filter by
score(0-1) to get highest relevance results
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install liang-tavily-search-v2 - After installation, invoke the skill by name or use
/liang-tavily-search-v2 - Provide required inputs per the skill's parameter spec and get structured output
What is Tavily Search V2?
Web search using Tavily's LLM-optimized API. Returns relevant results with content snippets, scores, and metadata. It is an AI Agent Skill for Claude Code / OpenClaw, with 177 downloads so far.
How do I install Tavily Search V2?
Run "/install liang-tavily-search-v2" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Tavily Search V2 free?
Yes, Tavily Search V2 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Tavily Search V2 support?
Tavily Search V2 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Tavily Search V2?
It is built and maintained by 15914355527 (@15914355527); the current version is v1.0.0.