Getting Started
The Docker Compose stack runs the admin app, API, background worker, Caddy, and PostgreSQL with pgvector. You need Docker Compose, Node.js 24, and pnpm 12.
Install
Section titled “Install”git clone https://github.com/li4nee/ailoom.gitcd ailoomcp .env.example .envpnpm install --frozen-lockfilepnpm secrets:generateAdd the generated secrets to .env. For a local HTTP install, set:
PUBLIC_URL=http://localhost:8080HTTP_PORT=8080POSTGRES_USER=ailoomPOSTGRES_PASSWORD=replace-with-a-long-url-safe-passwordPOSTGRES_DB=ailoomStart the stack:
docker compose -f deploy/docker-compose.yml --env-file .env up -d --build --waitOpen http://localhost:8080 and create an account. The first account becomes the instance admin. Create a workspace to continue.
Email transport defaults to none, so sign-up is verified immediately and outgoing email links are written to the API log. For a production install, configure EMAIL_TRANSPORT and EMAIL_FROM before inviting users. See Configuration for all settings.
Create your first bot
Section titled “Create your first bot”- Create a bot in your workspace.
- Add a model credential: OpenAI, Anthropic, Gemini, Groq, Mistral, Ollama, or an OpenAI-compatible endpoint. The built-in local embedder needs no key.
- Add text, a file, or a sitemap source. Wait for its status to become Ready.
- Ask a question in the bot playground. If the answer is weak, inspect the retrieved chunks and scores in the trace drawer.
Add the widget
Section titled “Add the widget”Copy the snippet from the bot’s Install tab into your site:
<script src="https://support.example.com/widget.js" data-key="pk_live_..." async></script>Add the page’s origin to the bot’s allowed origins, including the scheme and port. The Widget guide covers welcome interactions, JavaScript controls, and content security policy settings.
Develop the codebase
Section titled “Develop the codebase”For local development, use the separate development Compose stack:
pnpm installcp .env.example .envpnpm secrets:generatedocker compose -f deploy/docker-compose.dev.yml up -dpnpm db:migratepnpm devSet PUBLIC_URL=http://localhost:3000 and DATABASE_URL=postgres://app:app@localhost:55432/app in .env. Start the worker in another terminal:
pnpm --filter @app/api dev:workerFetch the local embedding model before running integration tests that use it:
pnpm --filter @app/api fetch-modelSee Contributing for repository setup and review guidelines.