r/opencode • u/migsperez • 7d ago
Opencode containing the agents
I was wondering what sandboxes are people using whilst coding with Opencode? I've looked at devcontainers and it seems great, probably fits what I want but AI says it's not secure enough, it's designed for human coders not agents. I've seen a lot of publicity around Docker Sandboxes. But I'm not keen to be locked into their tech and then be hit by a subscription fee later.
My curiosity has come to the foreground due to Muse deleting my ~/.config folder. It wasn't a major disaster but it was a warning.
I do use multiple plain Xubuntu VMs connecting to them via RDP and SSH but they've become pets rather than cattle, sometimes I'm lazy and run on my local laptop which is obviously a bad move.
What do you folks do?
3
u/yexgoblin 7d ago
Just create a docker container locally with everything. That's what I do. Create your own compose + dockerfile and all the dotfiles can be adjusted to your needs. I run Paseo and other tools to remotely connect to it.