smolmachines / smolvm as a sandbox for untrusted Python & JavaScript

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers wanting to sandbox untrusted LLM-generated code now have a tested recipe for smolvm via GitHub Actions, though only in environments exposing /dev/kvm.

Read this as

Simon Willison had an AI assistant evaluate smolmachines, a service that runs untrusted Python and JavaScript code inside a tiny virtual machine, a secure container where code cannot hog memory, spin forever, or touch the network. The AI, called Claude Fable 5, found the sandbox wouldn't run inside its own workspace because that workspace lacked virtualization support, so it cleverly rerouted the tests to GitHub's cloud runners instead. This matters mainly to developers who run user-submitted code and need to keep it isolated.

Willison tested whether the smolmachines sandbox (built on smolvm micro-VMs) can safely execute untrusted Python and JavaScript for tasks like data transformations, with CPU, RAM, network and filesystem limits. The practical finding: it requires /dev/kvm, which means standard container environments won't work, GitHub Actions runners will. Teams considering this tool should budget for that infrastructure constraint.

smolvm `machine run` requires /dev/kvm; Willison's Claude Code for web container (itself a Firecracker guest with 4 vCPUs, 15GB RAM, kernel 6.18.5-fc-v20) exposed no vmx/svm flags, so nested virtualization failed with 'kvm not available'. Claude Fable 5's workaround ran a full smolvm test battery, CPU/RAM caps, no-network, designated-filesystem checks, via a temporary GitHub Actions workflow, since ubuntu runners expose /dev/kvm.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

smolmachines smolvm Claude Fable 5 Claude Code GitHub Actions Simon Willison

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading