UNOUNOCODE

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.

IN ONE LINEWrite the project and temp. Read no secrets. Reach the internet, but no socket on disk. Because of that, sandboxed commands run without asking, installs included.
SANDBOX cargo test a shell command ./ project ✓ /tmp ✓ ~/.ssh ~/.aws ~/ home folder Docker · SSH agent .env files
Green gets through. Red bounces off the wall: the operating system refuses, whatever the command tries.

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, ~/.npm and ~/.cache), not Uno's own settings, and not .git/hooks, .uno or .claude inside the project;
  • cannot read .env files, credential folders such as ~/.ssh and ~/.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:

 UNO
bash docker compose up -d (outside the sandbox)
`docker compose up -d` would run outside the sandbox. Allow? y · a · n
  • --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-sandbox turns 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"
DESIGN DECISION · D47

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.)