Skip to content

Installation

You need OpenCode >=2.4.1 <2.5.0, the plugin's tested range. Nothing else: the plugin has no runtime dependency, and the built entry is committed, so the install needs no build step.

Add the plugin

opencode plugin add github:we-the-rebel-alliance/plaud-plugin#v0.0.2

The tag is the release you install. v0.0.2 is the latest release.

Sign in

The plugin adds one Plaud MCP server per alias on https://mcp.plaud.ai/mcp: plaud for the default account, and plaud-<alias> for any other. Plaud's own server holds the credentials, and OpenCode keys the OAuth per server.

Open OpenCode, run /mcps, select plaud for the default account, and sign in. One account needs no options at all.

The sign-in is Plaud's, and OpenCode stores and refreshes it per server; the plugin never receives the credential.

Several accounts

One alias per Plaud account, each signed in on its own:

// opencode.json
{
  "plugins": [
    {
      "package": "github:we-the-rebel-alliance/plaud-plugin#v0.0.2",
      "options": {
        "accounts": {
          "default": {},
          "work": {}
        }
      }
    }
  ]
}

Each alias is one Plaud MCP server, plaud for the default account and plaud-<alias> for the others, and each is signed in through /mcps. OpenCode keys the OAuth per server, so two accounts stay apart. Name default in the map, as above, to keep it beside another alias. See Accounts for the server names and how a call picks one.

Check the sign-in

Ask OpenCode for the plugin's status, or call it in Code Mode:

await tools.plaud.status()

Every account's state is one line. An account that needs a new sign-in reads needs_sign_in and names the server to choose in /mcps.

Next