Prerequisites
- Node.js 22.22.2 or newer within the Node 22 release line.
- pnpm 10.33.2, as pinned in the root
package.json. - Docker with Compose for local PostgreSQL.
Install and start PostgreSQL
Configure the local environment
BETTER_AUTH_SECRET stable for the lifetime of the database: Better Auth uses it
to encrypt signing keys. Use your secret manager for persistent development
credentials, including SECRETS_KEY.
The root .env.example lists configuration keys. Copying it to .env does not
automatically load the values. Export configured values and leave unused optional
variables unset.
Apply migrations and run
The default local UI and MCP brand tool use deterministic fixtures. Live provider
features need their own configuration and credentials.
Preview only the documentation
http://localhost:3002. The documentation preview runs independently and
needs neither PostgreSQL nor application secrets. See
documentation development for editing and publishing.