Configuration¶
Every option is set in the plugin's entry in opencode.json. The table below is generated from capabilities.options.
| Option | Type | Default | Description |
|---|---|---|---|
access | all | ask-changes | read-only | "all" | How much the plugin's methods may do: all runs every method not marked effect ask, ask-changes asks before a non-read, read-only turns every non-read off. |
accounts | object | — | One empty profile per account alias. The alias is the whole setting; no secret goes in a profile. |
allowUntestedHost | boolean | false | Start outside the tested OpenCode range. |
websearch | boolean | true | Select OpenCode's built-in Tavily provider for the websearch tool when nothing earlier chose one. |
executionTimeoutMs | integer | 900000 | How long one Tavily tool call may run, in milliseconds: 1 minute to 1 hour. Research needs the most time. |
One account¶
No options are needed: the plugin serves one default account, whose MCP server is tavily. Sign in to it through OpenCode's MCP sign-in.
Several accounts¶
{
"plugins": [
{
"package": "github:we-the-rebel-alliance/tavily-plugin#v0.0.8",
"options": {
"access": "ask-changes",
"accounts": {
"work": {},
"personal": {}
},
"websearch": true,
"executionTimeoutMs": 900000,
"allowUntestedHost": false
}
}
]
}
accessis the ceiling:allruns every method not markedeffect: "ask",ask-changesasks before a non-read,read-onlyturns every non-read off. The five Tavily tools are non-reads because each call spends credits, and they carryeffect: "ask", so they ask even atall. A rule the person or an app adds later still wins for one tool.statusdoes not repeat the level;status.unguardedAgentsandnextStepreport an agent whose generated rules are missing.accountsis one profile per alias. The profile is empty: the alias is the whole setting, and no secret goes in a profile. Each alias gets its own MCP server (tavily-work,tavily-personal) and its own OAuth sign-in.websearch(defaulttrue) selects OpenCode's built-in Tavily web search provider when nothing earlier chose one. The plugin adds no provider of its own. Awebsearchchoice inopencode.jsonis applied by OpenCode after package plugins, so that choice wins; the plugin cannot see it.falseleaves OpenCode's web search completely alone.executionTimeoutMs(default900000, 1 minute to 1 hour) is the MCP server'stimeout.execution: how long one Tavily tool call may run. Research needs the most time; OpenCode's own default is 12 hours, which does not stop a call that hangs.allowUntestedHost(defaultfalse) starts the plugin outside>=2.4.1 <2.5.0. Leave it off: an untested host is refused withHOST_UNTESTEDand a next step.
A value outside the schema is OPTIONS_INVALID and setup stops before anything is registered.