---name:ocdescription:When managing or reattaching long-running OpenCode sessions in tmux---# oc
Use oc to view, jump to, and preserve OpenCode sessions in tmux.
Prefer oc when the goal is session continuity rather than raw tmux control: it keeps the OpenCode-oriented session list, aliases, and relaunch behavior in one place.
# Installcurl -Lo ~/.local/bin/oc https://oc.maxeonyx.com/releases/oc-x86_64-linuxchmod +x ~/.local/bin/oc
Requires: tmux# Usageoc# Open the interactive dashboardoc dc # Attach to or launch the named session directlyoc alias dc . # Save a named session for this directoryoc rm dc # Remove the saved session and kill it if running
Sessions live in tmux so they survive SSH disconnects, terminal crashes, and laptop sleep.