Skip to content

Quick Start

  • Node.js 24 LTS
  • pnpm 10+
  • Docker / Docker Compose
ターミナルウィンドウ
git clone https://github.com/kukan-project/kukan.git
cd kukan
git checkout vX.Y.Z # latest release (omit to stay on main for the development version)

See GitHub Releases for the list of releases.

ターミナルウィンドウ
pnpm install
ターミナルウィンドウ
cp .env.example .env
# Generate the auth secret
sed -i.bak "s|^BETTER_AUTH_SECRET=.*|BETTER_AUTH_SECRET=$(openssl rand -base64 32)|" .env && rm .env.bak

BETTER_AUTH_SECRET (the auth secret, 32 characters or more) must be set; Docker Compose refuses to start without it.

Start PostgreSQL, MinIO, OpenSearch, OpenSearch Dashboards, and Ollama with Docker Compose.

ターミナルウィンドウ
docker compose up -d
ターミナルウィンドウ
pnpm --filter @kukan/db db:migrate
ターミナルウィンドウ
pnpm dev

Access the application at http://localhost:3000.

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 sysadmin

The command prompts for the password. It needs at least 15 characters and must be hard to guess (e.g. harbor-lantern-quiet-42).