# Tavily search

> Tavily search is an open-source agent skill for web search and scraping. Gives your agent headless web search and clean page extraction via Tavily. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/LichAmnesia/lich-skills/tree/main/skills/tavily-search
- **Repository:** https://github.com/lichamnesia/lich-skills
- **GitHub stars:** 233
- **License:** MIT
- **Skill name:** tavily-search
- **Collection:** https://github.com/LichAmnesia/lich-skills
- **Categories:** [web search and scraping](https://ai-powered.com/categories/web-search-and-scraping)
- **Listing updated:** 2026-12-02

## About

This skill lets an agent run web searches through the Tavily API and pull the readable body of a single URL as markdown, without opening a browser. Searches can be tuned for depth, result count, news recency, and domain include or exclude lists, and can return a short synthesised answer with cited result URLs, optionally with full article bodies attached.

The skill wraps a Python script that is run with uv, which installs its dependencies on first use. Output is either a human-readable block with an answer and numbered results, or JSON for machine parsing. The instructions also cover when to prefer this over a browser tool and a few common failure cases such as missing keys, rate limits and empty results.

It needs a Tavily API key set as TAVILY_API_KEY (or TAVILY_KEY, or passed with a flag), and uv installed on the machine. The package is published in a Claude Code plugin marketplace under the lich-skills name.

## When your agent uses it

> Web search and content extraction via the Tavily API. Use when you need real-time web results, citations, or raw article content without a browser. Requires TAVILY_API_KEY.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/LichAmnesia/lich-skills/tree/HEAD/skills/tavily-search)
- [Network calls found in its scripts](https://github.com/LichAmnesia/lich-skills/tree/HEAD/skills/tavily-search)
- [License: MIT](https://github.com/LichAmnesia/lich-skills/tree/HEAD/skills/tavily-search)

## Features

- **Web search queries:** Runs real-time searches with adjustable result counts and a basic or advanced depth setting.
- **News mode filtering:** Restricts results to news articles and can limit them to a recent number of days.
- **URL content extraction:** Fetches a single page and returns its main text as markdown, stripped of navigation and ads.
- **Domain include and exclude:** Narrows or removes results from comma-separated lists of web domains.
- **JSON and text output:** Prints either a readable answer with numbered sources or machine-readable JSON.
- **Key and error guidance:** Explains how the API key is looked up and what to do about auth, rate limit and empty-result errors.

## Good for

- Find the current pricing of a software product
- Research recent news on a topic from the last few days
- Pull the full text of a blog post or documentation page
- Gather cited sources with URLs for a writing task
- Search for a library's latest release notes

## Install

### Claude Code

This skill ships in the `lich-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add LichAmnesia/lich-skills
/plugin install lich-skills@lich-skills
```

Or copy only this skill to `~/.claude/skills/tavily-search`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/tavily-search &&
cp -R "$tmp/skills/tavily-search" ~/.claude/skills/tavily-search &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/tavily-search` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/tavily-search` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/tavily-search &&
cp -R "$tmp/skills/tavily-search" ~/.agents/skills/tavily-search &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/tavily-search` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/tavily-search` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/tavily-search &&
cp -R "$tmp/skills/tavily-search" ~/.cursor/skills/tavily-search &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/tavily-search` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/LichAmnesia/lich-skills.git --path skills/tavily-search
```

Or copy the folder to `~/.gemini/skills/tavily-search` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/tavily-search`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/tavily-search &&
cp -R "$tmp/skills/tavily-search" ~/.copilot/skills/tavily-search &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/tavily-search` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git
```

Then copy `lich-skills/skills/tavily-search` into your agent's skills folder as `tavily-search`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

A Tavily API key in the TAVILY_API_KEY environment variable (or TAVILY_KEY, or a --api-key flag), plus uv so the Python script can install its dependencies on first run.

### Does Tavily search open a browser?

No. It calls the Tavily search and extract endpoints over HTTP. For pages that need login or clicks, the instructions point to a browser tool instead.

### How many results can I request?

The default is 5 results and the max-results flag accepts values from 1 to 20.

### Can Tavily search limit news to recent articles?

Yes. With the news topic, the days flag restricts results to the last N days.

### How do I install Tavily search in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/tavily-search to use it in all your projects, or to .claude/skills/tavily-search in one project. Or install the lich-skills plugin, which includes it: /plugin marketplace add LichAmnesia/lich-skills, then /plugin install lich-skills@lich-skills.

### Does Tavily search run scripts?

Yes. It runs Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Tavily search?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Tavily search?

The closest alternatives to Tavily search are Baidu search, Deep research, Exa search, Mt search and Research.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Baidu search](https://ai-powered.com/skills/baidu-search-baidubce): Baidu search is an open-source agent skill for web search and scraping.
- [Deep research](https://ai-powered.com/skills/deep-research-smartworldarafath): Deep research is an open-source agent skill for web search and scraping.
- [Exa search](https://ai-powered.com/skills/exa-search-smartworldarafath): Exa search is an open-source agent skill for web search and scraping.
- [Mt search](https://ai-powered.com/skills/mt-search): Mt search is an open-source agent skill for web search and scraping.
- [Research](https://ai-powered.com/skills/research-hec-ovi-2): Research is an open-source agent skill for web search and scraping.
- [Agent reach](https://ai-powered.com/skills/agent-reach-smartworldarafath): Agent reach is an open-source agent skill for web search and scraping.
- [Xquik social research](https://ai-powered.com/skills/xquik-social-research): Xquik social research is an open-source agent skill for web search and scraping.
- [X twitter scraper](https://ai-powered.com/skills/x-twitter-scraper-xquik-dev): X twitter scraper is an open-source agent skill for web search and scraping.

---
Source: https://ai-powered.com/skills/tavily-search
