r/PiCodingAgent • u/branik_10 • 23h ago
Discussion smolvm vs microsandbox?
Hey there.
I'm currently using multipass to sandbox my AI, but thinking about trying something more lightweight than full VMs.
Came across these 2 options and can't decide where I should first try to port my workflow. Has anyone tried both and can compare?
My workflow is relatively simple - I bootstrap VMs, clone my dotfiles there, setup mounts to my project directories on the host, ssh and just let the agents do whatever they need.
My host is Windows (unfortunately). So good Windows support is a must for me.
4
Upvotes
2
u/jruz 23h ago
why not wsl? on linux you can get bubblewrap which is way nicer than any other alternative
1
u/goldmine50 22h ago
Would something like gondolin (from earendil themselves) or Nvidia Openshell or docker-sandbox work for your usecase? Not fully sure about Windows compatibility but you could run them inside WSL and still get kernel-level isolation (I think)
1
u/v_0009 19h ago
You can check terrarium.sh too. Or boxlite.
Note: I am creator of terra.
1
u/radim11 17h ago edited 16h ago
We’re building Stashbase .dev for a similar workflow. On Windows we support sandboxing through WSL, so you can run the agent in a native Linux sandbox inside WSL or give it its own Docker container. With Docker you can mount your existing checkout and keep editing from Windows while the agent works. A profile defines which files, APIs and tools it can access.
We’re also adding cloud VMs so you can use the same profile in the cloud and leave the agent running when your laptop’s off. I haven’t compared smolvm and microsandbox on Windows myself, but with your setup I’d test file watching on a mounted repo before moving all your dotfiles over.
CLI for sandboxing: https://github.com/stashbase/cli
1
u/fyv8 15h ago
I like smolvm. I use it for sandboxing pi and claude code, even giving the agent root in the vm and it can run docker images and destroy whatever it wants. I mount a dir on the host and it works fine to set up egress rules too, so as long as you have backups of what it can touch and are discriminating about giving it keys, you can set it up to be pretty safe.
Haven't used microsandbox.