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.
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)
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.
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.
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
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.
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.