Skip to content

Installation

Requirements

  • OpenCode >=2.4.1 <2.5.0, tested on 2.4.1.
  • A Tavily account with credits. Tavily's plan sets the spending limit.
  • Node 24 only for a checkout; a release install needs no build.

Install a release

opencode plugin add github:we-the-rebel-alliance/tavily-plugin#v0.0.8

This release is v0.0.8; a later release pins its own tag. A Git install does not update by itself: remove the exact tag you installed and add the next one. Start a new OpenCode session after the install.

The plugin refuses another OpenCode release with HOST_UNTESTED and the tested range in its next step. allowUntestedHost: true starts it anyway, and is a last resort.

Sign in

The plugin registers one Tavily MCP server per account alias: tavily for default, and tavily-<alias> for another. OpenCode holds each server's OAuth, so the plugin never sees a token.

  1. In OpenCode, run /connect and choose tavily.
  2. Sign in to Tavily and approve the connection. Tavily's OAuth metadata advertises openid offline_access, so OpenCode can refresh the sign-in later without the person present.
  3. Start a new session.

Repeat for each alias you configured: run /connect and choose that alias's server, tavily-work for work.

First check

Ask the agent to call tools.tavily.status. It reports the plugin and OpenCode versions, one entry for each alias with ready, needs_sign_in or error, and one next step. tools.tavily.probe confirms one alias and reports OpenCode's connection identity for it, without reading any web content.

From a checkout

To work on the plugin, or to run it before a release:

git clone https://github.com/we-the-rebel-alliance/tavily-plugin
cd tavily-plugin
npm ci --ignore-scripts
npm run check

Then add the checkout's commit as a plugin:

opencode plugin add "github:we-the-rebel-alliance/tavily-plugin#<commit>"

What the install carries

npm pack ships package.json, dist/index.js, the two skills, the icons, README.md, LICENSE and NOTICE. NOTICE carries the licence of every package inlined into the bundle, so an install builds nothing and needs no package from npm.

Next

Quick start runs the first search. Accounts adds a second alias, and Configuration sets every option.