FreeVelox/Documentation
ProductChangelog

Configuration

FreeVelox is configured in three layers: environment variables, configuration files in the working directory, and built-in defaults. This page introduces every variable and every file the platform reads, and how a change to each one takes effect.

The layers

LayerHoldsRead
Process environmentPORT, HOSTNAME, NODE_ENV, DATA_DIR, VELOX_DATA_DIR, VELOX_LICENSE_FILE, VELOX_LICENSE_KEYS_DIR, DASHBOARD_WS_TOKEN, ADMIN_CREATED for the console; AGENT_PORT, AGENT_HOST, AGENT_DATA_DIR, NEXT_PUBLIC_DEFAULT_CONSOLE_URL for the agent.At process start.
Configuration file.db-config.json, .setup-progress.json, .setup-complete in the console's working directory; studio-license.json, licence-state.json, deployment-id in the data directory; agent.json in the agent's AGENT_DATA_DIR.When the platform needs the value.
Built-in defaultThe default listed in the tables below.When no variable and no file sets the value.

Where a value exists at more than one layer, the process environment wins over the configuration file, and the configuration file wins over the built-in default.

The console serves the web UI, the REST API and the realtime socket from one process, so one set of variables and one working directory configure all three.

Console environment

VariableDefaultMeaning
PORT3002The port the console listens on.
HOSTNAMElocalhostThe host name the console reports for itself in the startup banner.
NODE_ENV—production marks the session cookie secure.
DATA_DIR./dataWhere the SQLite database file is created.
VELOX_DATA_DIR./dataWhere the licensing files live: studio-license.json, licence-state.json, deployment-id.
VELOX_LICENSE_FILE$VELOX_DATA_DIR/studio-license.jsonThe exact path of the licence file.
VELOX_LICENSE_KEYS_DIRlicensing-keysThe directory of public keys used for verification; the file name is the keyId.
VELOX_DEPLOYMENT_MODEhostedThe delivery mode. Set to self_hosted to compute the quota from the licence file on this machine.
DASHBOARD_WS_TOKEN—The token the dashboard client presents on the socket connection.
ADMIN_CREATED—"true" skips the redirect to the setup wizard.

The console's listener accepts every interface, so a browser on the network and an agent on a bench both reach it without a port forward. HOSTNAME names the host for the startup banner only; it is unrelated to the hostname reported by the get_system_info command. To keep the console off the network, put an authenticating proxy in front of it and let only the proxy reach the port.

Agent environment

VariableDefaultMeaning
AGENT_PORT3005The port the agent's local page listens on.
AGENT_HOST127.0.0.1The interface to bind. The default keeps the page on the bench.
AGENT_DATA_DIR./dataWhere the agent keeps its registration record. Give each agent instance its own directory: the record is the agent's identity, and two instances sharing one overwrite each other.
NEXT_PUBLIC_DEFAULT_CONSOLE_URLhttp://localhost:3002The console address the agent's registration form starts with.
NODE_ENV—Set to production for a production run.

The agent's console address and its display name are set during registration and stored in data/agent.json; NEXT_PUBLIC_DEFAULT_CONSOLE_URL only fills the form in before registration.

Console files

The three files below live in the console's working directory, the directory the server is started from; the three licensing files live in the data directory (VELOX_DATA_DIR, ./data by default).

.db-config.json

Written by the setup wizard's database step. It selects the driver and holds the connection details.

{
  "dbType": "sqlite",
  "database": "velox",
  "initializedAt": "2026-10-21T07:33:50.876Z"
}
FieldApplies toMeaning
dbTypeallsqlite, postgresql or mysql.
hostPostgreSQL, MySQLThe server address.
portPostgreSQL, MySQLThe server port.
usernamePostgreSQL, MySQLThe database user.
passwordPostgreSQL, MySQLThe database password.
databaseallThe database name, or the file name for SQLite.
initializedAtallWhen the wizard wrote the file.

The SQLite file is created at ${DATA_DIR}/<database>.db, where <database> is the database field of this file and the default file name is velox.db.

The password is stored in plain text

The wizard writes the database password into this file without encrypting it. Keep the file readable only by the service account, and prefer a database user with the narrowest privileges that still works.

data/studio-license.json

