Manage OpenCode sessions in tmux popups. Launch sessions by project, view their status in a picker, and return to any session.
- tmux 3.2 or later
- fzf
- OpenCode v2
- Bash and Python 3
Add this to ~/.tmux.conf or ~/.config/tmux/tmux.conf:
run-shell ~/.config/tmux/plugins/tmux-opencode-session-manager/opencode_session_manager.tmuxReload tmux with prefix + r.
prefix+y: launch or resume a session for the current directoryprefix+u: open the session pickerenter: jump to the selected sessiontab: expand or collapse session detailsctrl-x: kill the selected session
Install the plugin for live status updates:
opencode plugin add opencode-tmux-session-status@latestRestart the OpenCode service after installation. The picker can also resolve status from the OpenCode API without the plugin.
Options can be set on the main tmux server before loading the plugin:
| Option | Default | Description |
|---|---|---|
@opencode_launch_key |
y |
Launch key |
@opencode_list_key |
u |
Picker key |
@opencode_command |
opencode |
Command to run |
@opencode_session_prefix |
oc_ |
Session name prefix |
@opencode_socket |
opencode-popup |
Dedicated tmux socket |
@opencode_popup_width |
90% |
Popup width |
@opencode_popup_height |
90% |
Popup height |
bash scripts/tests.shMIT