FreeVelox/Documentation
ProductChangelog

Setup Wizard

The first time the console starts it has no licence, no database and no users. The setup wizard walks you through the five steps that turn a bare process into a working platform, and it drives them one at a time through POST /api/system/setup.

Open http://localhost:3002 β€” the console redirects you into the wizard automatically until setup is complete.

The five steps

  1. Licence

    The wizard shows this machine's id (shaped like velox_d_…) with a copy button next to it. Hand that id to the operator, and the operator signs a licence file bound to it.

    Paste the whole file into the text area. The wizard verifies it before installing it, and writes it to data/studio-license.json only when it passes.

  2. Database

    Choose a driver and point it at your database:

    • SQLite β€” the default. Give a file name; the file is created under DATA_DIR. Best for a single-server deployment.
    • PostgreSQL β€” give host, port, database name and username. If the database does not exist, the wizard creates it.
    • MySQL β€” the same fields. If the database does not exist, the wizard creates it.

    The wizard tests the connection before accepting it, and writes the result to .db-config.json.

  3. Initialise

    The schema is created from lib/db/init.<driver>.sql β€” one file per dialect, the same 21 tables in all three. If the tables already exist, this step is skipped and reported as such.

    For SQLite, an existing file at the chosen path is replaced with a fresh one.

  4. Admin

    Create the first user: name, email, password and a confirmation. The password must be at least 8 characters. This account is created with the admin role.

    On success the wizard writes .setup-complete and clears .setup-progress.json.

  5. Complete

    The wizard closes out setup and hands you to the sign-in page, where the account you just created is waiting.

The licence step in detail

The licence file is a signed JSON document

A licence file is not a key string. It is 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…"
}

The payload is self-sufficient: the file says what it is, who it is for and when it expires, and it verifies on its own without asking the official service. It holds the snapshot taken at the moment of signing β€” a change to the catalogue or the prices does not alter a file that is already issued.

FieldMeaning
licenceIdThe licence file's own id.
deploymentIdWhich machine it is for β€” a file whose id does not match this machine is refused.
orgIdWhose quota it is.
productCodeThe product code from the product catalogue.
editionThe edition: trial, starter, professional or enterprise.
seatsSeats β€” how many people can enter the organisation.
agentsBenches β€” how many can be open at once.
featuresWhich capabilities were bought.
versionThe version number for this deployment β€” a lower one is never accepted.
issuedAtWhen it was issued.
expiresAtWhen it expires, or null for a licence without an end date.
nonceA one-time random value β€” the same payload is never signed twice.
keyIdWhich public key verifies it. Keys can be rotated, so the id travels with the file.

How you get the file

The operator signs the file, and it is valid for one machine only.

  1. The wizard shows this machine's id. It is generated on the machine, stored in data/deployment-id, shaped like velox_d_<hex>, and does not change once it exists.
  2. You copy the id and hand it to the operator.
  3. The operator pastes the id into the account area of the official site and signs a licence file bound to it.
  4. You paste the whole file back into the wizard's text area.
The private key is not on the API server

The private key that signs a licence file lives on an offline signing machine. Console carries only the public keys (licensing-keys/<keyId>.pem) and verifies the file where it stands β€” a self-hosted install verifies offline. Point VELOX_LICENSE_KEYS_DIR elsewhere to use another directory of keys.

What is checked before it is installed

The file passes through 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.

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

What a failed install says

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

What a licence file 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

The steps over the API

The wizard is a client of POST /api/system/setup. Every step is one request with a step and its data:

StepdataResult
license{licenseFile}edition, agents, features, seats, expiresAt.
database{dbType, host, port, database, username, password}The connection result and the resolved file path for SQLite.
initializeβ€”The tables created, or skipped when the schema is already there.
admin{email, name, password, confirmPassword}The admin account, created with the admin role.
completeβ€”redirectUrl pointing at the sign-in page.

In the license step, licenseFile is the JSON text of the licence file, not a key string.

The same endpoint serves the rest of the wizard's needs:

  • GET /api/system/setup?action=status reports isComplete, currentStep, startedAt and needsResume.
  • POST /api/system/setup?action=reset starts over: it removes the wizard files and the installed licence file, forgets the highest version this machine has seen, and, for SQLite, the database file.

What the wizard writes

FileWritten atPurpose
data/studio-license.jsonLicence stepThe installed licence file (payload and signature), verified again on every start.
data/licence-state.jsonLicence stepThe highest version this machine has seen, the revocations it knows and the quota cache.
data/deployment-idLicence stepThis machine's id, the one the operator signs against.
.db-config.jsonDatabase stepThe driver and its connection details, plus initializedAt.
.setup-progress.jsonEach stepWhich step was last reached, so setup can resume.
.setup-completeAdmin stepThe marker that makes the console serve the app instead of the wizard.

The three licensing files live in the data directory, ./data by default, and VELOX_DATA_DIR points it elsewhere; data/studio-license.json can also be named individually with VELOX_LICENSE_FILE. The database and the wizard's own files stay in the console's working directory.

The wizard can be resumed

If the process restarts mid-setup, the console picks up where it left off: the progress file records the current step, and GET /api/system/setup?action=status reports it. The wizard also offers a reset, which deletes the files above and β€” for SQLite β€” the database file.

After setup

The console now serves the application. Sign in with the admin account you created, then create the registration licences your agents will need:

Upgrades, renewals and expansion go down the same install path: POST /api/licensing, with an admin session. See Configuration.