Prerequisites
- A Fly.io organization that holds the apps you want to inspect.
- The
flyctlCLI (install it), signed in withfly auth loginas a member of that organization. - A CloudThinker workspace where you can add connections.
Setup
1
Create a read-only organization token
Run this in your terminal:
720h is 30 days. Always pass --expiry: Fly.io tokens last 20 years by default. If you belong to more than one organization, add --org <slug> to pick the right one. Run fly orgs list to see your slugs.Copy the whole value the command prints, including the FlyV1 prefix (for example FlyV1 fm2_...).Put the expiry date on your calendar. After it, prompts fail with the authentication error under Troubleshooting.If you lose the token, find its id with fly tokens list, revoke it with fly tokens revoke <token-id>, and create a new one.2
Add the connection in CloudThinker
In the sidebar, click More → Workspace settings → Connections. On the Builtin Connections tab, search for Fly.io, paste the token into Access token, and click Connect. CloudThinker lists your organizations with the token to check it.Success state: the Fly.io card shows a Connected status.
3
Run the verify prompt
Run the verify prompt in a new chat.Success state: CloudThinker lists your organizations and their apps.
Connection details
There’s no organization slug or region to enter. CloudThinker reads the organization from the token.
Required permissions
The token type is the permission model.fly tokens create readonly makes a token that can only read one organization and its resources. It can’t deploy, scale, restart, or destroy anything, and Fly.io offers no finer scoping.
Agent capabilities
Every capability is a read, so nothing on this connection asks for approval. Lists show 25 rows by default and say how many they hid. Ask for a wider view (up to 100) when you need it.
This connection can’t reach:
How to read the results
App status and machine state come from Fly.io’s control plane. They aren’t health checks.- A
startedmachine doesn’t prove your app responds to requests. - A
stoppedmachine isn’t a fault. Fly.io stops machines that have autostop configured. - A stopped machine keeps its volume attached, and Fly.io bills the volume either way. An attached volume isn’t proof it’s in use, and an unattached volume is worth checking, since you pay for it with no machine to use it.
- An app with no machines was never deployed. It’s a reserved name, not a failure.
Verify the connection
Example prompts
Troubleshooting
Error: You must be authenticated to view this
Error: You must be authenticated to view this
The token is missing, invalid, or expired. Create a new one with
fly tokens create readonly. Then open the connection, click the edit icon on the instance, click Replace… in Edit Instance, paste the token, and click Save and test.Error: Could not find App
Error: Could not find App
The app name is wrong, or the app belongs to an organization this token can’t read. Ask CloudThinker to list your apps and use a name from that list.
Insufficient permissions or 403 on a list
Insufficient permissions or 403 on a list
The token doesn’t cover that resource. Check that you created it for the organization that owns the app and that it hasn’t expired.
A section says it's unmeasured
A section says it's unmeasured
Fly.io refused or couldn’t answer that call, so CloudThinker reports a gap instead of a number. Treat the section as unknown, not as zero.
CloudThinker won't deploy, scale, or restart
CloudThinker won't deploy, scale, or restart
That’s expected. The connection is read-only. Ask for the exact
fly command and run it yourself.Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Read-only at Fly.io: the token can’t make changes, so a leaked token exposes read access to one organization and nothing more.
- Short expiry, revoke when done: list tokens with
fly tokens listand revoke one withfly tokens revoke <token-id>when the work is finished.
Related
Render connection
Connect another app platform, with logs and approval-gated deploys
Connections overview
See every platform you can connect and how connections work