Skip to main content

Sessions

Sessions are persistent PTY processes that run in the background. They survive disconnects — start a process, close your terminal, reconnect later.
cw run creates a local PTY session. cw launch creates a workspace on the platform. See Platform commands for workspace management.

run

Start a new session in a persistent PTY.

attach

Connect to a running session interactively. Detach with Ctrl+B d.

list

Show all sessions with status, tags, age, and command.

kill

Terminate a session by ID, tag, or all.

logs

View captured output without attaching.

send

Send input to a session without attaching.

watch

Monitor a session in real-time without attaching. Read-only observation.

status

Get detailed session info including exit code, duration, tags, PID, and output stats.