Hermitbox demo · box

A Linux box that sleeps for free and wakes on a keystroke

This is a real Linux kernel, compiled to WebAssembly, running inside one Cloudflare Durable Object. Its disk is rows in the object's SQLite database. Stop typing for 30 seconds and the machine is snapshotted into the same database and stopped, so the object can leave memory and costs nothing but storage. Press a key and it comes back where it was.

Each visitor gets a box of their own: 48 MB of memory, 128 MB of disk, one CPU and no network. It is deleted 15 minutes after it is made.

How it works

The source and how to run it on your own account: examples/box.

Hand it to your agent: