Automate Fly.io
Fly.io runs your apps as Machines spread across regions, with volumes for anything that has to persist. ClickRuntime keeps an eye on that setup for you: it spots Machines that stopped or failed, lists your apps and regions every week, parks staging Machines overnight, and checks that volume snapshots are recent. Say what you need to your AI assistant, look over what it proposes, and it runs on schedule from then on.
Try asking
Create a ClickRuntime automation: every 5 minutes, check the Machines in my Fly app 'api-prod' and post to #ops in Slack if any is no longer started. Ignore the Machines in 'preview-web', which autostop.
Paste it into your assistant. It tells you what it will send or change before it runs live.
Ideas
What you can automate in Fly.io
Hear in Slack when a Fly Machine stops or fails
If a Machine in your app leaves the started state, your channel gets one message naming it and its region.
See how it worksGet a weekly list of your Fly.io apps
Each Monday you get every app in your organization with how many Machines it runs, where, and in what state.
See how it worksShut down staging Machines overnight
Staging Machines stop in the evening and start again before work, and you only get an email if one refuses.
See how it worksCheck that your Fly volumes have recent snapshots
Once a week you see the newest snapshot date for each volume, with any that are falling behind flagged.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with Fly.io, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any Fly.io automation you can describe
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
For example, ask your assistant
Every 10 minutes, check my Fly.io machines and start any that stopped unexpectedly, then tell me which ones.
Every morning, post the status of each Fly.io app and region to Slack.
Every day, check my Fly.io apps' machine count and health checks, log them in Google Sheets, and email me from Gmail if any app has failing checks.
Beyond chat
Have Fly.io work when you're not in the chat
On a schedule
Get a weekly list of your Fly.io appsWeekly
Watches for changes
Hear in Slack when a Fly Machine stops or failsEvery 5 minutes
On a schedule
Shut down staging Machines overnightOn a schedule
Setup
Connect Fly.io
Fly.io connects with an access token you create yourself, either for a whole organization or for one app. Pick the narrowest one that covers the automation.
Fly.io
Developer / Hosting
- For a whole organization, run
fly tokens create org -o <org-slug> --expiry 8760h. - For a single app, run
fly tokens create deploy -a <app>instead. You can also create a token in the Fly.io dashboard under Account, then Access Tokens. - Copy the token value without any
BearerorFlyV1prefix in front of it. - In the ClickRuntime dashboard, open Connections & secrets and save it as a secret for Fly.io.
Good to know
Fly.io limits that affect automations
- Fly.io tokens last 20 years unless you set an expiry, so pass
--expirywhen creating one. - An app-scoped deploy token only sees that one app. Weekly inventories across apps need an org token.
- Listing apps requires your organization slug, so keep it handy when you set up an inventory.
- Machines with autostop turned on show as stopped when idle, and Fly Proxy can start them again when traffic arrives. Exclude them from crash alerts and expect them to wake up after a scheduled stop.
FAQ
Questions about automating Fly.io
What can ClickRuntime see and change on Fly.io?
Will autostopped Machines trigger false alerts?
How quickly will I hear about a crashed Machine?
Will a stopped staging Machine stay stopped all night?
Is AI needed for these Fly.io automations?
Is this a Fly.io connector for ChatGPT or Claude?
Related pages
Keep exploring