Skip to content

Setup

You need:

Install @alchemy.run/boat:

Terminal window
pnpm add https://pkg.alchemy.run/@alchemy.run/boat/9c58f00

Then add Boat.providers() next to your cloud’s providers:

alchemy.run.ts
import * as Boat from "@alchemy.run/boat";
import * as Cloudflare from "@alchemy.run/cloudflare";
import * as Alchemy from "alchemy";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
export default Alchemy.Stack(
"MyApp",
{
providers: Layer.mergeAll(Cloudflare.providers(), Boat.providers()),
state: Cloudflare.state(),
},
Effect.gen(function* () {
return {};
}),
);
Terminal window
pnpm alchemy profile edit --add Boat

Pick API key and paste an account key: in the dashboard’s API Keys tab, switch the organization select to your personal account, then create a key with account.admin. Deploying creates keys for your Workers and Functions, which only an account key with account.admin can do; an organization’s keys cannot change account settings, whatever actions they have. The profile still picks the organization to bill.

Browser sign-in works with every way you signed up (GitHub, Google or an email code): Alchemy opens a Boat page and you type the code your terminal shows. Boat issues a key that lasts an hour, and Alchemy renews it for 30 days. Boat never gives a sign-in key account.admin, so it can run sandboxes but not deploy hosts that bind them.

Set BOAT_API_KEY, and Alchemy uses it instead of your profile:

Terminal window
BOAT_API_KEY=boat_... pnpm alchemy deploy

See Account & API keys.

Next, build the tutorial.