> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Fly.io in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/flyio
Last updated: 2026-11-24

Share Fly.io with your team in Claude, ChatGPT and Cursor through Metorial: fly.io API token sign-in, 19 tools (5 read-only).

---

To give your team Fly.io in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Fly.io integration in a Metorial portal, and each person connects with a fly.io API token. Agents can provision and manage applications, virtual machines (Machines), persistent storage volumes, secrets, certificates, and networking on the Fly.io cloud platform. The integration has 19 tools, 5 read-only, 12 write and 2 destructive, plus 3 triggers.

**What you will learn**

- How an admin shares Fly.io in a portal and how each person connects
- What Fly.io asks for when you connect, and where to find it
- How to keep the 5 read-only tools and reject the other 14

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- A fly.io API token from Fly.io for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **Fly.io API Token** | API token | `token` and `tokenScheme` |

### Fly.io API Token

To connect, a person enters these values:

- `token`: Fly.io API token (personal access token, org-scoped token, or app-scoped deploy token)
- `tokenScheme` (optional): Authorization scheme: use "Bearer" for personal access tokens from `fly auth token`, or "FlyV1" for tokens created with `fly tokens create` One of "Bearer", "FlyV1".

### Setup settings

Setup also asks for:

- `baseUrl` (optional): Base URL for the Fly.io Machines API
- `appName` (optional): Default Fly App name to use for triggers and actions when not specified
- `orgSlug` (optional): Default organization slug

## Admin: share Fly.io in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Fly.io. For how members connect, choose **Each person connects** so everyone enters their own fly.io API token, or **Shared connection** to enter one fly.io API token for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Fly.io.

4. **Choose who gets it**

   Add the access groups that should see Fly.io. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Fly.io integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search fly.io
```

## Employee: connect Fly.io

### In the portal

1. **Open Fly.io in the catalog**

   Sign in to your portal and open Fly.io. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your fly.io API token (token).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search fly.io
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Fly.io connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list fly.io
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 5 read-only tools, such as `get_app` and `list_apps`, and lose the 12 write tools, such as `create_app` or `create_volume`, and the 2 destructive tools, such as `delete_app` or `delete_machine`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list fly.io
metorial tools <integration-id>
metorial call <integration-id> list_apps -d '{"orgSlug":"<org-slug>"}'
```

`metorial tools` lists the 19 tools, minus any you rejected. `list_apps` needs `orgSlug`, so replace the placeholders. It lists all Fly Apps in an organization.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (5)

- `list_apps`: List all Fly Apps in an organization. Needs `orgSlug`.
- `list_machines`: List all Fly Machines in an app. Needs `appName`.
- `get_app`: Retrieve details for a specific Fly App including its status and organization. Needs `appName`.
- `get_machine`: Retrieve full details of a specific Fly Machine including its configuration, state, events, and image reference. Needs `appName` and `machineId`.
- `list_volumes`: List all persistent storage volumes for a Fly App. Needs `appName`.

### Write tools (12)

- `create_machine`: Create a new Fly Machine from a container image in a specific region. Needs `appName` and `image`.
- `create_volume`: Create a new persistent storage volume for a Fly App. Needs `appName` and `volumeName`.
- `update_machine`: Update a Fly Machine's configuration. Needs `appName`, `machineId` and `image`.
- `wait_for_machine`: Block until a Fly Machine reaches a specific state. Needs `appName`, `machineId` and `state`.
- `manage_machine_lease`: Acquire, check, or release an exclusive modification lease on a Fly Machine. Needs `appName`, `machineId` and `action`.
- `control_machine`: Start, stop, restart, or suspend a Fly Machine. Needs `appName`, `machineId` and `action`.
- `manage_volume`: Get details, update settings, extend size, or delete a Fly Volume. Needs `appName`, `volumeId` and `action`.
- `create_app`: Create a new Fly App in an organization. Needs `appName` and `orgSlug`.
- `request_oidc_token`: Request an OpenID Connect (OIDC) JWT token for a Machine.
- `manage_machine_metadata`: Get, set, or delete metadata key-value pairs on a Fly Machine. Needs `appName`, `machineId` and `action`.
- `manage_secrets`: List, set, or delete app-level secrets. Needs `appName` and `action`.
- `manage_certificates`: List, request, check, or delete SSL/TLS certificates for custom domains on a Fly App. Needs `appName` and `action`.

### Destructive tools (2)

- `delete_app`: Delete a Fly App and all its associated resources. Needs `appName`.
- `delete_machine`: Permanently destroy a Fly Machine. Needs `appName` and `machineId`.

## Triggers

Fly.io has 3 triggers, which fire on events in Fly.io:

- `machine_state_changed`: Triggers when a Fly Machine changes state (e.g. started, stopped, suspended, destroyed).
- `inbound_webhook`
- `app_machines_changed`: Triggers when machines are added to or removed from a Fly App.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Fly.io there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Fly.io on metorial.com](https://metorial.com/integrations/flyio): the integration overview