sandkiln

Sandboxes for agents

sandkiln runs untrusted and AI-generated code in its own microVMs, on hardware you control. A sandbox answers its first command in about 26 ms when a warm one is ready and 234 ms when it has to boot, and can be snapshotted, forked and resumed. Use it from TypeScript, Python, the CLI, an MCP server or a GitHub Action.

$ git clone https://github.com/SumitKumar-17/sandkiln
$ cd sandkiln && scripts/setup.sh
$ scripts/sandkilnd-ctl.sh start

Self-hosted: you run the daemon on a Linux machine with KVM. Setup guide.

Create, run, fork

A terminal session. kiln sandbox create makes a sandbox; uname reports its own Linux 5.10.223 kernel; a file is written; the sandbox is snapshotted and the snapshot forked; the fork reads back the file: hello from a microVM.

A real session, not a mock-up. The same calls from TypeScript and Python. All the numbers, with the conditions: current numbers.