Skip to main content
Runtimes determine where and how mux executes agent workspaces.
RuntimeIsolationBest For
LocalAll workspaces share the project directoryQuick edits to your working copy
WorktreeEach workspace gets its own directoryRunning multiple agents in parallel
SSHRemote execution over SSHSecurity, performance, heavy parallelism

Choosing a Runtime

When creating a workspace, select the runtime from the dropdown in the workspace creation UI.

Init Hooks

Init hooks can detect the runtime type via the MUX_RUNTIME environment variable:
  • local — Local runtime
  • worktree — Worktree runtime
  • ssh — SSH runtime
This lets your init hook adapt behavior, e.g., skip worktree-specific setup when running in local mode.