Skip to content

Setup

Sign up at neon.tech and create an API key in the Neon console. Register the provider next to your cloud’s:

alchemy.run.ts
import * as Neon from "alchemy/Neon";
providers: Layer.mergeAll(Cloudflare.providers(), Neon.providers()),

The next alchemy login adds a Neon step with two options:

  • Environment variable — reads NEON_API_KEY (good for CI).
  • Stored API key — entered interactively, saved under ~/.alchemy/credentials/<profile>/neon-stored.json.

In CI (CI=true), the environment-variable method is selected automatically — no prompt, just set NEON_API_KEY.

See Profiles for how credentials are stored and switched.