Skip to main content

Prerequisites

Before you begin, make sure you have:

Choose your path

The install script checks dependencies, sets up your .env, configures the database, builds the project, and gives you a choice of run mode (PM2 or manual).
git clone https://github.com/muxai-io/muxai.git
cd muxai
bash install/install.sh
On Windows, if you get a script execution error, run this first in your PowerShell session:
Set-ExecutionPolicy Bypass -Scope Process
This allows scripts to run for the current session only.
The script will prompt you for:
  1. Missing dependencies - Offers to install Node.js, pnpm, and Claude CLI if not found
  2. Database type - Embedded (zero setup), Docker, or external PostgreSQL
  3. Run mode - PM2 (background service) or manual (start/stop yourself)
Pass --yes (bash) or -Yes (PowerShell) to skip all prompts and use defaults: embedded database + manual run mode.
Once the script finishes, jump to Verify the install.

Verify the install

Once running, confirm both services are up: Check the API health endpoint:
curl http://localhost:3001/api/health

Updating

Pull the latest changes and rebuild:
bash install/update.sh
Or manually:
git pull
pnpm install
pnpm --filter @muxai/api build
pnpm --filter @muxai/web build
If you’re using PM2, restart after updating:
pm2 restart ecosystem.config.js --update-env