environment variables

server variables#

server configuration is stored in ~/.overlord/.env. these variables are set during overlord install and can be manually edited.

variabledefaultdescription
SERVER_PORT9000http/ws port
DB_PATH~/.overlord/data/overlord.dbsqlite database path
REDIS_URLredis://localhost:6379redis connection url
JWT_SECRETjwt signing secret (auto-generated during install)
WORKER_JWT_SECRETworker jwt signing secret (auto-generated during install)
ENCRYPTION_KEYencryption key for sensitive data at rest (auto-generated during install)
CORS_ORIGIN*allowed cors origins (comma-separated)
LOG_LEVELinfolog level: fatal, error, warn, info, debug, trace
warning

never expose JWT_SECRET, WORKER_JWT_SECRET, or ENCRYPTION_KEY. these are generated automatically during installation and should not be shared or committed to version control.

log levels#

leveldescription
fatalcritical errors causing shutdown
errorruntime errors
warnwarnings
infogeneral operational info
debugdetailed debugging info
tracevery verbose tracing

worker variables#

worker configuration is stored in ~/.overlord-worker/.env. these are set during overlord setup worker.

variabledefaultdescription
OVERLORD_HOSTserver url (required)
OVERLORD_WORKER_TOKENone-time registration token
OVERLORD_MACHINE_NAMEhostnamedisplay name for this machine
OVERLORD_WORKSPACE_ROOT~/.overlord-worker/workspacesdirectory for task workspaces
OVERLORD_MAX_SLOTS2maximum concurrent tasks
OVERLORD_DATA_DIR~/.overlord-workerconfig and jwt storage directory
OVERLORD_SSH_KEY_PATHssh key for git clone/push operations
info

OVERLORD_WORKER_TOKEN is consumed on first registration. after that, the worker uses a jwt for authentication. the token field can remain in the .env file but will not be used again.

redis configuration#

redis is required for the server (used for bullmq task queue and pub/sub).

recommended settings in your redis configuration:

appendonly yes

redis must have aof persistence enabled to minimize queue data loss on restart.

file locations#

pathdescription
~/.overlord/server configuration directory
~/.overlord/.envserver environment variables
~/.overlord/data/overlord.dbsqlite database
~/.overlord/logs/server log files
~/.overlord-worker/worker configuration directory
~/.overlord-worker/.envworker environment variables
~/.overlord-worker/workspaces/task workspace directory
~/.overlord-worker/jwt.jsonworker jwt credentials