Skip to content

Give each agent a sandbox, and give a reviewer a link to what it built.

Drydock runs every sandbox under gVisor on Sailfork hosts, and the same hosts run your CI jobs.

Sandboxes acme, refreshes every few seconds
  • acme/shop at main Running

    node:22 on build-1, 2 CPUs, 2 GiB. Started by ada through Claude Code.

    Running for 6 minutes, no command running; stops in 54 minutes. 7f3a9c21

    Preview of port 3000 open until 14:32 at k7q2m9xd.preview.acme.dev

  • CI test on acme/shop#418 Running

    node:22 on build-1, 2 CPUs, 2 GiB. Started by CI.

    Running for 2 minutes, a command is running now; stops in 58 minutes. 3be07d5a

  • acme/api at main Queued, number 1 in line

    rust:1 waiting for a host with room, 4 CPUs, 8 GiB. Started by CI.

    Gives up if no host takes it in 58 minutes.

    Needs 4 CPUs; build-1 has 2 free and build-2 has 2 free.

Every sandbox and CI job shares Sailfork hosts, and a request that does not fit waits in line.

Sandboxes and CI jobs share the CPUs of each host, and a request that does not fit waits in line.

Waiting for room

build-1 online, gVisor, 8 CPUs

sandbox 7f3a9c21CI test, #418CI lint, #418free

build-2 online, gVisor, 4 CPUs

CI test, #417free

Queued, number 1 in line: acme/api needs 4 CPUs and takes the first host that frees them.

  • Sandbox
  • CI job
  • Free
  • Each segment is a reservation of CPUs.
Outbound connections from sandbox 7f3a9c21 while npm ci runs
DestinationResult
registry.npmjs.org:443Allowed, through the host’s package cache.
169.254.169.254:80Refused: cloud metadata address.
10.0.4.17:5432Refused: private network.
smtp.example.com:587Refused: mail port.

A sandbox reaches the internet, and never your network.

Outbound traffic skips private networks, cloud metadata and mail ports. A host that cannot install its firewall rules refuses to start.

Network rules

An agent can look at the page it built, and nothing leaves the sandbox.

browse shoots, scripts and records a page the sandbox serves on localhost. Start a sandbox on the Playwright image and install browse with one command.

flow.mjs
export default async ({ page }) => {
  await page.goto("http://localhost:3000/cart");
  await page.fill("input[name=code]", "WELCOME10");
  await page.click("text=Apply");
  await page.waitForSelector("#total");
};

sailfork sandbox exec $SB -- browse run /out/flow.mjs --video /out/flow.webm --gif /out/flow.gif --trace /out/flow.zip

Files the run writes inside the sandbox
FileWhat it isSize
/out/flow.webmVideo, 1280 by 800
about 0.4 MB for 30 seconds
/out/flow.gifGIF, 12 frames a second
about 1 MB for 30 seconds
/out/flow.zipPlaywright trace with screenshots
opens with npx playwright show-trace

A run that fails still writes all three, so you can see where it stopped.

A preview link is a running port with an expiry time.

sandbox expose serves a port to a reviewer until the link expires, and an agent’s request can wait for a person to approve. Without a preview domain on the server it answers previews_off.

Preview links
  1. sandbox expose 7f3a9c21 3000 held: an agent asked, a person has to decide.
  2. ada approved it. The link opens.

$ sailfork sandbox previews $SB

IDPORTSTATEEXPIRESBYTES
e41b0c9a3000open2026-11-22 14:321204411

The failing test stops the run before any link goes out.

One sandbox of acme/shop on node:22, from create to a preview a reviewer opens.

~/acme/shop
~/acme/shop $ SB=$(sailfork sandbox create -R acme/shop --image node:22)
~/acme/shop $ echo $SB
7f3a9c21-5d0e-4b86-a1c4-92e8d03b6f17
~/acme/shop $ sailfork sandbox exec $SB -- npm ci
added 412 packages in 9s
~/acme/shop $ sailfork sandbox exec $SB -- npm testexit 1
 FAIL  src/cart/total.test.ts > applies WELCOME10 once
AssertionError: expected 4999 to equal 5000
 Tests  1 failed | 41 passed (42)
~/acme/shop $ echo $?
1
~/acme/shop $ sailfork sandbox put $SB src/cart/total.ts /work/src/cart/total.ts
~/acme/shop $ sailfork sandbox exec $SB -- npm test
 Tests  42 passed (42)
~/acme/shop $ sailfork sandbox exec $SB -- 'npm run dev >/tmp/dev.log 2>&1 &'
~/acme/shop $ sailfork sandbox expose $SB 3000 --minutes 30
https://k7q2m9xd.preview.acme.dev/
port 3000 of sandbox 7f3a9c21-5d0e-4b86-a1c4-92e8d03b6f17 until 2026-11-22 14:32; preview e41b0c9a (stop it with `sailfork sandbox unexpose 7f3a9c21-5d0e-4b86-a1c4-92e8d03b6f17 e41b0c9a`)
~/acme/shop $ 

Limits

  • A sandbox stops by itself after 60 minutes, and --minutes raises that to 1,440.
  • A new sandbox gets 2 CPUs, 2 GiB of memory and 5 GB of disk on its host unless you pass --cpus, --memory or --disk.
  • When every host is full, create waits 60 seconds for room (at most 600), then leaves the sandbox queued.
  • A preview link lasts 60 minutes unless you pass --minutes, never more than 480 or past the sandbox itself. A sandbox has up to 3 open links and an organization up to 10.
  • Sailfork runs the hosts, and verified accounts use them with a money back guarantee, up to 8 running vCPUs and 100 unit-hours a month. Once billing starts, a unit-hour costs $0.012, where a unit is 1 vCPU with 2 GiB, billed per second.

Questions

Loading Sailfork