Skip to content

Tavily

The official Tavily plugin gives your AI agent reliable web search, content extraction, crawling, URL discovery, and deep research with citations, powered by the Tavily CLI.

Bundled skills

The plugin registers the Tavily Agent Skills with OpenCode:

SkillUse it for
tavily-searchWeb search, reading URLs, mapping and crawling sites with the tvly CLI
tavily-researchMulti-source research reports with citations
tavily-entityFilling in a company or person record from the web
tavily-listBuilding a deduplicated table of matches
tavily-monitorRecurring checks for new information on a topic
tavily-sdkAdding Tavily to application code with the Python or JavaScript SDK

The plugin also tells the agent to pass --client-name opencode to tvly commands for request attribution.

Quickstart

Add the plugin to your opencode.json. OpenCode installs the package automatically on next launch.

OpenCode v2:

{
  "$schema": "https://opencode.ai/config.json",
  "plugins": ["@tavily/opencode-plugin"]
}

OpenCode v1.18.29+:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@tavily/opencode-plugin"]
}

Then install the Tavily CLI globally (requires Node.js 20.1 or later):

npm install -g @tavily/cli

Authentication

On first use, the agent will prompt you to authenticate. You can also set up in advance:

# Browser login (recommended)
tvly login
# Or set an API key
export TAVILY_API_KEY=tvly-your-api-key

Get an API key at tavily.com. If TAVILY_API_KEY is set in your environment, the plugin automatically passes it to shell commands.

Also worth knowing: per the Tavily CLI, tvly search and tvly extract work without authentication, subject to a keyless rate-limit cap.

Reference