Setup
You need:
Add the provider
Section titled “Add the provider”Install @alchemy.run/boat:
pnpm add @alchemy.run/boat@latestbun add @alchemy.run/boat@latestnpm install @alchemy.run/boat@latestyarn add @alchemy.run/boat@latestThen 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 Browser sign-in and enter your Boat account’s email. Alchemy opens a Boat page: sign in there the way you signed up (GitHub, Google or an email code), and type the code your terminal shows. Alchemy stores the API key Boat issues, which lasts a year and renews itself before it expires.
To paste a key from the dashboard’s API Keys tab instead, pick API key. Give it the admin preset: deploying creates keys for your Workers and Functions.
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.