Why nativesandbox
Runs where microVMs cannot
Containers need no nested virtualisation. On the cloud shapes that do not offer it — Oracle’s
Ampere ARM64 free tier among them — a microVM cannot boot at all, and this can.
Nothing to install but the engine
Zero dependencies, and no runtime of its own. Podman or Docker is the runtime, and your
distro already packages it.
The workspace is a directory
Bind-mounted, not copied through an agent channel. 7× faster to place 200 files and 49×
faster to read them back than a microVM runtime on the same machine.
Warm caches between commands
Reuse is meet-or-exceed, so a sandbox built large serves a small command. A dependency
install survives instead of going cold every time.
Hardened by default
Every Linux capability dropped, no-new-privileges, cgroup limits, and a network policy per
sandbox — each verified against a real
npm install, not assumed.A fleet that reclaims itself
Idle stop and a hard maximum lifetime, recorded on the container so they outlive the process
that set them. Neither interrupts a command in flight.
What people use it for
- AI agents that run code. A tool call that executes whatever the model wrote, in a box.
- Untrusted user submissions. Coding exercises, notebook cells, marketplace plugins.
- Build and test isolation. A dependency install that cannot reach the rest of the host.
- Per-tenant workspaces. One long-lived sandbox per customer, reclaimed when it goes quiet.
- Anything on a host without
/dev/kvm. Which, on the cheap cloud shapes, is most of them.
A minimal example
The trade, stated plainly
This is process isolation, not hardware isolation. A sandbox cannot read or write the host, but the boundary it leans on is the kernel rather than a hypervisor, and that is a weaker boundary. It is narrowed by running rootless, by dropping every capability, by seccomp, by cgroup limits and by a per-sandbox network policy — and it can be narrowed much further, at no cost, with gVisor, which still needs no KVM. If your host has KVM and you want hardware isolation, use a microVM runtime. This exists for the hosts that cannot. If you have seen this, that is you:Next steps
Quickstart
From nothing to a running sandbox, in one command.
Check your host
nsbx doctor tells you whether this machine can run sandboxes, and what to fix if not.Isolation
What is taken away from every sandbox — and what is not defended against.
API reference
Every option and method.