r/opencode • u/SirSpix • Nov 01 '26
Best way to isolate OpenCode projects
Hey all,
I know this might be a basic question that gets asked a lot, but I'm still a beginner and my head is spinning a bit with all the options, so thanks for your patience! :)
I'm looking for the best way to completely isolate my OpenCode harness projects on Ubuntu.
(I use OpenChamber as GUI)
My goal is zero cross-contamination: no shared agent memory, no leaking coding styles, etc. Each project needs to be a total blank slate.
Some projects use Docker, others run natively. I need a solution that is simple to implement but reasonably secure.
What’s the cleanest move here? Messing with XDG env vars? Running the harness inside Docker containers? Or going nuclear with separate Ubuntu system users?
How do you keep your AI agents from bleeding into each other?
Thanks in advance for the support! :)
View all comments
Show parent comment
1
u/SirSpix Nov 02 '26
Thanks! Bubblewrap is great for zero overhead.
My projects run Docker internally, though, and nesting Docker inside Bubblewrap sounds like an headache...? Am I wrong?