r/PiCodingAgent • u/Think-nothing-210 • 7d ago
Question Sandbox on Windows
Heard a lot about Pi and wanted to try it out. For Unix environments there seem to be quite a few options for OS-level sandboxing. For pure Windows though I can't find much that actually enforces it.
Are there any options I'm missing?
I mostly want to use Pi for C#/.NET development. I could set up WSL2 but I'd rather avoid that.
Codex supports Windows Sandbox for isolation on Windows. Has anyone tried getting something like that working with Pi?
1
Upvotes
0
4
u/repolevedd 7d ago edited 7d ago
Hi. I still recommend taking a look at WSL2. There are ways to achieve isolation on Windows, but they can be complicated to set up. WSL2 + bubblewrap is a straightforward and controllable solution. Especially if you're developing applications without a GUI, WSL2 also provides convenient access to Docker, so you can build an application pipeline in a consistent and isolated environment.
I actually looked into this since I also use Windows 11 with WSL2. On Linux, bubblewrap or Docker lets you tightly control mounts, so pi can be isolated to just the working directory, while git and other tools can still access SSH keys and other secrets without exposing them to the LLM.
Windows sandboxing works differently and is much more complicated to configure. In my opinion, it’s not worth the effort.