Skip to content

Setup locally

Follow these steps to run your ChaiBuilder site locally.

Section titled “Follow these steps to run your ChaiBuilder site locally.”

Make sure you have the following installed:

  • Node.js (v18+ recommended)
  • Git
  • pnpm (optional but preferred)

Terminal window
git clone https://github.com/chaibuilder/chaibuilder-nextjs.git
cd chaibuilder-nextjs

Using pnpm:

Terminal window
pnpm install

Create a .env.local file in the root directory:

Terminal window
touch .env.local

Add the following:

Terminal window
CHAIBUILDER_API_KEY=your_chaibuilder_api_key
CHAIBUILDER_WEBHOOK_SECRET=your_custom_webhook_secret

You can find your API key and manage your site here.


Terminal window
pnpm run dev

Open http://localhost:3000/chai in your browser and log in using ChaiBuilder credentials.


Your ChaiBuilder site should now be running locally. Make changes and see them live instantly. Start building!