opencode-sidebartmux sidebar launcher for OpenCode
19
87
16 in 7 days
39.1
Multi-signal model
2 months ago
2026-06-12
Install and configure
opencode.jsonWrites to this project's opencode.json — applies to this repository only.
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-sidebar@0.3.6"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-sidebar@0.3.6"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D opencode-sidebaropencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
Tmux sidebar launcher for opencode.
Why Does This Exist?
OpenCode is easier to use when the session list, preview pane, and TUI stay together. This launcher keeps them in one tmux session so you can move between the sidebar and OpenCode without losing context.
Features
- Left pane for projects and sessions
- Right pane for the stock OpenCode TUI
- Enter-based session recall into preview
- Background active sessions
- Session deletion from the sidebar
- Sound notifications when OpenCode needs input or finishes work
- Automatic cleanup of parked
opencode attachpanes
Quick Start
Prerequisites
- Node.js 20+
tmuxopencode
Make sure they are installed and available in your PATH.
Package
- npm package: https://www.npmjs.com/package/opencode-sidebar
Install from npm
npm install -g opencode-sidebar
opencode-sidebar
The CLI checks for tmux and opencode at runtime. If either command is missing, it prints a clear error instead of failing silently.
Build & run from source
git clone https://github.com/arnavpisces/opencode-sidebar.git
cd opencode-sidebar
bun install
npm run start
npm run start builds the local dist/ output and launches the same tmux-backed CLI used by the published package.
Usage

opencode-sidebar
Shortcuts
↑/↓: moveEnter: load or recall the selected session into previewn: new sessione: rename sessiond: delete session with confirmationk: kill a running session window without deleting history/: searcha: add a project folderSpace: expand or collapse a projectCtrl-bthen arrow keys: switch between the sidebar and the OpenCode paneq: quit
Status Symbols
▶means currently previewed◆means active in background[*]means a session recently completed work and still has unread completion state
Configuration
OPENCODE_SIDEBAR_DIR: override the local state and log directoryOPENCODE_SIDEBAR_NOTIFY=0: disable soundsOPENCODE_SIDEBAR_NOTIFY_ATTENTION_SOUND: custom sound for questions and approval requestsOPENCODE_SIDEBAR_NOTIFY_COMPLETE_SOUND: custom sound for completion- Sound values can be a system sound name like
GlassorPing, or a full path such as~/Music/done.aiff
Release Checks
npm run verify: typecheck, unit tests, and buildnpm run verify:tmux: manual tmux integration checks in isolated temp workspacesnpm run verify:release: full maintainer-only release check
Contribution
Pull requests and opening issues are welcome. For details, see:
License
Apache-2.0 © 2026 Arnav Kumar
If this repo helped you, consider giving it a ⭐. Happy Vibing :)