Everything you need to run the full Velaris platform locally: prerequisites, first-time setup, starting and stopping services, environment variables, and common troubleshooting.
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.
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.
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.
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.
Clone the repository
git clone https://github.com/Velaris-App-OS/Velaris-App-OS.git cd Velaris-App-OS
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
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
uv and Node modules via npm install. Subsequent runs are faster because dependencies are cached.
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. |
Send SIGTERM to all Velaris processes gracefully. Service logs are preserved in /tmp/.
bash stop-velaris.sh
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.
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). |
.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.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.
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:
VELARIS_CASE_MEET_DRIVER=livekit and supply LiveKit credentials.VELARIS_CASE_MARKETPLACE_L2_EGRESS and grant specific domains.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
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
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.
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:
| Port | Exposure | Why |
|---|---|---|
5173 | Open | Studio. The only ingress this deployment has — the API gateway is loopback-bound, so the browser reaches the API through Studio’s proxy. |
22 | Open | SSH. Allowed before the default-deny so enabling the firewall cannot lock you out of your own server. |
8100, 8200–8204 | Loopback | Engine, gateway, and the four API services. Host processes bound to 127.0.0.1. |
| 5432, 6379, 9092, 9000, 8350, 7233, 1025… | Loopback | PostgreSQL, 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
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.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;"
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
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>
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
.env file as the value of VELARIS_CASE_AUTH_SECRET.