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
- 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.jsononly when it passes. - 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. - SQLite β the default. Give a file name; the file is created under
- 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.
- 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
adminrole.On success the wizard writes
.setup-completeand clears.setup-progress.json. - 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.
| Field | Meaning |
|---|---|
licenceId | The licence file's own id. |
deploymentId | Which machine it is for β a file whose id does not match this machine is refused. |
orgId | Whose quota it is. |
productCode | The product code from the product catalogue. |
edition | The edition: trial, starter, professional or enterprise. |
seats | Seats β how many people can enter the organisation. |
agents | Benches β how many can be open at once. |
features | Which capabilities were bought. |
version | The version number for this deployment β a lower one is never accepted. |
issuedAt | When it was issued. |
expiresAt | When it expires, or null for a licence without an end date. |
nonce | A one-time random value β the same payload is never signed twice. |
keyId | Which 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.
- The wizard shows this machine's id. It is generated on the machine, stored in
data/deployment-id, shaped likevelox_d_<hex>, and does not change once it exists. - You copy the id and hand it to the operator.
- The operator pastes the id into the account area of the official site and signs a licence file bound to it.
- You paste the whole file back into the wizard's text area.
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:
| 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. |
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":
| 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
What a licence file 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 |
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:
| Step | data | Result |
|---|---|---|
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=statusreportsisComplete,currentStep,startedAtandneedsResume.POST /api/system/setup?action=resetstarts 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
| File | Written at | Purpose |
|---|---|---|
data/studio-license.json | Licence step | The installed licence file (payload and signature), verified again on every start. |
data/licence-state.json | Licence step | The highest version this machine has seen, the revocations it knows and the quota cache. |
data/deployment-id | Licence step | This machine's id, the one the operator signs against. |
.db-config.json | Database step | The driver and its connection details, plus initializedAt. |
.setup-progress.json | Each step | Which step was last reached, so setup can resume. |
.setup-complete | Admin step | The 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.
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:
- Connect Your First Agent β issue a registration licence and register a bench.
- Agent Management β how registration licences, revocation and presence work.
Upgrades, renewals and expansion go down the same install path: POST /api/licensing, with an
admin session. See Configuration.