System Requirements

Velaris runs its infrastructure as containers, so the host mainly needs disk and memory. Minimum assumes a hosted AI provider; Recommended assumes local AI and real case volume.

Resource Minimum Recommended
Operating system Ubuntu 22.04 LTS (64-bit) Ubuntu 24.04 LTS
CPU 4 cores 8–16 cores
RAM 8 GB 32 GB
Storage 40 GB SSD 250 GB NVMe
GPU None 8 GB VRAM (local AI only)
Network 10 Mbps 100 Mbps+

A baseline install uses roughly 12 GB: about 6 GB of container images, ~2 GB of volumes, ~1 GB for the repository and its dependencies, and ~2 GB of local AI models. Case documents, object storage and database growth accumulate on top, which is why 40 GB is a floor rather than a target.

Do I need a GPU?

Only for local AI. With a hosted provider (Anthropic, OpenAI, Groq and others) no GPU is needed at all. With local Ollama a GPU is strongly recommended — CPU-only inference works but is slow enough to be noticeable in every AI feature.

AI setup GPU
Hosted provider Not needed
Local Ollama, 3B models 4–6 GB VRAM, or CPU-only if slower responses are acceptable
Local Ollama, 7–8B models 8 GB VRAM
Local Ollama, 13B and larger 16–24 GB VRAM

NVIDIA (CUDA) and AMD (ROCm) are both supported by Ollama. Passing a GPU into the container requires adding a device reservation to the ollama service in deploy/docker-compose/docker-compose.yml; without it Ollama runs on CPU even when a GPU is present.

Prerequisites

Only Docker and a handful of command-line tools are genuinely required. The setup script installs Docker, Node.js and uv automatically if they are missing, so on a clean Ubuntu host you can usually run it straight away.

PostgreSQL, Valkey, Temporal and the other infrastructure services are not installed on the host — they ship as containers in deploy/docker-compose/docker-compose.yml and are started for you.

Dependency Minimum Version Notes
Docker Engine 24+ Runs all infrastructure services. Installed by the setup script if absent. Verify with docker info.
Docker Compose plugin v2 Installed by the setup script if absent. Verify with docker compose version.
Python 3.12+ Required for all three backend services. Provided by uv when the host version is older.
uv latest Velaris's Python package manager. Installed by the setup script if absent.
Node.js 20+ Required for the Studio frontend. Installed by the setup script if the host version is older than 18.
npm 10+ Bundled with Node.js 20. Use npm --version to verify.
rsync 3.x Used when setup moves Docker's storage to another disk. Present on a standard Ubuntu install, absent on minimal and cloud images.
curl, git, netcat, psmisc any Small command-line utilities. The setup script installs any that are missing.

PostgreSQL is the default data store and runs as a container with pgvector already available. MySQL 8 and MariaDB 11 are supported as bring-your-own alternatives, selected once during setup — in that case the database server is yours to provide and is not containerised.

First-Time Setup

Run the setup script once after cloning the repository. It installs all Python and Node dependencies, creates the PostgreSQL database, applies all database migrations, and seeds the platform with demo data.

  1. Clone the repository

    git clone https://github.com/Velaris-App-OS/Velaris-App-OS.git
    cd Velaris-App-OS
  2. Create your .env file — copy the example and fill in the required secrets before running setup.

    cp .env.example .env
    # Edit .env — at minimum set VELARIS_CASE_AUTH_SECRET and VELARIS_CASE_DATABASE_URL
  3. Run the setup script — installs all dependencies, creates the velaris PostgreSQL database, applies all database migrations for all services, and seeds demo case types, users, and access groups.

    bash setup-velaris.sh
Setup duration: First-time setup typically takes 2–5 minutes — most of the time is spent downloading Python packages via uv and Node modules via npm install. Subsequent runs are faster because dependencies are cached.

Starting All Services

Use the start script from the project root. It brings up all Velaris services in the correct dependency order: Docker infrastructure first, then the Engine, Case Service, and Studio frontend.

bash start-velaris.sh

The script starts the following services in order:

