SAFETY
The sandbox
Shell commands run inside the operating system's own sandbox: Seatbelt on macOS, bubblewrap on Linux. Inside it, a command can work on your project and nothing else.
Inside the sandbox, a command
- can read your files and write inside the project and temporary folders;
- cannot write anywhere else: not your home folder (except package and build caches such as
~/.cargo/registry,~/.npmand~/.cache), not Uno's own settings, and not.git/hooks,.unoor.claudeinside the project; - cannot read
.envfiles, credential folders such as~/.sshand~/.aws, or, on macOS, passwords saved in the keychain; - can reach the internet and this machine's own servers: search, download,
npm install,pip install,cargo add,git clone; - cannot connect to sockets on disk, the way to Docker, an SSH agent or the session bus, through which another program would act outside the sandbox.
When a command needs more
Some commands need more than the sandbox gives, such as installing a tool globally or talking to Docker. The model can ask to run a command outside the sandbox, and that always asks you:
--allow "bash(docker compose)"or a rule lets that command run unconfined without asking. Keep it narrow."sandbox": {"network": false}in settings takes the network away from sandboxed commands, for projects whose code must not leave the machine. Installs then ask to run outside.--no-sandboxturns the sandbox off for a run; every command then asks."sandbox": {"enabled": false}in settings does the same, always.
Use cases
Let it run the tests freely
Tests, builds, linters: all local, so all sandboxed, so no questions.
uno -p "make the failing tests pass"Install what the task needs
Packages come in inside the sandbox, so no question and nothing unconfined.
uno -p "add zod and validate the form"Network on, sockets on disk off. Installs and downloads are everyday work, and running them outside the sandbox left them with no limits at all; inside it they still cannot write outside the project or read a secret. The cost: a tricked model could send the project's own files somewhere. Your keys and credential folders stay unreadable, and "sandbox": {"network": false} closes the network for projects where that matters. The operating system enforces it, not the prompt. (D47 replaced D14, network off by default.)