Skip to content

Configuration

The server is configured with environment variables. Set them before npm start, or, on a Linux server installed with the deployment scripts, in /etc/autotestx.env followed by sudo systemctl restart autotestx.

Variable Default Meaning
HOST 127.0.0.1 Interface to listen on. Keep 127.0.0.1 behind a reverse proxy.
PORT 4100 Port to listen on
ATX_PUBLIC_URL http://HOST:PORT The address people use to reach AutoTestX, e.g. https://autotestx.example.com. Password-reset links are built from it, never from the request’s Host header. An https: value also turns on secure cookies.
ATX_SECURE_COOKIES off 1 forces the Secure flag on session cookies (automatic when ATX_PUBLIC_URL is https)
ATX_DATA_DIR ./.data Where all data is stored. See Data and backup.
ATX_WEB_DIST packages/web/dist The built web application to serve

Password-reset links and invitations are emailed when both of these are set. Without them, each message is printed to the server console (journalctl -u autotestx on a deployed server), which is fine for a local installation.

Variable Default Meaning
ATX_SMTP_URL not set The SMTP server, with credentials, as a URL: smtps://USER:PASS@host:465 (TLS from the start) or smtp://USER:PASS@host:587 (STARTTLS). URL-encode any /, + or = in the password. For Amazon SES, use the SMTP credentials from the SES console, not your AWS access keys.
ATX_MAIL_FROM not set The sender, e.g. AutoTestX <no-reply@autotestx.com>. Its domain must be verified with the provider.

Mail to an @localhost address (such as the seeded administrator’s) is always printed, never sent, so the first account can still be claimed.

The same settings carry schedule failure emails and the project notifications:

Variable Default Meaning
ATX_HEAL_DIGEST_MINUTES 60 How often the self-healing fixes to review digest is considered. Each project gets at most one email per period, and only when there is something new.
ATX_SCHEDULER on off stops this process from firing schedules and from sending the heal review digest. Use it for a second process on the same data folder, so only one sends.
Variable Default Meaning
ATX_POOL_SIZE 2 Browser pages kept warm for interactive runs. Opening a new page is the slowest part of starting a run (several seconds); a warm pool makes runs start almost instantly. Each page costs memory: use 1 on a 2 GB server.
ATX_MAX_ROW_CONCURRENCY 4 Platform ceiling on parallel rows in a data-driven run, whatever the test asks for. Use 2 on a 4 GB server.
ATX_HEADED off 1 shows the browser for every server-side run (debugging on a desktop)
ATX_DB_ALLOWED_HOSTS any host Hosts a database check may connect to: a comma list such as db1.corp.local,*.rds.amazonaws.com, or *. Set it on a server shared by several organizations, otherwise a test can reach anything the server can, its own localhost included. On a shared server, set it to none.invalid (no host) and allow each client’s hosts for its own organization under System Admin → Organizations → Database hosts: an organization with its own list uses that list instead of this setting.
ATX_MAX_RUNNING_PER_TOKEN 5 Suite runs one API token may have in progress at once. One more is refused with 429 too_many_running. Protects the runners from a pipeline stuck in a loop.

Every run is recorded so that a failure can be kept: the cost (CPU for encoding the video) is paid by every run, the disk only by the runs that are kept.

Variable Default Meaning
ATX_VIDEO retain-on-failure retain-on-failure keeps a video of every failed run. off records none - the first thing to turn off on a small or burstable server (it is the CPU cost). Runs you Watch never keep a video.
ATX_TRACE on-retry-or-failure Keeps a Playwright trace of every failed run, and of a passed run in which a step needed a retry (a flaky pass). always keeps one for every run; off records none.
ATX_RECORDING_DAYS 14 Kept videos and traces are deleted after this many days. Screenshots, logs and the report stay.
ATX_RECORDING_MIN_FREE_MB 2048 When the data folder has less free disk than this, runs keep no video or trace, and the report says why.
Variable Default Meaning
ATX_VISIBLE_BROWSER auto Where visible browsers open. local: on the server’s own screen. agent: on the tester’s computer through the AutoTestX Agent (use for any hosted server). auto: the agent when the user has one connected, otherwise the server’s screen.
ATX_AGENT_EXE packages/agent/dist/AutoTestX-Agent.exe The agent installer offered at /api/agent/download
ATX_AGENT_MAC_DIR packages/agent/dist-mac The Mac agent (install-mac.sh and one .tar.gz per processor), offered at /api/agent/install-mac.sh
Variable Default Meaning
ANTHROPIC_API_KEY not set The AutoTestX key: AI for organizations that use it, which is the default on every plan but Enterprise. Without it those organizations’ AI features report that they are not connected. Organizations with their own key do not need it.
ANTHROPIC_WORKSPACE_ID not set Only for an API key that is not scoped to a workspace: the workspace ID (wrkspc_…) sent with every request on the AutoTestX key.
ATX_ENCRYPTION_KEY not set 32 bytes (64 hex characters, or base64) that encrypt organizations’ own AI keys. Without it no key can be saved. Changing or losing it makes saved keys unreadable. Generate one with openssl rand -hex 32.
ATX_DIAGNOSIS_MODEL, ATX_HEAL_MODEL claude-sonnet-5-5, claude-haiku-5-5 The models AI diagnosis and AI healing use
Variable Used by Meaning
ATX_AGENT_SIGN_SCRIPT deploy/deploy.ps1 A PowerShell script that code-signs AutoTestX-Agent.exe before upload. Unset: the agent ships unsigned.
Terminal window
HOST=127.0.0.1
PORT=4100
ATX_PUBLIC_URL=https://autotestx.example.com
ATX_DATA_DIR=/var/lib/autotestx
ATX_POOL_SIZE=2
ATX_MAX_ROW_CONCURRENCY=2
# ATX_VIDEO=off
ATX_VISIBLE_BROWSER=agent
ATX_AGENT_EXE=/opt/autotestx/agent/AutoTestX-Agent.exe
ATX_AGENT_MAC_DIR=/opt/autotestx/agent/mac
# ATX_SMTP_URL=smtps://SMTP_USERNAME:SMTP_PASSWORD@email-smtp.ca-central-1.amazonaws.com:465
# ATX_MAIL_FROM=AutoTestX <no-reply@autotestx.example.com>
# ANTHROPIC_API_KEY=sk-ant-…
# ATX_ENCRYPTION_KEY=<openssl rand -hex 32>

This is deploy/autotestx.env.example, which the deployment installs as /etc/autotestx.env (readable by root only).

Server memory ATX_POOL_SIZE ATX_MAX_ROW_CONCURRENCY
2 GB 1 1
4 GB 2 2
8 GB+ 2–4 (suggested starting point) 4

The 2 GB and 4 GB values come from the deployment defaults. Memory per browser context depends heavily on the application under test, so watch the server’s memory under a realistic data-driven run before raising them.