sandbox-exec was deprecated on MacOS few years ago
Resolved 💬 3 comments Opened Apr 17, 2025 by arekt Closed Apr 17, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator)
responded on this thread — see the highlighted reply below.
quick check on MacOS 15.4
# man sandbox-exec
SANDBOX-EXEC(1) General Commands Manual SANDBOX-EXEC(1)
NAME
sandbox-exec – execute within a sandbox (DEPRECATED)
SYNOPSIS
sandbox-exec [-f profile-file] [-n profile-name] [-p profile-string] [-D key=value ...] command
[arguments ...]
3 Comments
Ack, it still works very well and allows us to get started for now. Would love to see a proposal on implementing sandboxing across different platforms and discuss there!
I'm proposing an API for sandboxing shell commands and file I/O, with an arbitrary backend such as https://github.com/AkihiroSuda/alcless (Incorporates
su,sudo, andrsyncon macOS to execute a command as another user, with a copy of the current directory) .I opened an issue in Gemini's repo, however, I believe this proposal should be useful for codex too, and I'm hoping that there can be a chance of standardizing the protocol for sandboxing 🙏
Consider Amazing Sandbox as well; it uses Docker-based isolation, good developer experience, is cross-platform, and does not use anything that's deprecated.