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).
# Database - pick one:# Leave commented out for embedded (zero setup, recommended)# DATABASE_URL=embedded# Or point to your own PostgreSQL:# DATABASE_URL="postgresql://user:password@localhost:5432/muxai"# APIAPI_PORT=3001API_KEY=your-secret-key-change-meNEXT_PUBLIC_API_URL=http://localhost:3001# Internal secretsMUXAI_INTERNAL_SECRET=muxai-internal-secret-change-meWALLET_ENCRYPTION_KEY=change-me-64-hex-chars# Claude CLICLAUDE_CLI_PATH=claude
Generate secure values for the secrets:
# Run this three times, once for each secretnode -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
Replace API_KEY, MUXAI_INTERNAL_SECRET, and WALLET_ENCRYPTION_KEY with the generated values.
No setup needed. Leave DATABASE_URL commented out or set to embedded in your .env. The API starts an in-process PGlite instance automatically on first run.