How it works
- You ask your agent to set up Fly.io for you. It asks which email address to use.
- The agent registers with that address and shows you a link and a 6-digit code.
- You open the link and confirm your email address with GitHub, Google or an emailed link. If you donāt have an account yet, you name it and create it on the same page.
- You enter the code.
- The agent collects its credentials and can start working.
Try it
Give your agent a prompt like this one:Read https://fly.io/auth.md and create an account for me.Then follow the agentās prompts.
What the agent can do
The agent gets access to your personal Fly.io organization and your Sprites:- Fly.io: your apps, Machines, volumes, secrets and deploys. It can use flyctl and the Machines API.
- Sprites: create and manage your Sprites.
- Invite or remove organization members.
- Change billing.
- Change how people sign in to your account.
New accounts and the Free plan
If the agent creates a new account, it starts on the Free plan, with $1 of credit and no credit card needed. Confirming your email address on the claim page makes the credit available. To get $5 of usage every month, add a card.Disconnect an agent
To disconnect an agent, revoke any of its tokens. In the dashboard, open your organizationās Tokens page or your personal tokens page. The agent appears as Agent (auth.md).- Fly.io access stops right away.
- Sprites access stops within 24 hours.
fly tokens revoke.
For agent developers
The full steps are in https://fly.io/auth.md, under Agentic registration. In short:
Fly.io supports the
service_auth method only.
The credentials include:
access_token: aFlyV1 fm2_...token. Use it asFLY_API_TOKENfor flyctl, or asAuthorization: Bearer <access_token>with the Machines API.sprites_tokenandsprites_api: for the Sprites API.identity_assertion: to refresh both.
Related reading
- Sign up and sign in to Fly.io
- Fly agent setup, if you already have an account
- Access tokens
- Fly.io Free Plan