@tavily/opencode-plugin. The plugin drives the Tavily CLI.
1
Install the Tavily CLI
pnpm add -g, yarn global add, and bun add -g work the same way.2
Sign in to Tavily
TAVILY_API_KEY is set in your environment, the plugin passes it through to shell commands.3
Add the plugin
Add On OpenCode 2, the key is
Or via npm:
@tavily/opencode-plugin to the plugin array in your opencode.json:plugins instead of plugin. OpenCode installs npm plugins automatically on next launch.Don't have OpenCode yet?
Don't have OpenCode yet?
4
Try it
Start OpenCode and ask a current-events question:The agent should load the
tavily-search skill, run tvly search, and return results with sources.Watch the setup
Watch the setup
What the plugin adds
The plugin registers the Tavily Agent Skills from tavily-ai/skills:tavily-searchruns web search, reads URLs, and maps or crawls sites with the Tavily CLI.tavily-researchwrites multi-source research reports with citations.tavily-entityfills in a company or person record from the web.tavily-listbuilds a deduplicated table of matches.tavily-monitorsets up recurring checks for new information on a topic.tavily-sdkhelps the agent add Tavily to your application code.
Install the skills without the plugin
Install the skills without the plugin
OpenCode also loads Agent Skills directly. After installing the CLI and signing in, add the skills to your project:Add
--global to install them for all projects. Start a new OpenCode session to load them.Example prompts
Troubleshooting
If the agent cannot access the web or Tavily commands fail, check these in order:- Is the plugin listed in
opencode.json? - Is the Tavily CLI installed and authenticated?