Tavily plugin¶
Tavily's web tools in OpenCode: search, page reading, site maps, crawls and cited research, one account per alias.
Tavily's hosted MCP server gives OpenCode five web tools, and this plugin connects them on plugin-contract. It registers one MCP server per account alias, so a person can keep a work Tavily account and a personal one apart, and adds two reads of its own: status reports every alias and one next step, and probe reports the owner of one alias. It has no sources, no actions and no bus events, and it writes nothing.
It is for a person who asks an agent about the live web, and for the teams whose agents search, read and research with a Tavily plan. Tavily's server owns the tools and the sign-in; OpenCode holds the OAuth. Every tool call spends Tavily credits, and the plugin sets no spending limit.
How it fits together¶
flowchart LR
Agent["OpenCode agent"] --> Plugin["Tavily plugin"]
Plugin -->|"status, probe"| Host["OpenCode's MCP server list"]
Plugin -->|"one MCP server per alias"| Tavily["Tavily's hosted MCP server"]
Tavily --> Web["The web"] OpenCode loads the plugin, the plugin adds a server named tavily or tavily-<alias> with its own OAuth, and every Tavily tool call runs on that server, not in the plugin. The plugin holds no credential and makes no network call.
Where to start¶
| Goal | Page |
|---|---|
| Install the plugin and sign in | Installation |
| Run a first search and read a page | Quick start |
| Keep a work and a personal account apart | Accounts |
| Set every option | Configuration |
| Read each method and its class | Capabilities |
| Schedule a search | Automations |
| Know what leaves the machine and what it costs | Security |
| When a call fails | Troubleshooting |
| Work on the plugin | Architecture |
Requirements¶
- OpenCode
>=2.4.1 <2.5.0, tested on2.4.1. - A Tavily account with credits. Tavily's plan sets the spending limit; the plugin sets none.
- Node 24 to build the plugin. An install needs no build, because
dist/index.jsis committed.
What it is not¶
- Not a search engine of its own. Tavily's server answers every call and bills it. The plugin adds no index and no cache.
- Not a second account. It stores no API key and reads no environment variable. OpenCode holds each alias's OAuth.
- Not a writer. It has no source, no action and no bus event, so it creates no cursor, no preview and no feed.