Written by the setup wizard's licence step, or installed by an administrator on the Entitlements page in Settings. It is the platform's entitlement record — a signed JSON document:

{
  "payload": {
    "licenceId": "lic_9f2c…",
    "deploymentId": "velox_d_3a71c0d84f6b4e2a9c5d8e1f7b3a6c90",
    "orgId": "org_2b8e…",
    "productCode": "inhouse_pro",
    "edition": "professional",
    "seats": 25,
    "agents": 25,
    "features": ["bench.connect", "automation.run"],
    "version": 3,
    "issuedAt": "2026-11-04T10:00:00.000Z",
    "expiresAt": "2027-11-04T10:00:00.000Z",
    "nonce": "…",
    "keyId": "k1"
  },
  "signature": "…Ed25519 signature, base64url…"
}
FieldMeaning
payload.licenceIdThe licence file's own id.
payload.deploymentIdWhich machine it is for — a file whose id does not match this machine is refused.
payload.orgIdWhose quota it is.
payload.productCodeThe product code from the product catalogue.
payload.editionThe edition: trial, starter, professional or enterprise.
payload.seatsSeats — how many people can enter the organisation.
payload.agentsBenches — how many can be open at once.
payload.featuresWhich capabilities were bought.
payload.versionThe version number for this deployment — a lower one is never accepted.
payload.issuedAtWhen it was issued.
payload.expiresAtWhen it expires, or null for a licence without an end date.
payload.nonceA one-time random value — the same payload is never signed twice.
payload.keyIdWhich public key verifies it.
signatureThe Ed25519 signature over the canonical JSON of the payload (keys sorted), base64url-encoded.

data/licence-state.json

What this machine remembers. The console maintains it; there is nothing to edit by hand.

{
  "highestVersion": 3,
  "revoked": ["lic_0a11…"],
  "revocationCursor": "2026-11-04T09:00:00.000Z",
  "entitlementsCache": {
    "entitlements": { "delivery": "hosted", "seats": 10, "agents": 5 },
    "at": 1764850000000
  }
}
FieldMeaning
highestVersionThe highest version this machine has seen — installing an older file is refused by it.
revokedThe licence file ids known to be revoked.
revocationCursorHow far the revocation list has been pulled.
entitlementsCacheThe quota computed last time, and when it was computed; in the hosted mode it is used while the control plane is unreachable.

data/deployment-id

This machine's id, a velox_d_<hex> string. It is generated on the machine the first time it is needed and used from then on. You hand it to the operator, the operator pastes it into the account area of the official site, and the official service signs a licence file bound to it.

.setup-progress.json

Records the step the wizard reached, so an interrupted setup can resume. It is cleared when the admin account is created.

{
  "currentStep": "database",
  "startedAt": "2026-10-21T07:30:00.000Z"
}

.setup-complete

A marker file. Its presence is what tells the console that setup is done and it should serve the application rather than the wizard. It contains a completion timestamp.

The licence

The platform edition licence is installed on this machine as a signed JSON file. The official service signs it, and it is valid for one machine only.

Verification

Before it is installed, the file passes the checks one at a time:

CheckWhat it saysWhen it fails
File formatIs what you pasted a licence file at all?Refused.
keyIdDo we hold the public key that signed it?Refused.
SignatureDoes the Ed25519 signature match the canonical JSON of the payload?Refused.
deploymentIdIs it for this machine?Refused.
VersionIs it older than the highest version this machine has seen?Refused — installing an older file never restores a lower quota.

The public keys live in licensing-keys/<keyId>.pem, the file name being the keyId. Keys can be rotated: a new key means a new id, and the old one stays so that older files still verify. VELOX_LICENSE_KEYS_DIR points the key directory elsewhere.

Expiry is a separate matter. An expired file is not a fake file: it verifies, and its quota drops away.

A failed install says which specific thing failed, rather than a single word for "invalid":

CodeWhat it says
license_requiredNothing was pasted.
license_format_invalidWhat was pasted is not a licence file.
license_unknown_keyThis machine does not hold the key that signed it.
license_bad_signatureThe signature does not match.
license_deployment_mismatchThis file was issued for another machine.
license_older_versionIt is older than what is already installed.
license_expiredThis file itself has expired.
license_state_unwritableIt fits, but this machine cannot write it.

