Setup Locally

Follow these steps to run your ChaiBuilder site locally.


1. 📦 Prerequisites

Make sure you have the following installed:

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

2. 📁 Clone the Repository

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

3. ⚙️ Install Dependencies

Using Pnpm:

pnpm install

4. 🔐 Set Up Environment Variables

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

touch .env.local

Add the following:

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.


5. ▶️ Run the Dev Server

pnpm dev

6. Login to your local builder:

Open http://localhost:3000/chai in your browser and login using Chai Builder credentials.


✅ You're Ready!

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

Join Our Discord Community

Have questions or need help with Chai Builder? Our friendly community and team members are ready to assist you!

  • Get real-time assistance from our team
  • Connect with other users and share experiences
  • Access exclusive resources and tutorials
  • White label solution

Made with Chai Builder