Skip to main content

Environment Variables

It is important to configure all environment variables labeled as "Mandatory" to ensure Maxun operates smoothly.

Generating Secure Secrets​

The following variables must be set to unique, randomly generated values for each deployment:

openssl rand -base64 48 # For JWT_SECRET
openssl rand -base64 48 # For SESSION_SECRET
openssl rand -hex 32 # For ENCRYPTION_KEY

Variable Reference​

VariableMandatoryDescriptionIf Not Set
BACKEND_PORTYesPort to run backend on. Needed for Docker setupDefault value: 8080
FRONTEND_PORTYesPort to run frontend on. Needed for Docker setupDefault value: 5173
BACKEND_URLYesURL to run backend on.Default value: http://localhost:8080
VITE_BACKEND_URLYesURL used by frontend to connect to backendDefault value: http://localhost:8080
PUBLIC_URLYesURL to run frontend on.Default value: http://localhost:5173
VITE_PUBLIC_URLYesURL used by backend to connect to frontendDefault value: http://localhost:5173
JWT_SECRETYesSecret key for signing JWTs. Generate with openssl rand -base64 48Server will refuse to start.
DB_NAMEYesName of the Postgres database to connect to.Database connection will fail.
DB_USERYesUsername for Postgres database authentication.Database connection will fail.
DB_PASSWORDYesPassword for Postgres database authentication.Database connection will fail.
DB_HOSTYesHost address where the Postgres database server is running.Database connection will fail.
DB_PORTYesPort number used to connect to the Postgres database server.Database connection will fail.
DB_SSLNoSet to true to enable SSL for the database connection. Required when using Neon or any SSL-enforced PostgreSQL host.Defaults to false. SSL will not be used.
ENCRYPTION_KEYYesKey for encrypting sensitive data. Generate with openssl rand -hex 32Encryption functionality will not work.
SESSION_SECRETYesSecret for signing session cookies. Generate with openssl rand -base64 48Sessions won't persist across restarts.
MINIO_ENDPOINTYesEndpoint URL for MinIO, to store Robot Run Screenshots.Connection to MinIO storage will fail.
MINIO_PORTYesPort number for MinIO service.Connection to MinIO storage will fail.
MINIO_CONSOLE_PORTNoPort number for MinIO WebUI service. Needed for Docker setup.Cannot access MinIO Web UI.
MINIO_ACCESS_KEYYesAccess key for authenticating with MinIO.MinIO authentication will fail.
MINIO_SECRET_KEYYesSecret key for authenticating with MinIO. Generate with openssl rand -base64 24MinIO authentication will fail.
MINIO_PUBLIC_URLNoPublic base URL browsers use to reach stored screenshots and files, e.g. https://storage.example.com. Set it when MinIO is behind a reverse proxy.Files are served from the MinIO endpoint and port.
REDIS_HOSTYesHost of the Redis server. Use redis (or your Redis container name) in Docker.Redis connection will fail.
REDIS_PORTYesPort of the Redis server.Default value: 6379
REDIS_PASSWORDNoPassword for a password-protected Redis instance.Redis connects without authentication.
GOOGLE_CLIENT_IDNoClient ID for Google OAuth, used for Google Sheet integration authentication.Google login will not work.
GOOGLE_CLIENT_SECRETNoClient Secret for Google OAuth.Google login will not work.
GOOGLE_REDIRECT_URINoRedirect URI for handling Google OAuth responses.Google login will not work.
AIRTABLE_CLIENT_IDNoClient ID for Airtable, used for Airtable integration authentication.Airtable login will not work.
AIRTABLE_REDIRECT_URINoRedirect URI for handling Airtable OAuth responses.Airtable login will not work.
BROWSER_WS_PORTYesPort for WebSocket connections to the browser service (used for CDP connections).Default value: 3001
BROWSER_HEALTH_PORTYesPort for browser service health checks.Default value: 3002
BROWSER_WS_HOSTYesHost address for the browser service. Set to browser for Docker, localhost for local.Browser service connections will fail.
MAXUN_TELEMETRYNoEnables anonymous usage telemetry. Keeping it enabled helps us understand how the product is used and assess the impact of any new changes. Please keep it enabled.Telemetry data will not be collected.
ANTHROPIC_API_KEYNoAPI key for Anthropic Claude. Used by AI Mode when Anthropic is the LLM provider and no key is entered in Model settings.AI Mode with Anthropic Claude will not work without a key in Model settings.
OPENAI_API_KEYNoAPI key for OpenAI GPT. Used by AI Mode when OpenAI is the LLM provider and no key is entered in Model settings.AI Mode with OpenAI GPT will not work without a key in Model settings.
OLLAMA_BASE_URLNoOllama server for AI Mode. Use http://host.docker.internal:11434 when Maxun runs in Docker and Ollama on the host, or https://ollama.com for Ollama Cloud.Default value: http://localhost:11434
OLLAMA_API_KEYNoAPI key sent to the Ollama server. Required for Ollama Cloud; a local Ollama ignores it.Ollama Cloud requests are rejected.
OLLAMA_MODELNoOllama model used by AI Mode when none is chosen in Model settings, e.g. gpt-oss:20b on Ollama Cloud.Default value: llama3.2