Skip to Content

Fly Machines

Prepare the app and deploy token that let Sandcovery run Fly Machines in your own Fly.io organization.

Sandcovery runs each sandbox as one Fly Machine in an app of your Fly.io organization, on a shared CPU in Ashburn (iad).

  • App name: an app that holds only Sandcovery's Machines, such as one made with fly apps create <name>. Sandcovery creates, lists, and destroys Machines only in that app, and finds a lost sandbox by the sandcovery_id metadata on its Machine.
  • Deploy token: a token scoped to that app alone, made with fly tokens create deploy --app <name>. Paste the whole token, including its FlyV1 prefix.

Each Machine starts from your image, or ubuntu:24.04 when you name none, and runs sleep for the sandbox's TTL in place of the image's own command, so Fly.io stops and destroys the Machine at its TTL even if Sandcovery cannot reach it. The image needs sleep, sh, timeout, and base64, since commands and file transfers run through Fly.io's exec API.