FreeVelox/Documentation
ProductChangelog

Installation

FreeVelox ships as one repository with five applications. Two of them make up a working system: the console, which serves the web platform, and the agent, which runs once on each machine under test. This page takes you from an empty machine to a running console with a first admin account.

Prerequisites

RequirementVersion
Node.js24 or newer (engines.node in the root package.json)
pnpm11.x
A databaseSQLite by default; PostgreSQL or MySQL are supported
Bash/bin/bash on the machine that runs an agent

A bench that talks to a serial device also needs the native serial bindings β€” they are installed with the agent's dependencies (serialport, @serialport/bindings-cpp).

Install the workspace

Clone the repository and install every workspace package from the root:

Terminal
git clone <your-repository-url> core-platform
cd core-platform
pnpm install

pnpm install builds the native modules for the agent's serial ports. If it fails on a machine without a toolchain, install the build dependencies for node-gyp first, then re-run the install.

The applications

ApplicationPackagePortWhat it is
Consoleapps/console3002The web platform: UI, REST API and the realtime socket, all from one server.
Agentapps/agent3005The workstation companion that runs on each bench.
Controlapps/control3004The control plane: accounts, organisations, the product catalogue, licences and orders.
Docsapps/docs3003This documentation site.
Siteapps/site3001The public marketing site.

Start the console

pnpm --filter @velox/console dev

The console starts on http://localhost:3002. One server serves the web UI, the REST API and the Socket.IO endpoint, so the browser and the agents talk to a single address and a single port.

Verify the installation

Ask the console what it sees:

curl http://localhost:3002/api/system/status

A freshly installed console answers with its state before setup has run:

{
  "status": "uninitialized",
  "needsSetup": true,
  "databaseConfigured": false,
  "adminCreated": false,
  "version": "1.0.0"
}

status moves from uninitialized to needs_admin once the database is configured, and to ready when the admin account exists.

Run the setup wizard

The first visit to the console redirects you into the setup wizard, which installs the licence file, configures the database, creates the schema and creates the first admin account. When it finishes, the console serves the application and you sign in at http://localhost:3002/login with the admin account you created.

The session cookie session is written on login and expires after 7 days.

Run an agent

An agent runs on the machine that owns the hardware, which is usually a different computer from the console. On that machine:

git clone <your-repository-url> core-platform
cd core-platform
pnpm install
pnpm --filter @velox/agent dev

The agent starts on http://localhost:3005 and opens with a registration form. Point it at your console and give it the credentials from Connect Your First Agent.

One address is enough

The agent only ever needs the console URL β€” for example http://localhost:3002 on the same machine, or http://console.lab.internal:3002 across a network. The agent dials out to the console; the console never dials back.

Configuration

Both applications read their configuration from the environment. Copy the example file and edit it:

# in apps/agent
cp .env.example .env.local
VariableDefaultRead byMeaning
PORT3002consoleThe port the console listens on.
DATA_DIR./dataconsoleWhere the console's SQLite file and local state are created.
VELOX_DATA_DIR./dataconsoleWhere the licensing files live: studio-license.json, licence-state.json, deployment-id.
ADMIN_CREATEDβ€”consoleSet to "true" to skip the setup redirect for an already-configured deployment.
DASHBOARD_WS_TOKENβ€”consoleThe shared secret the realtime dashboard socket authenticates with.
AGENT_PORT3005agentThe port the agent's local UI listens on.
AGENT_HOSTlocalhostagentThe interface the agent binds to.

The agent's name and console URL come from its registration form, not from the environment, and are stored on the agent machine in data/agent.json.

The configuration files

The console keeps its state in the working directory, and the setup wizard writes these files:

FileWritten byHolds
.db-config.jsonSetup wizarddbType, host, port, database, username, password, initializedAt.
.setup-progress.jsonSetup wizardcurrentStep, startedAt, completedAt β€” so setup can resume.
.setup-completeSetup wizardThe marker that makes the console serve the app instead of the wizard.
data/agent.jsonAgentagentId, apiKey, agentSecret, name, consoleUrl, registeredAt.

The three licensing files live in the data directory, ./data by default:

FileWritten byHolds
data/studio-license.jsonSetup wizardThe installed licence file: the payload and its Ed25519 signature.
data/licence-state.jsonSetup wizardThe highest version this machine has seen, the revocations it knows, the quota cache.
data/deployment-idSetup wizardThis machine's id, the one the operator signs against.

Database engines

The console supports three engines, and the same platform features run on all of them:

EngineDriverWhere the data lives
SQLitebetter-sqlite3A file at ${DATA_DIR}/<database>.db, velox.db by default.
PostgreSQLpgThe database you point it at.
MySQLmysql2The database you point it at.

Production build

pnpm build          # builds every workspace package
pnpm --filter @velox/console start

The production command serves the UI, the REST API and the Socket.IO endpoint from the same server and the same port, exactly as the development command does.

Deploy the platform on a trusted network

The console serves plain HTTP and does not terminate TLS itself. Its session cookie is marked secure only when NODE_ENV=production, so a production deployment sits behind a reverse proxy that terminates TLS and forwards to the console port over the private network. Agents reach the console over that same address; only http and https URLs are supported. See Self-hosted Deployment.

Next steps