Editions and quotas

The platform enforces the licence. What it carries is a quota: seats (people), benches, labs and capabilities. The catalogue defines these products:

Product codeDeliveryEditionSeatsBenchesLabs
saas_trialhostedtrial111
saas_prohostedprofessional1051
saas_enterprisehostedenterprise9999991
inhouse_starterself-hostedstarter331
inhouse_proself-hostedprofessional25251
inhouse_enterpriseself-hostedenterprise9999991

The capabilities fall into tiers by edition:

EditionCapabilities
trial, starterbench.connect, automation.run
professionaladds bench.live-view, test-cases.manage, reports.build, artifacts.export
enterpriseadds schedules.run, identity.sso, audit.log

Where the quota comes from

Two delivery modes, and the interface knows only one shape:

DeliveryWhere the quota comes fromOffline
hostedAsked of the official service at GET /v1/organizations/{orgId}/entitlements, cached for 5 minutes.The last known value is used.
self-hostedThe licence file installed on this machine.It is computed as usual.

A number that cannot be counted is null, and 0 never stands in for it. When the number of seats in use cannot be counted it is null, and the interface shows the limit rather than "0 / 25" — that would be a lie. The bench limit follows the same rule: when the quota is unknown or its limit is 0, benchLimit is null (no limit), not 0.

Settings → Entitlements lays out four things: seats, benches, expiry and the delivery mode. In the self-hosted mode it adds two: which licence file is installed (with its licence id) and this machine's id (with a copy button). An administrator can install a new licence file on that same page.

GET /api/licensing is this deployment's own entitlement endpoint: it gives the delivery mode, the machine id, the installed licence file and the computed quota, so the interface never has to piece it together.

One path to install a file

A licence file is not a one-off — the same deployment is issued file after file. The setup wizard and the settings page take the same path:

Entry pointWho uses itAuthorisation
The setup wizard's license stepInstalling this machine for the first timeNone (no administrator exists yet).
POST /api/licensingUpgrades, renewals, expansionAn admin session in the console.

Revocation

The control plane can withdraw a licence file that has already been issued, but withdrawal is not instantaneous. A self-hosted deployment pulls the revocation list when it is online, remembers what it pulled, and carries on when it cannot. The price of being offline is a delay in revocation — which is why the expiry date inside the licence file is the protection ceiling of an offline deployment.

Registration licences

Registration licences are a different thing: a row in agent_licenses that authorises one agent registration. A personal licence is applied for in the Personal Center, a lab one is issued from Admin → Licences, and both can be issued with POST /api/licenses. The licence code is shown once, at issue. See API Reference.

data/agent.json

Written on the machine under test when the agent registers. This is the agent's entire identity. The file sits in AGENT_DATA_DIR, which defaults to data.

{
  "agentId": "0f2c…",
  "apiKey": "…32 alphanumeric characters…",
  "agentSecret": "…64 hex characters…",
  "name": "Bench 01",
  "consoleUrl": "http://localhost:3002",
  "registeredAt": "2026-10-21T07:35:12.004Z"
}
FieldMeaning
agentIdThe identifier the agent sends on every command and heartbeat.
apiKeyThe secret presented to POST /api/agent/auth.
agentSecretThe credential presented over the socket.
nameThe name shown in the console.
consoleUrlThe console the agent connects to.
registeredAtWhen the agent registered.
This file is a credential

It contains the API key and the agent secret in plain text. Restrict its permissions on the bench. Deleting it un-registers the agent locally; the console keeps the agent row until you delete it.

Applying a change

ChangeHow it takes effect
An environment variableRestart the process. The console reads its environment once, at start-up.
.db-config.jsonRestart the console, or re-run the setup wizard's database step.
data/studio-license.jsonIt takes effect the moment it is installed — installing a file verifies it and records that version.
data/licence-state.json, .setup-progress.json, .setup-completeRead by the setup middleware on the next request.
data/agent.jsonRead by the agent at start-up. Restart the agent.

The agent dials the console; the console never dials the agent. A change to consoleUrl is therefore applied on the agent, and a change to the console's address is applied wherever the agents point at it.

See also