Skip to main content
Runtimes determine where and how Mux executes agent workspaces.

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
  • devcontainer — Dev Container runtime
This lets your init hook adapt behavior, e.g., skip worktree-specific setup when running in local mode.