- Blocks reads and writes of credential files such as
.env,.ssh,.aws, and.netrc. - Removes known secret variables, such as
AWS_SECRET_ACCESS_KEYandGITHUB_TOKEN, from the package manager environment. - Blocks host unix sockets, such as the SSH agent and the Docker daemon.
- Blocks writes to Git hooks and Git config.
The sandbox runs on macOS (Seatbelt) and Linux (Landlock on kernel 5.13 or later, or Bubblewrap). It does not run on Windows. The sandbox is off by default.
Turn on the sandbox
1
Enable the sandbox
2
Check the sandbox driver
3
Install a package
npm run build, run without it.--sandbox:
Fix a denied operation
A denied operation fails in the package manager with a permission error. PMG records the denials that the sandbox driver reports. The Landlock and Bubblewrap drivers do not report every denial. See the sandbox debug commands.1
Find the cause
2
Allow it for one run
read, write, exec, net-connect, net-bind, env, and preset. For a removed variable, use env=NAME.3
Keep it for this repository
pmg sandbox project show.Use a preset for a known tool
A preset is a set of allowances for one tool, such as a dev server. Use a preset instead of allowing each denial:The sandbox is free in PMG. With SafeDep Cloud, you see the sandbox allowances and denials on every endpoint of your team. See Query the PMG controls.
Next steps
For the profile format, custom profiles, and platform limits, see the sandbox documentation in the PMG repository.Limit the Hosts a Package Install Can Reach
Allow only the registries an install needs.
Sandbox Your AI Coding Agent
Run Claude Code, Codex, or Pi in the PMG sandbox.

