Skip to content

Organizations and tokens

Everything you run on Fly belongs to an organization: its Apps and Machines, its volumes and databases, its private network, and its bill. Every account has a personal organization, and a team creates more and invites its members.

An organization is also a boundary. Its Apps share one private network, and nothing in another organization can reach them.

Alchemy deploys with an API token. An organization token is scoped to one organization, so the token is how you choose where things go: a Service creates its App in the token’s organization, and Fly.App uses it when you leave out orgSlug.

Create an organization token in the dashboard under Account → Access Tokens, or with the Fly CLI:

Terminal window
fly tokens create org

Then store it in a profile:

Terminal window
alchemy profile edit --add Fly

See Setup for the details.

A stage decides what you deploy. The profile’s token decides where. Give production its own organization, so its private network, its members and its bill are separate, and its own profile:

Terminal window
alchemy profile create prod
alchemy profile edit --profile prod --add Fly
alchemy deploy --stage prod --profile prod

Many stages can share a development organization, each with its own Apps.

With CI=true, Alchemy skips the profile and reads FLY_API_TOKEN from the environment. Use a separate token for CI, so you can revoke it without touching yours. See CI.

Values your Services read at run time, like a third-party API key, are covered in Secrets.