Skip to content

A sandbox for each agent. Fork it like a file.

boxfork is an open-source sandbox service for AI agents. One binary changes a Linux machine into isolated CPU and GPU sandboxes that you can snapshot and fork.

A model writes code, and then the code must run somewhere. The code can be incorrect. A prompt from an attacker can make it hostile. Thus the code must run on a machine that it can damage without risk to your data.

That machine is a sandbox. boxfork gives one to each agent, on your own hardware. Hosted services such as E2B, Modal and Daytona give the same kind of sandbox, but on their computers. With boxfork, your code and your data stay on your machine.

Your agentSDK, CLI or MCPone Linux machineboxfork daemonone binary, one state filegVisor: its own kernelsandbox$ python3 hello.pyhellofork 1/work/hello.pysame filesfork 2/work/hello.pysame files
  1. Ask. Your agent asks the daemon for a sandbox.
  2. Isolate. The daemon starts it behind gVisor.
  3. Run. The code runs, and the output comes back.
  4. Fork. A snapshot makes copies with the same files.

The daemon is the only process that runs all the time. It puts a small helper in each sandbox. The helper runs the commands and moves the files. The daemon reaches the helper through the container engine, so a sandbox with no network works fully. How it works gives each part.

1.5 msto create a sandbox from a warm pool. 139 ms without a pool.
4 msfor a command on the kept connection. 13 ms without it.
452 msto start a sandbox with a whole NVIDIA L4 GPU, under gVisor.
15 sto move 4 sandboxes off a drained Kubernetes node. No write that a client saw succeed was lost.

The first two numbers are medians from one slow, nested test machine, so they show a relation, not the speed of a server. The GPU number is one run on Google Cloud. The drain ran on a kind cluster. Performance and the roadmap give each source and what is not proven yet.

from boxfork import Sandbox
with Sandbox.create("python:3.12", gpu=1) as sbx:
sbx.files.write("/work/train.py", code)
print(sbx.run("python3 /work/train.py").stdout)
copies = sbx.fork(4) # four sandboxes with the same files

Start with one binary on one Linux machine. There is no Kubernetes, no database and no account. When one machine is not enough, run boxfork on Kubernetes, or put many machines behind one address. The SDKs, the CLI and the MCP server do not change.

The GLM 5.4 tool calls in the film were recorded on 5 December 2026 and ran live on boxfork.

boxfork is new, and the licence is Apache-2.0. The roadmap tells you what is built, what is proven, and what comes next.