Skip to main content
Use hx vm (aliases: hx sandbox, hx sandboxes) to run and manage Linux and macOS sandboxes from your terminal.

Create, Inspect & Stop Sandboxes

Verified hx vm create Flags

  • Target: --image-name, --image-id, --snapshot, --snapshot-name, --snapshot-id, --macos, --disk-id
  • Resources & region: --region, --cpu, --memory, --disk, --timeout-minutes
  • Networking, storage & recording: --port (<port>, <port>:auth, <port>:public), --auth, --mount, --allow-internet, --allow-out, --deny-out, --enable-recording
  • Secrets (Linux): --secret, --secret-version, --vault, --1password-token, --1password-vault, --1password-field

Outbound Network & Exposed Ports

See Network Policies for rule precedence and target formats.

Run Commands & Background Processes (hx vm exec, hx vm process)

Run a one-shot command:
Manage long-running background processes:

Open an Interactive Terminal

Launch an interactive shell inside a running sandbox with hx vm connect:
By default, hx vm connect launches /bin/bash -i -l. Also accepts --timeout-ms and --use-shell.

Filesystem Operations (hx vm file, hx vm cp, hx vm read)

Copy & Read Shorthands

Full Filesystem Subcommands (hx vm file)


Read Sandbox Diagnostic Logs (hx vm logs)

List available diagnostic logs or read/follow a specific stream (chrome, captcha, proxy, window-manager, vnc, selenium, ffmpeg, port-forward, xvfb):

Volumes, Images, Snapshots & Persistent Disks

Volumes (hx vm volumes)

Custom Images (hx vm image)

Additional verified build flags: --remote-full-context, --cpu, --memory, --disk, --rootfs-disk, --yes.

Memory Snapshots (hx vm snapshot)

Persistent Mac Disks (Beta) (hx vm disks)

create and snapshot also accept --id for idempotent retries. See macOS Sandboxes (Beta) for full workflows.