opencode-session-id
v0.1.0
Published
OpenCode TUI plugin that copies the current OpenCode session ID.
Readme
opencode-session-id
OpenCode TUI plugin that adds one command: copy the current OpenCode session ID to your clipboard.
Command
Use /opencode-copy-session-id from OpenCode.
The command copies the active OpenCode session ID. If OpenCode has not selected a session yet, it shows a warning instead.
Install from npm
Add the published package to your global OpenCode TUI config at ~/.config/opencode/tui.json:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": [
"opencode-session-id"
]
}Restart OpenCode after changing tui.json; TUI plugins are loaded at startup.
Build
npm install
npm run buildLocal development config
When developing from a local checkout, build the package and point OpenCode to the generated file:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": [
"file:///absolute/path/to/opencode-session-id/dist/index.js"
]
}