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: dvg install divergence/opencode@0.2.5
Permissions in 0.2.5
Files
plugin.json2.6 KB
{
"id": "divergence/opencode",
"name": "opencode",
"version": "0.2.5",
"description": "OpenCode agent provider: runs `opencode serve` and talks to it over HTTP and server-sent events.",
"pluginApi": ">=5 <6",
"main": "main.ts",
"listing": { "icon": "media/icon.svg" },
"disabledByDefault": true,
"contributes": {
"agents": [
{
"id": "opencode",
"name": "OpenCode",
"icon": "icon.svg"
}
],
"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",
"DIVERGENCE_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"
}
}
}
No comments yet.