Zero-Tax Virtualization: Running AI Agents Safely in Velo Workspaces A developer has outlined a method for running autonomous AI coding agents safely on Apple Silicon Macs by isolating agent execution inside a Linux VM while keeping model inference on the macOS host, working around Virtualization.framework's lack of Metal GPU passthrough to Linux guests. The setup, built around Velo Workspaces, bridges the guest VM to a host-side inference server (MLX or Ollama) over a VirtIO-vsock channel, with the guide providing RAM-based model recommendations from 16 GB to 128 GB+ configurations. Running autonomous AI coding agents natively on your primary macOS machine introduces severe security liabilities. Modern agents execute terminal commands, install unverified dependencies via pip and npm , modify arbitrary files, and can be coerced through prompt injection attacks into exfiltrating environment variables, dotfiles, or macOS Keychain secrets. The standard industry remedy is sandboxing agents inside a Linux virtual machine or container. On Apple Silicon, however, this immediately collides with a hypervisor-level barrier: Virtualization.framework does not expose the host Metal GPU to Linux guests. Linux VMs receive only a 2D paravirtualized framebuffer virtio-gpu . Velo Workspaces https://www.veloworkspaces.com resolves this trade-off by separating the agent execution environment from the model inference engine : This guide covers both engines side by side. Pick one in Section 5 — everything downstream VM setup, the vsock bridge, agent configuration works identically either way, substituting the port your chosen engine listens on. | | MLX | Ollama | |---|---|---| | Default port | 8080 | 11434 | | Model source | huggingface.co/models?library=mlx-lm https://huggingface.co/models?library=mlx-lm | ollama.com/library https://ollama.com/library | | Best for | Apple Silicon-native performance, the widest current selection of day-one MLX-quantized releases | The simplest one-command setup and model management ollama pull , ollama run | Note: Inside the VM, the agent's traffic is forwarded over a VirtIO-vsock channel to the AI Bridge on the macOS host, which relays it to the host's inference server Ollama or MLX . A separate Caddy port forward lets an external LAN client reach the VM's optional web UI. 127.0.0.1: