Fly

Cloud Access token

Create and control Fly.io machines, volumes and apps from any Windmill script, flow or app.

Set up in 3 steps

1

Create an access token

Run flyctl tokens create org, or create one from the Fly dashboard under Tokens. Prefer a token scoped to one app over a personal one.

2

Add the resource in Windmill

Open Resources, add a resource of type fly, and paste the token.

3

Run your first script

Fork any script below and read before writing anything. There are dozens here, so search by the verb you need.

Scripts

Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.

Resource type

fly — the shape of the credential every script on this page expects.

View raw schema →
FieldTypeRequiredWhat it is
tokenstringYes

Questions

Machines bill while they exist

A started machine bills for its compute. Scripts that create machines should have a matching path that destroys them, not just stops them.

Is this the same as the GraphQL API?

No. These scripts use the Machines API, which is the REST one. Some older Fly operations only exist on the GraphQL endpoint.

Is my token stored on the hub?

Never. It lives only in your own Windmill workspace, encrypted at rest.