Read along with the audio summary
CJ warns that as a developer, you are a prime target for hackers who want your application programming interface keys, credentials, and broad resource access. On this episode of the Syntax show, which came out on November 6, 2026, CJ demonstrates devvm, an open source tool he created and maintains. By the end, you will learn how to run coding projects and artificial intelligence agents inside isolated virtual machines, or simulated computers, without exposing your host credentials or networks.
Why your developer machine needs an easier sandbox. Running code inside isolated containers is the recommended defense against attackers, yet traditional setups like Dockerfile and devcontainer configurations can feel clunky for everyday use.
Keeping your real security keys completely out of the sandbox. Even inside a virtual machine, putting real authentication tokens or keys into the environment leaves them vulnerable to being stolen when running artificial intelligence coding agents like Claude Code, Codex, or OpenCode. Devvm solves this by giving the agent inside the virtual machine a dummy key, while a proxy on the host machine intercepts outbound requests to large language model interfaces and injects the real credentials on the outside.
How blocking outbound network traffic exposes hidden background requests. By default, devvm blocks all outbound traffic except for essential domains needed by your chosen tools, such as the Node package registry, Anthropic, and OpenAI. While CJ notes that hitting repeated blocks for third party binaries like Prisma or Playwright represents the growing pains of using a network block, this strict rule exposes and stops hidden background traffic, like Visual Studio Code Remote Secure Shell trying to contact a cloud metadata address and Microsoft telemetry servers.
Stopping package installers from touching your main operating system. Routine dependency installations frequently trigger automated preinstall or postinstall scripts and reach out to third party domains like Prisma, Playwright, and Google APIs. Running a package manager install command inside an isolated virtual machine ensures any arbitrary script execution happens strictly inside the sandbox and cannot touch your host machine.
Protecting your local files from untrusted code and artificial intelligence edits. When you do not want an agent directly modifying local files, a clone mode creates an isolated Git version control copy inside the virtual machine. You can use the devvm clone flag when working with untrusted codebases, and only pull reviewed work back to your host using standard Git fetch and merge commands.
Spinning up a fresh virtual machine in about five seconds. Built on top of the Lima virtualization tool for recent Mac systems, devvm achieves this speed by reusing a cached, read only Ubuntu base layer preloaded with helpful command line tools.
Stacking custom environments and booting directly from container images. Rather than relying only on host services, you can layer capabilities directly into the virtual machine. You can also boot a full virtual machine directly from a Docker image using the from flag, though CJ hedges that this currently only supports Debian, Ubuntu, or Alpine images because these are just the ones he has tested so far.
Isolating your development environment protects your machine only when your credentials, network, and host resources stay strictly under your control. When you finish with a project, run the devvm remove command to free up host processor and memory while automatically archiving your agent session histories to your local share directory.