opencode-tavily plugin. The plugin drives the Tavily CLI.
1
Install the Tavily CLI
uv tool install tavily-cli or pip install tavily-cli.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 OpenCode installs npm plugins automatically on next launch.
Or via npm:
opencode-tavily to the plugin array in your opencode.json:Don't have OpenCode yet?
Don't have OpenCode yet?
4
Try it
Start OpenCode and ask a current-events question:The agent should run
tvly search and return grounded results with sources.Watch the setup
Watch the setup
What the plugin adds
The plugin registers the Tavily skill, so the agent can use these CLI commands:All output is written to a
.tavily/ directory to avoid flooding the agent’s context.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?