Walkthrough
Build it yourself, part by part.
A Mac mini under a desk or a Raspberry Pi on a shelf is a real computer that costs nothing more to use. Connected to Annex, it becomes the first place your agents' sandboxes start, with your cloud accounts taking over only when it is full.
Nothing about your code changes. Every other walkthrough on this site runs at home as it is, because where a sandbox runs is Annex's decision, not your program's.
-
Connect the machine
In the dashboard, under Connections, choose Your own server and run the one command it shows on the machine. It installs a small helper that connects out to Annex, so nothing on the machine is opened to the internet and your router is left alone.
The machine then appears beside your other accounts with a rate of $0 an hour and a limit on how many sandboxes it runs at once. A Linux machine needs a 64-bit system; a Mac needs Apple silicon and macOS 26 or later.
-
Watch it fill up and spill over
This script starts sandboxes one at a time with the route cheapest and prints where each one landed. Your machine costs nothing, so it is chosen first. Once it is at its limit, the next sandbox goes to your next-cheapest account without the script knowing or caring.
spill.mjs
const count = Number(process.argv[2] || 4) const started = [] try { for (let i = 1; i <= count; i++) { // one at a time, so each sees the ones before it const sb = await annex.start({ route: 'cheapest', vcpu: 1, memory_gib: 1 }) started.push(sb) const host = (await annex.run(sb.id, 'uname -nm')).output?.trim() console.log(`${i}. ${sb.provider.padEnd(12)} $${(sb.rate_per_hour_micros / 1e6).toFixed(4)}/h ${host}`) } } finally { await Promise.allSettled(started.map((sb) => annex.stop(sb.id))) console.log(`stopped all ${started.length}`) }
Before you rely on it
- Whoever controls the machine can see what its sandboxes do, including any secrets you give them. Use a machine you trust.
- One sandbox can fill the machine's disk. Keep an eye on it, or give sandboxes a machine of their own.
- A machine that is switched off is skipped, and its work goes to your other accounts until it is back.