Official

opencode

OpenCode agent provider: runs opencode serve and talks to it over HTTP and server-sent events.

The app opens the listing; nothing installs until an agent in your Plugins workspace has read the files and you enable the plugin. In a terminal: cvg install convergence/opencode@0.2.0

Permissions in 0.2.0

  • Read files fs.readMediumReads files in the listed places.Read, once, the servers the previous OpenCode provider keptPlaces: its own data folder
  • Provide agents agents.provideMediumAdds agents to the app.Provide the OpenCode agent, and serve plugin tools to it through the host's loopback MCP server
  • Run named programs processMediumStarts the listed programs.Run the OpenCode server (`opencode serve`, or the binary you choose in Settings), read its catalog from the command line when the server cannot answer, upgrade it (`opencode upgrade`), and ask or tell the npm installation that owns it about a newer versionPrograms: opencodenpm${settings.binaryPath}
  • Network access netMediumConnects to the listed hosts.Talk to the OpenCode server it starts on this computer, at the port it picks for each launch, and to the external server you choose in SettingsHosts: localhost:*${settings.serverUrl}
  • Environment variables envMediumReads the listed environment variables.Expand ~ in a configured binary, and read the OpenCode settings you set in the environment: the binary to run, an external server's address, and the server's user name and passwordVariables: HOMEOPENCODE_PATHOPENCODE_SERVER_URLOPENCODE_SERVER_USERNAMEOPENCODE_SERVER_PASSWORDCONVERGENCE_OPENCODE_SERVER_PASSWORD

Files

plugin.json2.4 KB
{
  "id": "convergence/opencode",
  "name": "opencode",
  "version": "0.2.0",
  "description": "OpenCode agent provider: runs `opencode serve` and talks to it over HTTP and server-sent events.",
  "pluginApi": ">=2 <3",
  "main": "main.ts",
  "disabledByDefault": true,
  "contributes": {
    "agents": [{ "id": "opencode", "name": "OpenCode" }],
    "settings": {
      "title": "OpenCode",
      "properties": {
        "binaryPath": {
          "type": "path",
          "kind": "file",
          "title": "OpenCode binary",
          "description": "The opencode program to run for the local server. Empty runs the one your login PATH finds first; choose one when that is the wrong version.",
          "placeholder": "/opt/homebrew/bin/opencode"
        },
        "serverUrl": {
          "type": "url",
          "title": "External server",
          "description": "The address of an OpenCode server you run yourself (opencode serve), for the default OpenCode agent. Empty starts a local server. Saving an address asks you to allow the connection.",
          "placeholder": "http://127.0.0.1:4096"
        }
      }
    }
  },
  "permissions": {
    "fs.read": {
      "scopes": ["data"],
      "reason": "Read, once, the servers the previous OpenCode provider kept"
    },
    "agents.provide": {
      "reason": "Provide the OpenCode agent, and serve plugin tools to it through the host's loopback MCP server"
    },
    "process": {
      "programs": ["opencode", "npm", "${settings.binaryPath}"],
      "reason": "Run the OpenCode server (`opencode serve`, or the binary you choose in Settings), read its catalog from the command line when the server cannot answer, upgrade it (`opencode upgrade`), and ask or tell the npm installation that owns it about a newer version"
    },
    "net": {
      "hosts": ["localhost:*", "${settings.serverUrl}"],
      "reason": "Talk to the OpenCode server it starts on this computer, at the port it picks for each launch, and to the external server you choose in Settings"
    },
    "env": {
      "vars": [
        "HOME",
        "OPENCODE_PATH",
        "OPENCODE_SERVER_URL",
        "OPENCODE_SERVER_USERNAME",
        "OPENCODE_SERVER_PASSWORD",
        "CONVERGENCE_OPENCODE_SERVER_PASSWORD"
      ],
      "reason": "Expand ~ in a configured binary, and read the OpenCode settings you set in the environment: the binary to run, an external server's address, and the server's user name and password"
    }
  }
}

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.2.0latestOct 5, 2026>=2 <394.8 KB5 permissionsListed

Reviews and comments

0 threads · 0 reviews

No comments yet.