From fd1e7d0685cbad60fed0af16d63f452e0f55541e Mon Sep 17 00:00:00 2001 From: Kristin Martin Date: Thu, 19 Nov 2026 19:24:01 +0000 Subject: [PATCH 1/4] Add agent sign-up page --- docs.json | 1 + model-context-protocol/agent-signup.mdx | 83 +++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 model-context-protocol/agent-signup.mdx diff --git a/docs.json b/docs.json index 7712827329..5291bf9992 100644 --- a/docs.json +++ b/docs.json @@ -227,6 +227,7 @@ }, "model-context-protocol/flyctl-server", "model-context-protocol/setup-agent", + "model-context-protocol/agent-signup", "model-context-protocol/agent-skills", "model-context-protocol/examples" ] diff --git a/model-context-protocol/agent-signup.mdx b/model-context-protocol/agent-signup.mdx new file mode 100644 index 0000000000..52c7b4375f --- /dev/null +++ b/model-context-protocol/agent-signup.mdx @@ -0,0 +1,83 @@ +--- +title: Let an agent sign you up for Fly.io +sidebarTitle: Agent sign-up +description: "Let an AI agent create your Fly.io account, or connect to the one you have, and get its own 24-hour credentials. You confirm with one link and one code." +--- + +**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](https://github.com/workos/auth.md) spec for agent registration. The steps for agents are at [https://fly.io/auth.md](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. +1. The agent registers with that address and shows you a link and a 6-digit code. +1. 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. +1. You enter the code. +1. 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: + +> Sign me up for Fly.io using https://fly.io/auth.md, then deploy this app. + +## 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](/flyctl) and the [Machines API](/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. It can keep renewing for 30 days. After that, it asks you to confirm again. + +## New accounts and the free trial + +If the agent creates a new account, it may start on the [free trial](/about/free-trial): \$1 of credit for 7 days, with no credit card. Confirming your email address on the claim page starts the trial. + +## 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`](/flyctl/cmd/fly_tokens_revoke). + +## For agent developers + +The full steps are in [https://fly.io/auth.md](https://fly.io/auth.md), under **Agentic registration**. In short: + +| Step | Request | +| --- | --- | +| Discover | `GET /.well-known/oauth-authorization-server`. Look for the `agent_auth` block. Without it, agent registration is off | +| Register | `POST /agent/identity` with `{"type": "service_auth", "login_hint": ""}` | +| Claim | Show the user the `verification_uri` and `user_code`, then poll `POST /oauth2/token` with the claim grant | +| Refresh | `POST /oauth2/token` with the JWT bearer grant and your `identity_assertion` | +| Revoke | `POST /oauth2/revoke` with `token=` | + +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 ` with the Machines API. +- `sprites_token` and `sprites_api`: for the [Sprites API](https://docs.sprites.dev). +- `identity_assertion`: to refresh both. + +Store them in a file only your agent can read, outside any repository, and never print or log them. + +## Related reading + +- [Fly agent setup](/model-context-protocol/setup-agent), if you already have an account +- [Access tokens](/security/tokens) +- [Fly.io Free Trial](/about/free-trial) From dbaa6fc9fc1e0d902d6cac097a2c98b9f6343610 Mon Sep 17 00:00:00 2001 From: Kristin Martin Date: Thu, 19 Nov 2026 22:39:06 +0000 Subject: [PATCH 2/4] Agent sign-up: Kyle's prompt; drop the 30-day renewal detail --- model-context-protocol/agent-signup.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/model-context-protocol/agent-signup.mdx b/model-context-protocol/agent-signup.mdx index 52c7b4375f..56ac60585e 100644 --- a/model-context-protocol/agent-signup.mdx +++ b/model-context-protocol/agent-signup.mdx @@ -22,7 +22,9 @@ The agent has 10 minutes after you enter the code to collect its credentials. If Give your agent a prompt like this one: -> Sign me up for Fly.io using https://fly.io/auth.md, then deploy this app. +> Read https://fly.io/auth.md and create an account for me. + +Then follow the agent's prompts. ## What the agent can do @@ -37,7 +39,7 @@ It can't: - 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. It can keep renewing for 30 days. After that, it asks you to confirm again. +The agent's credentials last 24 hours, and the agent renews them as it works. ## New accounts and the free trial From 195f0b10e7c313e237f47003c4e0edcfc946040e Mon Sep 17 00:00:00 2001 From: Kristin Martin Date: Fri, 20 Nov 2026 17:10:20 +0000 Subject: [PATCH 3/4] Agent sign-up: move to Getting Started, link from the sign-up page --- docs.json | 2 +- .../agent-signup.mdx => getting-started/agent-sign-up.mdx | 1 + getting-started/sign-up-sign-in.mdx | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) rename model-context-protocol/agent-signup.mdx => getting-started/agent-sign-up.mdx (98%) diff --git a/docs.json b/docs.json index 5291bf9992..ea4731d396 100644 --- a/docs.json +++ b/docs.json @@ -79,6 +79,7 @@ "group": "Getting Started", "pages": [ "getting-started/sign-up-sign-in", + "getting-started/agent-sign-up", "getting-started/launch", "getting-started/launch-demo", { @@ -227,7 +228,6 @@ }, "model-context-protocol/flyctl-server", "model-context-protocol/setup-agent", - "model-context-protocol/agent-signup", "model-context-protocol/agent-skills", "model-context-protocol/examples" ] diff --git a/model-context-protocol/agent-signup.mdx b/getting-started/agent-sign-up.mdx similarity index 98% rename from model-context-protocol/agent-signup.mdx rename to getting-started/agent-sign-up.mdx index 56ac60585e..50f5cab62e 100644 --- a/model-context-protocol/agent-signup.mdx +++ b/getting-started/agent-sign-up.mdx @@ -80,6 +80,7 @@ Store them in a file only your agent can read, outside any repository, and never ## Related reading +- [Sign up and sign in to Fly.io](/getting-started/sign-up-sign-in) - [Fly agent setup](/model-context-protocol/setup-agent), if you already have an account - [Access tokens](/security/tokens) - [Fly.io Free Trial](/about/free-trial) diff --git a/getting-started/sign-up-sign-in.mdx b/getting-started/sign-up-sign-in.mdx index f2d4572961..fd20ca8aae 100644 --- a/getting-started/sign-up-sign-in.mdx +++ b/getting-started/sign-up-sign-in.mdx @@ -11,6 +11,10 @@ import SignUpSnippet from '/snippets/sign-up.mdx'; +### Let an AI agent sign you up + +An AI agent can create your Fly.io account for you and get its own credentials. Tell your agent: "Read https://fly.io/auth.md and create an account for me." See [Let an agent sign you up for Fly.io](/getting-started/agent-sign-up). + ## Already have a Fly.io account? Sign in From 205846fdbc6e0f1c8c09da5faf447589a54b9735 Mon Sep 17 00:00:00 2001 From: Kristin Martin Date: Fri, 20 Nov 2026 17:55:04 +0000 Subject: [PATCH 4/4] Agent sign-up: new accounts start on the Free plan --- getting-started/agent-sign-up.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/getting-started/agent-sign-up.mdx b/getting-started/agent-sign-up.mdx index 50f5cab62e..8811344b5a 100644 --- a/getting-started/agent-sign-up.mdx +++ b/getting-started/agent-sign-up.mdx @@ -41,9 +41,9 @@ It can't: The agent's credentials last 24 hours, and the agent renews them as it works. -## New accounts and the free trial +## New accounts and the Free plan -If the agent creates a new account, it may start on the [free trial](/about/free-trial): \$1 of credit for 7 days, with no credit card. Confirming your email address on the claim page starts the trial. +If the agent creates a new account, it starts on the [Free plan](/about/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 @@ -83,4 +83,4 @@ Store them in a file only your agent can read, outside any repository, and never - [Sign up and sign in to Fly.io](/getting-started/sign-up-sign-in) - [Fly agent setup](/model-context-protocol/setup-agent), if you already have an account - [Access tokens](/security/tokens) -- [Fly.io Free Trial](/about/free-trial) +- [Fly.io Free Plan](/about/free-plan)