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
| Requirement | Version |
|---|---|
| Node.js | 24 or newer (engines.node in the root package.json) |
| pnpm | 11.x |
| A database | SQLite 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:
git clone <your-repository-url> core-platform
cd core-platform
pnpm installpnpm 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
| Application | Package | Port | What it is |
|---|---|---|---|
| Console | apps/console | 3002 | The web platform: UI, REST API and the realtime socket, all from one server. |
| Agent | apps/agent | 3005 | The workstation companion that runs on each bench. |
| Control | apps/control | 3004 | The control plane: accounts, organisations, the product catalogue, licences and orders. |
| Docs | apps/docs | 3003 | This documentation site. |
| Site | apps/site | 3001 | The public marketing site. |
Start the console
pnpm --filter @velox/console devThe 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/statusA 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 devThe 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.
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| Variable | Default | Read by | Meaning |
|---|---|---|---|
PORT | 3002 | console | The port the console listens on. |
DATA_DIR | ./data | console | Where the console's SQLite file and local state are created. |
VELOX_DATA_DIR | ./data | console | Where the licensing files live: studio-license.json, licence-state.json, deployment-id. |
ADMIN_CREATED | β | console | Set to "true" to skip the setup redirect for an already-configured deployment. |
DASHBOARD_WS_TOKEN | β | console | The shared secret the realtime dashboard socket authenticates with. |
AGENT_PORT | 3005 | agent | The port the agent's local UI listens on. |
AGENT_HOST | localhost | agent | The 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:
| File | Written by | Holds |
|---|---|---|
.db-config.json | Setup wizard | dbType, host, port, database, username, password, initializedAt. |
.setup-progress.json | Setup wizard | currentStep, startedAt, completedAt β so setup can resume. |
.setup-complete | Setup wizard | The marker that makes the console serve the app instead of the wizard. |
data/agent.json | Agent | agentId, apiKey, agentSecret, name, consoleUrl, registeredAt. |
The three licensing files live in the data directory, ./data by default:
| File | Written by | Holds |
|---|---|---|
data/studio-license.json | Setup wizard | The installed licence file: the payload and its Ed25519 signature. |
data/licence-state.json | Setup wizard | The highest version this machine has seen, the revocations it knows, the quota cache. |
data/deployment-id | Setup wizard | This 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:
| Engine | Driver | Where the data lives |
|---|---|---|
| SQLite | better-sqlite3 | A file at ${DATA_DIR}/<database>.db, velox.db by default. |
| PostgreSQL | pg | The database you point it at. |
| MySQL | mysql2 | The database you point it at. |
Production build
pnpm build # builds every workspace package
pnpm --filter @velox/console startThe 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.
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
- Setup Wizard β configure the database and create the first admin.
- Connect Your First Agent β claim a licence and register a bench.