r/opencode • • 1h ago

Isolated Environments?

Is anyone overly concerned with providing opencode isolated environments or do you just run it on your every day machine and don't worry about it?

Is there any fear of it running of and nuking your dev machine?

3 Upvotes

6 comments sorted by

1

u/RepulsiveRaisin7 59m ago

I made a little container isolation tool. Running direct on hardware is sketchy, I try to avoid it. Most permission systems won't actually protect you against bad shell commands

1

u/evan-nielsen 4m ago

How does this tool differ from docker sandboxes? What makes it better?

1

u/YoRt3m 53m ago

I run it directly on my machine and I know it's bad, but I'm not so worried. at most it will lock me out of my computer and ask for ransom.

1

u/banter_droid 26m ago

And exfiltrate your nudes

1

u/YoRt3m 2m ago

It will send it to all my contacts and it will be a free marketing tool for my Onlyfans.

1

u/tsangberg 50m ago

Made my own podman container based sandboxing with it's own MCP-based tools. Opencode, llm engine etc all still run on the host, but the agent's tools run inside a container which only has a strict subset mapped into it.

Open sourced under creative commons zero license, maybe something useful (it has a few more interesting features like remoting into other systems etc while still sandboxed): https://git.sync.wtf/troed/umwelt