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
DockerIsolated container per workspaceFull isolation, reproducible environments

Choosing a Runtime

Choose a runtime when creating a workspace.

Init Hooks

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