[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110618":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":36,"updatedAt":37,"readmeContent":38,"aiSummary":39,"trendingCount":16,"starSnapshotCount":16,"syncStatus":40,"lastSyncTime":41,"discoverSource":42},110618,"sandstorm","deeplethe\u002Fsandstorm","deeplethe","Run thousands of AI agent sandboxes on the cheapest machines.","",null,"Rust",6107,410,240,5,0,4,193,622,194,101.84,"Apache License 2.0",false,"dev",true,[27,28,29,30,31,32,33,34,35],"agent-infrastructure","ai-agents","checkpoint-restore","code-execution","gvisor","rust","sandbox","self-hosted","snapshot","2026-11-20 17:27:05","2026-11-23 17:19:13","\u003Cdiv align=\"center\">\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Flogo-dark.svg\">\n  \u003Cimg alt=\"Sandstorm\" src=\"docs\u002Flogo.svg\" width=\"383\">\n\u003C\u002Fpicture>\n\n\u003C\u002Fdiv>\n\n\u003Cbr\u002F>\n\n\u003Cdiv align=\"center\">\n\n[Sandbox lifecycle](#adaptive-sandbox-lifecycle) · [Key features](#key-features) · [Latency](#latency) · [Quick start](#quick-start) · [Status](#status)\n\n[![CI](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002Fdeeplethe\u002Fsandstorm\u002Fci.yml?branch=dev&style=flat-square&label=CI&color=0B7285&labelColor=161B22)](https:\u002F\u002Fgithub.com\u002Fdeeplethe\u002Fsandstorm\u002Factions)\n[![Rust](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FBUILT%20WITH-RUST-F74C00?style=flat-square&labelColor=161B22&logo=rust&logoColor=FFFFFF)](https:\u002F\u002Fwww.rust-lang.org)\n[![gVisor](docs\u002Fassets\u002Fbadges\u002Fgvisor.svg)](https:\u002F\u002Fgvisor.dev)\n[![Firecracker](docs\u002Fassets\u002Fbadges\u002Ffirecracker.svg)](https:\u002F\u002Ffirecracker-microvm.github.io)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLICENSE-APACHE%202.0-2D333B?style=flat-square&labelColor=161B22)](LICENSE)\n[![DeepLethe](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FBUILT%20BY-DEEPLETHE-F1F2F5?style=flat-square&labelColor=161B22)](https:\u002F\u002Fdeeplethe.com)\n[![中文](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLANG-%E4%B8%AD%E6%96%87-DA3633?style=flat-square&labelColor=161B22)](README-zh.md)\n\n\u003C\u002Fdiv>\n\n**One machine, thousands of sandboxes.** Sandstorm pauses idle sandboxes and snapshots them to disk, then restores them quickly when a request arrives, so one machine can hold far more sandboxes than it could run at once. It supports two sandbox backends, [gVisor](https:\u002F\u002Fgvisor.dev) containers and [Firecracker](https:\u002F\u002Ffirecracker-microvm.github.io) microVMs. Every sandbox has its own network namespace, and both backends can run in one fleet, each forming a resource pool of its own. The master serves a web console for viewing and managing sandboxes and scheduling across the fleet.\n\n\u003Cdiv align=\"center\">\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Fcharts\u002Fcompare-dark.svg\">\n  \u003Cimg alt=\"Start time, memory and clone time of a 64 MiB app, by runtime: on a cloud VM, Sandstorm on Firecracker from a warm template 84 ms and CubeSandbox 87 ms; on a KVM machine 100 ms and 129 ms, in 11 and 12 MiB, and 938 ms and 1.1 s to clone into 20; Docker with gVisor 685 ms, microsandbox 1.1 s and Kata 3.4 s.\" src=\"docs\u002Fassets\u002Fcharts\u002Fcompare-light.svg\" width=\"100%\">\n\u003C\u002Fpicture>\n\n\u003C\u002Fdiv>\n\n\u003Csub>The 64 MiB app, p50 of 20 started one at a time, log scales. Each panel is ranked on its own, best first, in gold; Sandstorm's other rows are in blue. FC: [Firecracker](https:\u002F\u002Ffirecracker-microvm.github.io). Cube: [CubeSandbox](https:\u002F\u002Fgithub.com\u002FTencentCloud\u002FCubeSandbox). Also shown: [microsandbox](https:\u002F\u002Fgithub.com\u002Fsuperradcompany\u002Fmicrosandbox), [Kata](https:\u002F\u002Fkatacontainers.io), [Docker](https:\u002F\u002Fwww.docker.com), [Podman](https:\u002F\u002Fpodman.io), [bubblewrap](https:\u002F\u002Fgithub.com\u002Fcontainers\u002Fbubblewrap). Warm: restored from an image of the app already started. Cloud VM: six 2-core, 2 GB nodes for [gVisor](https:\u002F\u002Fgvisor.dev) and containers; one 2-core, 3.6 GB VM under [PVM](https:\u002F\u002Fgithub.com\u002Fvirt-pvm\u002Flinux) for Firecracker and CubeSandbox. KVM machine: 2 × Xeon E5-2637 v2, 31 GB. Clones are of a running app, until all 20 answer (microsandbox: until running).\u003C\u002Fsub>\n\n## Adaptive Sandbox Lifecycle\n\nAgents spend much of their time waiting. Sandstorm is designed around this behavior, with four sandbox tiers that progressively suspend idle sandboxes and quickly wake them when requests arrive.\n\n| Tier | State | Memory | Back to hot |\n|---|---|:---:|---:|\n| **hot** | Running | Held | — |\n| **frozen** | Paused, cold pages in zswap | Partly held | ~0.1 s |\n| **snapshot** | Checkpointed to disk | Freed | ~0.2 s |\n| **detached** | Only the volume remains | Freed | Cold start |\n\n## Key Features\n\n- **One master, many nodes.** The master keeps desired state in SQLite and places sandboxes. Nodes join by address and pairing code, or dial out from behind NAT.\n\n- **Wake on traffic.** A gateway on the sandbox's node wakes it and forwards the request.\n\n- **Node self-protection.** Nodes refuse new work when memory runs low, so SSH stays reachable.\n\n- **One binary.** `sandstormd` serves as the master, node, and web console.\n\n- **Tuned for each backend.** gVisor and Firecracker each get [their own optimizations](docs\u002FOPTIMIZATIONS.md).\n\nThe master's web console shows sandbox states, tier transitions, and node headroom.\n\n\u003Cp align=\"center\">\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Fconsole-dark.webp\">\n  \u003Cimg alt=\"The Sandstorm console: counts of sandboxes, awake ones, nodes, creates per minute and API p99 across the top; the tier flow between awake, frozen, on disk and detached; sandboxes by tier over time, lifecycle rates, node headroom and latency.\" src=\"docs\u002Fassets\u002Fconsole-light.webp\">\n\u003C\u002Fpicture>\n\u003C\u002Fp>\n\n## Latency\n\nMeasured 2026-10-31, with requests from each node to its own gateway, so no network is in the path. gVisor needs no KVM and ran on six cloud nodes. Firecracker ran on one machine with KVM and one cloud VM under PVM. The hosts differ, so read each column on its own.\n\n| | gVisor | Firecracker, KVM | Firecracker, PVM |\n|---|---:|---:|---:|\n| Host | 2 cores, 2 GB | 16 threads, 31 GB | 2 vCPU, 3.8 GB |\n| Wake from frozen, 64 MiB app | 100 ms | 165 ms | 78 ms |\n| Wake from disk, 16 \u002F 64 \u002F 256 MiB app | 130 \u002F 150 \u002F 720 ms | 150 \u002F 150 \u002F 500 ms | 80 \u002F 135 \u002F 450 ms |\n| Wake from disk, 512 MiB \u002F 1 GiB app | 1.1 \u002F 3.3 s | 0.7 \u002F 1.4 s | 0.4 s \u002F not run |\n| Kept in memory per node: web \u002F 64 MiB \u002F 256 MiB app | 76 \u002F 18 \u002F 6 | 293 \u002F 160 \u002F 85 | 45 \u002F 34 \u002F 18 |\n| Refused at 1, 2, 4, 8 requests a second per node | 2.1 \u002F 0.2 \u002F 0.1 \u002F 1.6% | 0.2 \u002F 0 \u002F 0 \u002F 0% | 0 \u002F 0 \u002F 0 \u002F 0% |\n| Answered, of 10 \u002F 40 woken at the same instant | 6 \u002F 6 | 10 \u002F 28 | 5.5 of 8 |\n\nTraffic is 40 sandboxes per node with a few getting most requests; about 12 fit awake on a gVisor node. p50 is 6-10 ms on gVisor, 7-50 ms on KVM and 4-14 ms on PVM; p99 is about 2 s, 0.8-1.9 s and 1.8-3.6 s, the requests that had to wait for a restore. A wake that cannot start within 2 s is refused rather than queued. A gVisor node here restores two at a time and queues four, so of 10 or more woken at once, six are answered and the rest get a 503 at once.\n\nThe \"kept in memory\" metric counts sandboxes that remained running with swap enabled; it does not indicate how quickly they can respond to requests.\n\nWithout swap, the PVM host could accommodate only about eight instances of the 64 MiB app. As a result, the traffic test used a smaller fleet of 20 sandboxes, and the 1 GiB app was not tested.\n\nFirecracker's results for the 512 MiB and 1 GiB configurations are based on a single sample each.\n\nSee the [full results and testing methodology](bench\u002Ffleet\u002Fresults\u002F2026-10-31\u002FREADME.md).\n\n## Method\n\nThe figure at the top: every runtime started one at a time, polled every 5 ms, p50 of 20 ([`compare.py`](bench\u002Fbaremetal\u002Fcompare.py)). Sandstorm's time includes the master placing the sandbox and the node setting up its network. The cloud column is the median of six 2-core, 2 GB nodes, and for Firecracker and CubeSandbox one 2-core, 3.6 GB VM with CubeSandbox's PVM host kernel, which gives a VM without KVM a `\u002Fdev\u002Fkvm`.\n\nA warm template restores an image of the app already started, as CubeSandbox always does; it is opt-in here, because every sandbox starts from the same memory and the template has to say how to reseed. CubeSandbox's API always restores a snapshot, so its cold figure comes from its own `cubemastercli multirun`, with a template's create request minus the snapshot annotations and a 5 ms probe: from the client's call until the program answers, as for the rest.\n\nUnder PVM the two warm starts are level: Sandstorm 52 \u002F 83 ms, CubeSandbox 53 \u002F 87 ms for web and the 64 MiB app. On the KVM machine Sandstorm's is ahead: 67 \u002F 100 ms against 78 \u002F 129 ms. Cold, Sandstorm leads on both: 545 \u002F 921 ms against 828 \u002F 999 ms on the KVM machine, 667 \u002F 869 ms against 845 \u002F 1,094 ms under PVM, where a guest boots without a serial console unless `--fc-serial-console` says otherwise. The 64 MiB app was 74 ms and 78 ms on the same machine a day earlier, with the same binary, so take that column as relative. A snapshot of a running sandbox took Sandstorm 30 ms and CubeSandbox 304 ms. Clones into 1, 10 and 20 took Sandstorm 126, 214 and 361 ms, and CubeSandbox 494, 1,046 and 1,064 ms; Sandstorm's 100 took 1.7 s, and CubeSandbox was not run past 20. E2B self-hosted was not set up, and memory under PVM was not measured. Raw rows: [bench\u002Fbaremetal\u002Fresults\u002F2026-10-30](bench\u002Fbaremetal\u002Fresults\u002F2026-10-30\u002FREADME.md), [bench\u002Ffleet\u002Fresults\u002F2026-10-30](bench\u002Ffleet\u002Fresults\u002F2026-10-30\u002FREADME.md); Sandstorm's clones, a day later with parallel creates: [bench\u002Fbaremetal\u002Fresults\u002F2026-10-31-parallel](bench\u002Fbaremetal\u002Fresults\u002F2026-10-31-parallel\u002FREADME.md).\n\n## Quick start\n\nYou need Linux with cgroup v2, [`runsc`](https:\u002F\u002Fgvisor.dev\u002Fdocs\u002Fuser_guide\u002Finstall\u002F) on the `PATH`, Rust, and Node 22.12 or later for the console.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fdeeplethe\u002Fsandstorm.git && cd sandstorm\nnpm --prefix web\u002Fconsole ci && npm --prefix web\u002Fconsole run build\ncargo build --release -p sandstorm-core\nsudo .\u002Ftarget\u002Frelease\u002Fsandstormd serve --master --node\n```\n\nThat runs a master and a node in one process. Open the console at `https:\u002F\u002F127.0.0.1:8080`, past the browser's warning about its private CA, sign in with the token in `\u002Fvar\u002Flib\u002Fsandstorm\u002Fpki\u002Fapi-token`, make a template with **+ From an image**, and start a sandbox from it.\n\n**A fleet** of machines you can ssh to:\n\n```bash\nscripts\u002Ffleet.sh up --master m1 --nodes n1,n2,n3 --listen 80\nscripts\u002Ffleet.sh seed     # put a template on each node\nscripts\u002Ffleet.sh verify   # start one sandbox and check it runs\n```\n\nA client on another machine connects by a name the master's certificate has to list: add it with `--tls-san`. Nodes that are already installed, or that only reach the master from behind NAT, join [as the API describes](docs\u002FAPI.md#nodes). Everything the console does is in the [HTTP API](docs\u002FAPI.md), and [bench\u002Ffleet](bench\u002Ffleet\u002FREADME.md) load-tests a fleet.\n\n## Status\n\nv0.6 is the current release, and it changes a lot: gVisor becomes the default backend, so a node needs no KVM, Firecracker stays as a second backend chosen node by node, and one host becomes a fleet. The release before it, v0.5.3, is the Firecracker fork runtime; its README is [at that tag](https:\u002F\u002Fgithub.com\u002Fdeeplethe\u002Fsandstorm\u002Ftree\u002Fv0.5.3). The design decisions are recorded in [docs\u002Fadr](docs\u002Fadr\u002FREADME.md).\n\nNext, from what the fleet runs found:\n\n- [x] Make room on wake: put the sandbox least in demand to disk instead of refusing the request.\n- [x] Retry a create the node held back once memory frees, instead of parking it; and clear its error once it runs.\n- [x] Clear away a sandbox that dies, network included, and restart it if it is still wanted.\n- [ ] Reserve capacity on the master as it places, so a burst cannot overshoot a node's last report.\n- [x] Restore several snapshots in parallel on one node.\n\n## License\n\n[Apache-2.0](LICENSE)\n","Sandstorm 是一个轻量级 AI 代理沙箱编排系统，用于在低成本硬件上高效运行数千个隔离的 AI agent 实例。它通过暂停空闲沙箱、快照到磁盘并按需快速恢复（checkpoint-restore）来实现超高密度部署；支持 gVisor 容器与 Firecracker 微虚拟机双后端，每个沙箱拥有独立网络命名空间，可混合调度与资源池化管理。适用于需要高并发、低延迟、强隔离的 AI agent 托管场景，如 LLM 工具调用服务、自动化测试平台、安全沙箱即服务（Sandbox-as-a-Service）等。",2,"2026-11-24 04:39:28","top_language"]