r/opencode • • 57m ago

Securing agents

Hey guys I have some kind of a problem and I want your ideas about this, I am running opencode in a VM for safety reasons and connecting to it thru ssh, the thing is that I want to secure the whole thing thus the IA model can't access the directories where the Linux user that runs opencode gets access, like I was testing something and one model tried to access the database from the very opencode app, thing that shouldn't be able to do, I know that I can grant access and other things in settings in json and other stuff but I haven't found any place where I can't restrict access to only one carpet, I want the thing to be able to run shells to do stuff like image processing or whatever but I don't want it to have the capability to mess with opencode configuration, I really hope I make sense, how you guys are dealing with this with opencode?

0 Upvotes

0 comments sorted by