| Runtime | Isolation | Best For |
|---|---|---|
| Local | All workspaces share the project directory | Quick edits to your working copy |
| Worktree | Each workspace gets its own directory | Running multiple agents in parallel |
| SSH | Remote execution over SSH | Security, performance, heavy parallelism |
| Docker | Isolated container per workspace | Full 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 theMUX_RUNTIME environment variable:
local— Local runtimeworktree— Worktree runtimessh— SSH runtimedocker— Docker runtime