Skip to content

OpenCode setup

OpenCode uses the bundled plugin bridge. Once you make the plugin visible to OpenCode, the sidebar can receive its events automatically.

Create OpenCode’s global plugin directory if it does not already exist, then symlink the plugin file (not the directory) into it. Linking the single file lets the bridge coexist with any other plugins you have installed:

Terminal window
mkdir -p ~/.config/opencode/plugins
ln -sf ~/.tmux/plugins/tmux-agent-sidebar/.opencode/plugins/tmux-agent-sidebar.js \
~/.config/opencode/plugins/tmux-agent-sidebar.js

If you keep tmux-agent-sidebar in a different path, point the symlink at that copy instead.

Restart OpenCode after adding the plugin so it discovers the new bridge.