Local Machine Setup - Mac
This guide is recommended for advanced users setting up Formbricks on a Mac machine.
-
Clone the project & change directory:
-
Setup NodeJS with nvm:
-
Install NodeJS packages with pnpm:
-
Create a
.envfile from the example: -
Generate & set secret values (using BSD sed syntax for macOS):
-
Generate the Next.js AGENTS.md file (optional, for AI-assisted development):
This step generates an
AGENTS.mdfile at the repository root that provides Next.js documentation context for AI coding assistants (e.g. Cursor, GitHub Copilot). It runsnpx @next/codemod agents-mdunder the hood. Re-run it whenever you upgrade Next.js. -
Start the development setup: