Skip to content

Environment Variables ​

Complete reference for all environment variables used by EleAgent.

Server ​

VariableDefaultDescription
PORT3001HTTP listen port for the controller
HOST0.0.0.0Bind address (use 127.0.0.1 to restrict to localhost)
VITE_PORT5173Vite dev server port (development only)
ROLE(unset)Container role: controller or worker. Unset = monolith mode

Authentication ​

VariableDefaultDescription
JWT_SECRETchange-me-in-productionSecret for signing JWT session tokens. Must be changed.
ANTHROPIC_API_KEY(unset)API key for Anthropic model access. Alternative to Max login.

Storage ​

VariableDefaultDescription
HOME/artefacts/state/homeHome directory inside container (stores .claude credentials)
ARTEFACTS_ROOT/artefactsBase directory for all writable state
DATABASE_PATH/artefacts/state/auth.dbPath to the authentication SQLite database
SESSION_REGISTRY_DB/artefacts/state/session_registry.dbPath to the session slot manager database

Sessions ​

VariableDefaultDescription
MAX_ACTIVE_SESSIONS5Maximum concurrent AI query executions
SESSION_LOCK_TTL_SECONDS120Lock expiry time without heartbeat (seconds)

Agent Behavior ​

VariableDefaultDescription
SYSTEM_PROMPT_FILE/config/system_prompt.mdPath to the mounted system prompt file
HOST_SOURCE_BASE(unset)Host path prefix for file citations in agent responses
CONTEXT_WINDOW160000Token budget for the AI model
VITE_CONTEXT_WINDOW160000Token budget displayed in the frontend UI

Workspace ​

VariableDefaultDescription
WORKSPACES_ROOT/dataRoot directory for project browsing (read-only)

Feature Flags ​

VariableDefaultDescription
DISABLE_MCPtrueDisable MCP server integration (backend)
VITE_DISABLE_MCPtrueHide MCP UI elements (frontend)
VITE_IS_PLATFORMfalsePlatform vs. self-hosted mode
ENABLE_SYSTEM_UPDATEfalseEnable/disable the self-update mechanism

Worker-Specific ​

VariableDefaultDescription
WORKER_PORT3002HTTP listen port for worker containers
WORKER_URLS(unset)Comma-separated WebSocket URLs of workers (controller only)
HTTPS_PROXYhttp://egress-proxy:3128Egress proxy URL for outbound HTTPS
HTTP_PROXYhttp://egress-proxy:3128Egress proxy URL for outbound HTTP
NO_PROXYlocalhost,127.0.0.1,eleask-controllerAddresses that bypass the proxy

Docker Compose Variables ​

These are set in the .env file and consumed by docker-compose.yml:

VariableDefaultDescription
DATA_PATH../dataHost path to project data files
ARTEFACTS_PATH./artefactsHost path for writable artefacts
SYSTEM_PROMPT_PATH./config/system_prompt.mdHost path to system prompt file
HOST_PORT3001Port exposed on the host machine
CONTAINER_UID10001UID for the container user
CONTAINER_GID10001GID for the container group