| ▲ | carshodev 17 hours ago | |||||||||||||||||||||||||
Is there any way to do this with user permissions instead? I feel like it should be possible without having to run a full container? Any reason we cannot setup a user and run the program using that user and it can be contained to only certain commands and directory read write access? | ||||||||||||||||||||||||||
| ▲ | saltypal 11 hours ago | parent | next [-] | |||||||||||||||||||||||||
Check out https://github.com/anthropic-experimental/sandbox-runtime, which tackles this problem using the built-in userspace sandboxing on macOS and Linux. I run Claude from a mounted volume (but no reason you couldn't make a user for it instead) since the Deny(~) makes it impossible to run from the normal locations. export CLAUDE_CONFIG_DIR=/Volumes/Claude/.claude Minimal .claude/settings.local.json: | ||||||||||||||||||||||||||
| ▲ | vunderba 16 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
Yeah that's similar to my approach. I created a non-admin account on my Mac to use with OpenCode called "agentic-man" (which sounds like the world's least threatening megaman villain) and that seems to give me a fair amount of protection at least in terms of write privileges. Anyone else doing this? EDIT: I think it'd be valuable to add a callout in the Github README.md detailing the advantages of the Yolobox approach over a simple limited user account. | ||||||||||||||||||||||||||
| ▲ | Finbarr 17 hours ago | parent | prev [-] | |||||||||||||||||||||||||
Could do but part of what I find super useful with these coding agents is letting them have full sudo access so they can do whatever they want, e.g., install new apps or dependencies or change system configuration to achieve their goals. That gets messy fast on your host machine. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||