opncd.com

Better sharing for OpenCode sessions

Installation

Add the plugin to your opencode.json:

{
  "plugin": ["opencode-better-share"]
}

Restart OpenCode after adding the plugin.

Usage

Share a session

/share

Creates a shareable link to your current session. The link updates in real-time as you continue working.

Remove a share

/unshare

Removes the share and deletes all shared data.

How it works

Updating the plugin

OpenCode caches plugins. To get the latest version, clear the cache:

# macOS / Linux
rm -rf ~/.cache/opencode/node_modules/opencode-better-share

# Windows (PowerShell)
Remove-Item -Recurse -Force "$env:USERPROFILE\.cache\opencode\node_modules\opencode-better-share"

Then restart OpenCode.