Skip to content

Create AuthHero ​

create-authhero scaffolds a ready-to-run AuthHero project. It copies a template, installs dependencies, runs the database migrations and starts the dev server — each step can be skipped.

bash
npm create authhero@latest my-auth-app
# or
pnpm create authhero my-auth-app
# or
npx create-authhero my-auth-app

No global install is needed. The generated projects require Node.js 22 or later: the local template installs the latest better-sqlite3, which requires Node.js 22.

Templates ​

TemplateWhat you get
localNode.js server on SQLite (Drizzle). Serves HTTPS on https://localhost:3000 with a self-signed certificate. The quickest way to try AuthHero.
cloudflareCloudflare Worker on D1 (Drizzle), with optional GitHub CI workflows.
cloudflare-wfp-dispatcherWorkers for Platforms dispatcher: a thin worker that routes custom domains to per-tenant workers in a dispatch namespace.
cloudflare-wfp-tenantWorkers for Platforms tenant worker: one AuthHero worker with its own D1, inheriting defaults from the control plane.
cloudflare-control-planeWorkers for Platforms control plane: tenant management and the config source synced into each tenant worker. Always multi-tenant.
aws-sstAWS Lambda on DynamoDB, deployed with SST.
proxyHost-based reverse proxy on Cloudflare Workers (@authhero/proxy), configured statically with no database.

The three Workers for Platforms templates are deployed together; see Cloudflare Workers for Platforms.

Next steps ​

  • Usage — what the interactive setup asks and what it runs
  • Commands — every option, for scripted use
  • Your first login — sign in to the scaffolded server

Dual-licensed: AGPL-3.0-only or commercial license.