Order Service Port Action
1 Docker Infrastructure — Starts PostgreSQL (5432), Valkey/cache, Temporal, Mailpit via Docker Compose, then applies any pending migrations and syncs the release manifest.
2 Velaris Engine 127.0.0.1:8100 Durable workflow execution and the Temporal worker. Loopback-only — it is called by the case service and by Studio’s dev proxy, both from this host, and has no authentication of its own.
3 Case Service 127.0.0.1:8201 Auth, cases, workflow, SLA, HxNexus, and every module API not listed below. The central hub — bound to loopback and reached through the gateway on 8200.
4 Analytics Service 127.0.0.1:8202 Aggregate analytics, saved reports, exports and process mining (/api/v1/analytics, /api/v1/process-mining). Split out of the case service so read-heavy queries do not compete for its connection pool.
5 HxGraph Service 127.0.0.1:8203 The knowledge graph — sync, query, report, export and the visualizer (/api/v1/graph).
6 HxMigrate Service 127.0.0.1:8204 The migration domain: scan, import, plan and create (/api/v1/hxmigrate, /importer, /scout, /scout-ai, /orchestrator).
7 Studio (Vite) 0.0.0.0:5173 React + TypeScript frontend. Started last since it depends on all APIs being up. The only port open to other machines — everything else is loopback-bound.

Stopping All Services

Send SIGTERM to all Velaris processes gracefully. Service logs are preserved in /tmp/.

bash stop-velaris.sh

Health Checks

The backend services expose a /health endpoint that returns {"status": "ok"} when the service is running and its dependencies (DB, Valkey) are reachable. Run these immediately after start to confirm the stack is up.

# API gateway (nginx, fronts the case service)
curl -s http://localhost:8200/health
# Expected: {"status":"ok"}

# Engine
curl -s http://localhost:8100/health
# Expected: {"status":"ok"}

# Studio — check that Vite dev server is responding
curl -s -o /dev/null -w "%{http_code}" http://localhost:5173/
# Expected: 200

The API services listen loopback-only — case service 8201, analytics 8202, HxGraph 8203, HxMigrate 8204. All API traffic goes through the gateway on 8200, which routes each prefix to its owner. The client-facing paths are the same whichever service answers them.

Key Environment Variables

Velaris reads configuration from a .env file in the project root. Variables marked Required will cause the relevant service to refuse to start if absent.

