Manual Setup
Run the Bun app and workers directly against managed services.
Use manual setup when you want to run OrcAI directly on a host instead of using the full Compose stack.
Prerequisites
- Bun
>=1.3.10 - PostgreSQL
- Valkey
- Qdrant
- SpiceDB
- S3-compatible object storage
- OpenAI-compatible inference endpoint
- Tesseract with
enganddeulanguage packs if workers run on the host - Optional SMTP server
Install Dependencies
cp .env.example .env
bun install --frozen-lockfileEdit .env before starting the app. See Configuration for required variables.
Initialize Data Stores
Run database migrations:
bun run --filter @orcai/db migrateApply the SpiceDB schema:
bun run --filter @orcai/spice-db upStart Development Processes
Start the app:
bun run devStart background workers in a separate terminal:
bun run workers:devThe app is available at:
http://localhost:3000On a fresh database, complete initial instance setup at:
http://localhost:3000/initProduction Commands
Build and start the app:
bun run build
bun run startStart workers:
bun run workers:startHost OCR Notes
OCR-backed asset processing runs in the worker process. When workers run outside Docker, install Tesseract and the configured language packs. Use KREUZBERG_OCR_LANGUAGE=eng+deu only where both packs are installed.
Model Customisation Scope
Custom embedding and image-processing model definitions are supported only when you self-host OrcAI.
TODO
Add OS-specific installation commands for Tesseract and language packs.