Skip to main content
An AI agent can sign you up for Fly.io, or connect to your existing account, and get its own credentials to deploy for you. Your part is to open one link and enter one code. This page explains what happens, what the agent can do, and how to disconnect it. Fly.io follows the auth.md spec for agent registration. The steps for agents are at https://fly.io/auth.md.

How it works

  1. You ask your agent to set up Fly.io for you. It asks which email address to use.
  2. The agent registers with that address and shows you a link and a 6-digit code.
  3. 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.
  4. You enter the code.
  5. The agent collects its credentials and can start working.
The agent has 10 minutes after you enter the code to collect its credentials. If it doesn’t, you can start again.

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.
It can’t:
  • Invite or remove organization members.
  • Change billing.
  • Change how people sign in to your account.
The agent’s credentials last 24 hours, and the agent renews them as it works.

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.
An agent that’s claimed but hasn’t collected its credentials yet is listed too, with a Disconnect button. You can also revoke a token with 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: a FlyV1 fm2_... token. Use it as FLY_API_TOKEN for flyctl, or as Authorization: Bearer <access_token> with the Machines API.
  • sprites_token and sprites_api: for the Sprites API.
  • identity_assertion: to refresh both.
Store them in a file only your agent can read, outside any repository, and never print or log them.