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
| Layer | Holds | Read |
|---|---|---|
| Process environment | PORT, 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 default | The 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
| Variable | Default | Meaning |
|---|---|---|
PORT | 3002 | The port the console listens on. |
HOSTNAME | localhost | The host name the console reports for itself in the startup banner. |
NODE_ENV | — | production marks the session cookie secure. |
DATA_DIR | ./data | Where the SQLite database file is created. |
VELOX_DATA_DIR | ./data | Where the licensing files live: studio-license.json, licence-state.json, deployment-id. |
VELOX_LICENSE_FILE | $VELOX_DATA_DIR/studio-license.json | The exact path of the licence file. |
VELOX_LICENSE_KEYS_DIR | licensing-keys | The directory of public keys used for verification; the file name is the keyId. |
VELOX_DEPLOYMENT_MODE | hosted | The 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
| Variable | Default | Meaning |
|---|---|---|
AGENT_PORT | 3005 | The port the agent's local page listens on. |
AGENT_HOST | 127.0.0.1 | The interface to bind. The default keeps the page on the bench. |
AGENT_DATA_DIR | ./data | Where 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_URL | http://localhost:3002 | The 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"
}| Field | Applies to | Meaning |
|---|---|---|
dbType | all | sqlite, postgresql or mysql. |
host | PostgreSQL, MySQL | The server address. |
port | PostgreSQL, MySQL | The server port. |
username | PostgreSQL, MySQL | The database user. |
password | PostgreSQL, MySQL | The database password. |
database | all | The database name, or the file name for SQLite. |
initializedAt | all | When 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 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…"
}| Field | Meaning |
|---|---|
payload.licenceId | The licence file's own id. |
payload.deploymentId | Which machine it is for — a file whose id does not match this machine is refused. |
payload.orgId | Whose quota it is. |
payload.productCode | The product code from the product catalogue. |
payload.edition | The edition: trial, starter, professional or enterprise. |
payload.seats | Seats — how many people can enter the organisation. |
payload.agents | Benches — how many can be open at once. |
payload.features | Which capabilities were bought. |
payload.version | The version number for this deployment — a lower one is never accepted. |
payload.issuedAt | When it was issued. |
payload.expiresAt | When it expires, or null for a licence without an end date. |
payload.nonce | A one-time random value — the same payload is never signed twice. |
payload.keyId | Which public key verifies it. |
signature | The 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
}
}| Field | Meaning |
|---|---|
highestVersion | The highest version this machine has seen — installing an older file is refused by it. |
revoked | The licence file ids known to be revoked. |
revocationCursor | How far the revocation list has been pulled. |
entitlementsCache | The 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:
| Check | What it says | When it fails |
|---|---|---|
| File format | Is what you pasted a licence file at all? | Refused. |
keyId | Do we hold the public key that signed it? | Refused. |
| Signature | Does the Ed25519 signature match the canonical JSON of the payload? | Refused. |
deploymentId | Is it for this machine? | Refused. |
| Version | Is 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":
| Code | What it says |
|---|---|
license_required | Nothing was pasted. |
license_format_invalid | What was pasted is not a licence file. |
license_unknown_key | This machine does not hold the key that signed it. |
license_bad_signature | The signature does not match. |
license_deployment_mismatch | This file was issued for another machine. |
license_older_version | It is older than what is already installed. |
license_expired | This file itself has expired. |
license_state_unwritable | It 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 code | Delivery | Edition | Seats | Benches | Labs |
|---|---|---|---|---|---|
saas_trial | hosted | trial | 1 | 1 | 1 |
saas_pro | hosted | professional | 10 | 5 | 1 |
saas_enterprise | hosted | enterprise | 999 | 999 | 1 |
inhouse_starter | self-hosted | starter | 3 | 3 | 1 |
inhouse_pro | self-hosted | professional | 25 | 25 | 1 |
inhouse_enterprise | self-hosted | enterprise | 999 | 999 | 1 |
The capabilities fall into tiers by edition:
| Edition | Capabilities |
|---|---|
trial, starter | bench.connect, automation.run |
professional | adds bench.live-view, test-cases.manage, reports.build, artifacts.export |
enterprise | adds schedules.run, identity.sso, audit.log |
Where the quota comes from
Two delivery modes, and the interface knows only one shape:
| Delivery | Where the quota comes from | Offline |
|---|---|---|
| hosted | Asked of the official service at GET /v1/organizations/{orgId}/entitlements, cached for 5 minutes. | The last known value is used. |
| self-hosted | The 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 point | Who uses it | Authorisation |
|---|---|---|
The setup wizard's license step | Installing this machine for the first time | None (no administrator exists yet). |
POST /api/licensing | Upgrades, renewals, expansion | An 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"
}| Field | Meaning |
|---|---|
agentId | The identifier the agent sends on every command and heartbeat. |
apiKey | The secret presented to POST /api/agent/auth. |
agentSecret | The credential presented over the socket. |
name | The name shown in the console. |
consoleUrl | The console the agent connects to. |
registeredAt | When the agent registered. |
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
| Change | How it takes effect |
|---|---|
| An environment variable | Restart the process. The console reads its environment once, at start-up. |
.db-config.json | Restart the console, or re-run the setup wizard's database step. |
data/studio-license.json | It takes effect the moment it is installed — installing a file verifies it and records that version. |
data/licence-state.json, .setup-progress.json, .setup-complete | Read by the setup middleware on the next request. |
data/agent.json | Read 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
- Setup Wizard — who writes these files.
- Self-hosted Deployment — what to back up.
- Version Compatibility — what happens when you change the database configuration.