Setup
You need:
Add the provider
Section titled “Add the provider”Install @alchemy.run/boat:
pnpm add https://pkg.alchemy.run/@alchemy.run/boat/9c58f00bun add https://pkg.alchemy.run/@alchemy.run/boat/9c58f00npm install https://pkg.alchemy.run/@alchemy.run/boat/9c58f00yarn add https://pkg.alchemy.run/@alchemy.run/boat/9c58f00Then add Boat.providers() next to your cloud’s providers:
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 {}; }),);Sign in
Section titled “Sign in”pnpm alchemy profile edit --add Boatbun alchemy profile edit --add Boatnpx alchemy profile edit --add Boatyarn alchemy profile edit --add BoatPick 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.
Deploy from CI
Section titled “Deploy from CI”Set BOAT_API_KEY, and Alchemy uses it instead of your profile:
BOAT_API_KEY=boat_... pnpm alchemy deployBOAT_API_KEY=boat_... bun alchemy deployBOAT_API_KEY=boat_... npx alchemy deployBOAT_API_KEY=boat_... yarn alchemy deploySee Account & API keys.
Next, build the tutorial.