r/PiCodingAgent • • Sep 17 '26

Discussion Sandboxing Pi?

I'm new to the local LLM game. I've just purchased an AMD R9700, and I'm trying to set up a local environment that is as similar as possible to what I get with Claude Code at work.

It's definitely looking like Pi may be my harness of choice, so I'm investigating what it would take to "sandbox" it in a way that is both reasonably secure and reasonably convenient (i.e. no containers or VMs). I'm on Linux, so I'm thinking maybe Bubblewrap?

Curious to know what other are doing, though.

28 Upvotes

20 comments sorted by

View all comments

5

u/lem-8 Sep 17 '26

Just run it in a container. I use podman and defined a shell (in my case fish) function that calls it with a bind mounted dir as argument. Safe and simple.

4

u/bcdxn Sep 18 '26

I’m also interested in this topic. I wrote a bit on my experiments here if it helps OP. The gist of it is running the agent harness in a docker container (as you mentioned) with a read only filesystem, full network isolation and running a second container with squid proxy to allow-list certain domains if/when needed. Baby steps for sure as I’m still learning.

2

u/rokiden Sep 18 '26

The same, my implementation with readme: https://github.com/rokiden/pic

Minimal ephemeral Alpine container where agent can install any software, have access to project files only, and shared config mounted from host.