Quick Start
Prerequisites
Section titled “Prerequisites”- Node.js 24 LTS
- pnpm 10+
- Docker / Docker Compose
1. Clone the repository
Section titled “1. Clone the repository”git clone https://github.com/kukan-project/kukan.gitcd kukangit checkout vX.Y.Z # latest release (omit to stay on main for the development version)See GitHub Releases for the list of releases.
2. Install dependencies
Section titled “2. Install dependencies”pnpm install3. Environment variables
Section titled “3. Environment variables”cp .env.example .env# Generate the auth secretsed -i.bak "s|^BETTER_AUTH_SECRET=.*|BETTER_AUTH_SECRET=$(openssl rand -base64 32)|" .env && rm .env.bakBETTER_AUTH_SECRET (the auth secret, 32 characters or more) must be set; Docker Compose refuses to start without it.
4. Start infrastructure
Section titled “4. Start infrastructure”Start PostgreSQL, MinIO, OpenSearch, OpenSearch Dashboards, and Ollama with Docker Compose.
docker compose up -d5. Run database migrations
Section titled “5. Run database migrations”pnpm --filter @kukan/db db:migrate6. Start the development server
Section titled “6. Start the development server”pnpm devAccess the application at http://localhost:3000.
7. Register the initial user
Section titled “7. Register the initial user”Open http://localhost:3000/auth/sign-up and register the first user.
While no users exist, self-registration is enabled and the first
registered user automatically becomes a sysadmin (system administrator).
You can also create users via the CLI (--role defaults to user when
omitted).
pnpm db:create-user --email admin@example.com --name admin --role sysadminThe command prompts for the password. It needs at least 15 characters and must be hard to guess (e.g. harbor-lantern-quiet-42).