Variable Service(s) Required Description
VELARIS_CASE_DATABASE_URL case-service Yes PostgreSQL connection string. Format: postgresql+asyncpg://user:pass@localhost:5432/helix
VELARIS_CASE_REDIS_URL case-service No Cache connection string (Valkey, Redis-protocol-compatible). Default: redis://localhost:6379/0
VELARIS_CASE_AUTH_SECRET case-service Yes HS256 fallback signing key — generate with openssl rand -hex 32. When the RSA key pair vars are set, RS256 is used and this is ignored.
VELARIS_CASE_AI_ANTHROPIC_API_KEY case-service (HxNexus) Yes (HxNexus) AI provider API key (used by the configured AI backend). Without this, HxNexus queries fall back or fail at runtime.
(Studio API base) studio No Studio has no env var for this — the Vite dev server proxies all /api/v1/* routes to the gateway at http://localhost:8200 (see studio/vite.config.ts).
In a hardened install, .env is generated, not edited. scripts/secrets-render.sh renders it from OpenBao, so a hand edit is lost on the next render. Push the value with scripts/secrets-push.sh instead.
All case-service variables use the VELARIS_CASE_ prefix. The former HELIX_CASE_* names were removed in v2.2.0 and are no longer read — a stale .env starts cleanly but silently falls back to defaults. Rename the keys, keeping the values as they are.

See Environment Variables for the complete reference including all optional connector variables.

Turning on v2.1.0 modules

Modules are enabled per tenant by feature flag, not by environment variable. The flags ship in the release manifest that start-velaris.sh syncs, and the environment variables only configure a module once its flag is on. A few defaults worth knowing:

Tailing Logs

All services write to log files in /tmp/. Tail all of them simultaneously during development:

# Tail all Velaris service logs at once
tail -f /tmp/velaris-*.log

# Individual service logs
tail -f /tmp/velaris-engine.log
tail -f /tmp/velaris-case-service.log
tail -f /tmp/velaris-studio.log

Running Individual Services

When iterating on a single service, you can run it directly without using start-velaris.sh. Each backend uses uv run uvicorn with hot-reload enabled.

# Velaris Engine (from project root)
uv run uvicorn helix_engine.main:app --host 127.0.0.1 --port 8100 --reload --proxy-headers

# Case Service (from project root) - loopback only; reached through the gateway on 8200
uv run uvicorn case_service.main:app --host 127.0.0.1 --port 8201 --reload --proxy-headers --app-dir services/case-service

# Analytics, HxGraph and HxMigrate - same pattern, one port each
uv run uvicorn analytics_service.main:app --host 127.0.0.1 --port 8202 --reload --proxy-headers --app-dir services/analytics-service
uv run uvicorn hxgraph_service.main:app   --host 127.0.0.1 --port 8203 --reload --proxy-headers --app-dir services/hxgraph-service
uv run uvicorn hxmigrate_service.main:app --host 127.0.0.1 --port 8204 --reload --proxy-headers --app-dir services/hxmigrate-service

# Studio frontend (from project root)
cd studio
npm run dev

Firewall and Network Exposure

setup-velaris.sh offers to configure ufw as its last step. It allows SSH first, then Studio on 5173/tcp, then denies all other inbound traffic. If a firewall is already active it leaves your existing rules untouched and only tells you which port Studio needs.

Docker publishes past your firewall. A container port published to 0.0.0.0 is reachable from the internet even while UFW denies that port — the Docker daemon writes its own iptables rules ahead of yours. This is not theoretical: it is how a Velaris development host was compromised and used for cryptocurrency mining. Every port in deploy/docker-compose/docker-compose.yml is therefore published as 127.0.0.1:PORT:PORT, and scripts/secure-docker-ports.sh re-checks an existing install.

What is actually reachable from another machine after a default install:

PortExposureWhy
5173OpenStudio. The only ingress this deployment has — the API gateway is loopback-bound, so the browser reaches the API through Studio’s proxy.
22OpenSSH. Allowed before the default-deny so enabling the firewall cannot lock you out of your own server.
8100, 8200–8204LoopbackEngine, gateway, and the four API services. Host processes bound to 127.0.0.1.
5432, 6379, 9092, 9000, 8350, 7233, 1025…LoopbackPostgreSQL, Valkey, Kafka (event bus on only), OpenBao, Temporal, Mailpit (and MinIO on 9000, only on installs created before v3.1.2) — all published 127.0.0.1-only by compose.

To configure it by hand, or after declining the prompt:

# Allow SSH FIRST - a default-deny applied before this locks you out
sudo ufw allow OpenSSH
sudo ufw allow 5173/tcp        # Studio
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw enable
Behind a TLS terminator? Allow 443/tcp, put Studio behind it, and keep 5173 closed to everything but the proxy. The services are started with --proxy-headers, so they honour X-Forwarded-Proto and build https:// URLs — but only from a trusted source. That trust list defaults to 127.0.0.1; when the proxy is a container rather than a host process, set FORWARDED_ALLOW_IPS to its address.

Common Issues and Fixes

pgvector extension not installed: If setup-velaris.sh fails with extension "vector" is not available, install pgvector for your PostgreSQL version first, then run CREATE EXTENSION vector; in the velaris database.
# Ubuntu / Debian (PostgreSQL 16)
sudo apt install postgresql-16-pgvector

# Then enable in the velaris DB
psql -U postgres -d velaris -c "CREATE EXTENSION IF NOT EXISTS vector;"
Cache (Valkey) not running: If case-service fails with ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379), the Valkey cache container is down. Velaris runs Valkey (the Redis-protocol-compatible fork) as the cache service in docker-compose, published loopback-only on 127.0.0.1:6379 — there is no host Redis to start.
# Bring the cache container up (from the repo root)
docker compose -f deploy/docker-compose/docker-compose.yml up -d cache

# Verify it answers
docker compose -f deploy/docker-compose/docker-compose.yml exec cache valkey-cli ping
Port conflicts: If a service fails with address already in use, find and stop the conflicting process before starting Velaris.
# Find what is using port 8200
lsof -i :8200

# Kill it (replace PID with the actual process ID)
kill -9 <PID>
Auth secret not set: tokens are signed with VELARIS_CASE_AUTH_SECRET (HS256 fallback; when the RSA key pair env vars are set, RS256 is used instead and this secret is ignored). Never run with the built-in dev default outside local development — generate a strong value:
openssl rand -hex 32
Copy the output into your .env file as the value of VELARIS_CASE_AUTH_SECRET.