Skip to content
Documentation

Self-host environment variables

Environment settings, types and defaults for self-hosted Executor 2.0.0-beta.79.

This reference covers self-host configuration in Executor 2.0.0-beta.79. The Docker column shows values set in the published image. A dash means the image leaves the setting to the host or server. Rows marked read-only are populated by the host. See Run Executor yourself for installation and configuration examples.

Restore the original authentication and encryption keys with an existing database. If either key is missing or invalid, the Docker host stops at startup.

Variable Type Docker image Source fallback Purpose
BETTER_AUTH_SECRET secret string — Read auth-secret.key from the data directory. Generate it for a new installation. Signs dashboard sessions and must have at least 32 characters when supplied.
BETTER_AUTH_URL HTTP(S) origin — http://localhost:<PORT> or HTTPS using RAILWAY_PUBLIC_DOMAIN Sets the public HTTP(S) origin, without a trailing slash, used for sign-in and links.
DO_NOT_TRACK string — Unset Opts out of usage analytics when set to a truthy value such as 1. OTLP export is configured separately.
EXECUTOR_ANALYTICS_SECRET 64 hexadecimal characters — Read analytics-secret.key from the data directory. Generate it for a new installation. Derives stable pseudonymous user IDs by hashing them with an installation-specific HMAC key.
EXECUTOR_ANALYTICS_TEST_PORT positive integer — Unset Routes usage analytics to a local listener when NODE_ENV=test.
EXECUTOR_APP_UI_BASE_URL string — Unset Sets the base for isolated app UI origins. Localhost derives it from the dashboard origin.
EXECUTOR_APP_WORKER_IDLE_SECONDS nonnegative integer — 300 Sets the idle unload delay in seconds. Zero disables idle unloading.
EXECUTOR_APP_WORKERS positive integer — 64 Limits the number of app and app-data workers kept loaded.
EXECUTOR_APPS_ALLOW_PRIVATE_FETCH boolean — false Allows app code to send requests to private network destinations.
EXECUTOR_BUILD_VERSION string 2.0.0-beta.79 "development" Identifies the build in telemetry and selects the installed version for update checks.
EXECUTOR_CATALOG_URL string — "https://catalog.executor.sh/index.json" Selects the catalog index URL. Use off to disable the catalog.
EXECUTOR_DATA_DIR nonempty string /app/data /app/data in the Docker host, ".local/hosted" in the server Selects the persistent directory for storage and generated keys.
EXECUTOR_DESKTOP_SESSION_LINK_SECONDS integer — 60 Sets how long a desktop sign-in link stays valid in seconds.
EXECUTOR_DISABLE_ANALYTICS string — Unset Opts out of usage analytics when set to a truthy value such as 1. OTLP export is configured separately.
EXECUTOR_ENCRYPTION_KEY secret string — Read encryption.key from the data directory. Generate it for a new installation. Encrypts stored credentials and must be 64 hexadecimal characters when supplied.
EXECUTOR_ENVIRONMENT string self-host "development" for telemetry, "" for test detection Labels telemetry with the deployment environment.
EXECUTOR_EVALUATION_MEMORY_MB nonnegative number — 256 Sets the memory budget for cached app evaluation data.
EXECUTOR_HOST_ARCH string — Host architecture Read-only host architecture reported in usage analytics.
EXECUTOR_HOST_OS string — Host operating system Read-only host operating system reported in usage analytics.
EXECUTOR_HOST_STALL_RESTART boolean — false Makes the host process exit when it detects a stall. Docker restarts it only if a restart policy applies.
EXECUTOR_HOST_STALL_SECONDS integer, 0–3600 — 60 Sets the busy-second threshold for detecting a stall. Zero disables detection.
EXECUTOR_INSTALL_ID UUID v4 — Read install-id from the data directory. Generate it for a new installation. Identifies this installation across restarts. Usage analytics sends this ID and the root domain when eligible.
EXECUTOR_MCP_CLIENTS positive integer — 512 Caps retained MCP clients across the installation before idle clients are evicted.
EXECUTOR_MCP_CLIENTS_PER_USER positive integer — 256 Caps retained MCP clients per user before that user’s idle clients are evicted.
EXECUTOR_MCP_TIMEOUT_MS number — 300000 Limits the duration of an MCP execution in milliseconds.
EXECUTOR_MOTEL_DATA_DIR path /app/motel-data /app/motel-data Selects the bundled telemetry collector’s data directory in Docker.
EXECUTOR_NO_UPDATE_CHECK boolean — false Disables the periodic check for newer Executor releases.
EXECUTOR_NPM_REGISTRY HTTP(S) URL — https://registry.npmjs.org Overrides the public npm registry used for app builds and version checks.
EXECUTOR_OAUTH_CALLBACK_URL string — Unset Overrides the callback URL for provider OAuth flows.
EXECUTOR_OAUTH_CLIENT_METADATA_URL string — Unset Enables and names the HTTPS client metadata document for provider OAuth.
EXECUTOR_OAUTH_GITHUB_CLIENT_ID string — Unset Supplies the operator’s OAuth client ID for GitHub accounts.
EXECUTOR_OAUTH_GITHUB_CLIENT_SECRET secret string — Unset Supplies the operator’s OAuth client secret for GitHub accounts.
EXECUTOR_OAUTH_GOOGLE_CLIENT_ID string — Unset Supplies the operator’s OAuth client ID for Google accounts.
EXECUTOR_OAUTH_GOOGLE_CLIENT_SECRET secret string — Unset Supplies the operator’s OAuth client secret for Google accounts.
EXECUTOR_OAUTH_SLACK_CLIENT_ID string — Unset Supplies the operator’s OAuth client ID for Slack accounts.
EXECUTOR_OAUTH_SLACK_CLIENT_SECRET secret string — Unset Supplies the operator’s OAuth client secret for Slack accounts.
EXECUTOR_POSTHOG_HOST string Configured by the release build "" Selects the HTTPS destination for usage analytics.
EXECUTOR_POSTHOG_PUBLIC_KEY string Configured by the release build "" Supplies the public ingestion key that enables usage analytics with a destination.
EXECUTOR_REGISTRY_URL string — "https://api.executor.sh" Selects the public origin used to publish and install apps.
EXECUTOR_REPOSITORIES_DIR path — The data directory’s repositories subdirectory Read-only path where the Docker host keeps app Git repositories.
EXECUTOR_RUNTIME_DIR path — /app Selects the Docker directory containing the packaged Worker runtime.
EXECUTOR_SCHEDULE_CONCURRENCY number — 8 Limits how many scheduled app jobs can run concurrently.
EXECUTOR_STORAGE_EXPORT boolean — false Internal Worker flag. When true, normal product requests return HTTP 503. Use executor-host export to write an export file.
EXECUTOR_TEST_OAUTH_CLIENT_DEFINITIONS JSON array — Unset Adds synthetic OAuth client definitions on an end-to-end test host.
EXECUTOR_TOOL_LISTING_FRESH_SECONDS nonnegative number — 30 Sets how long a cached tool listing is treated as fresh.
EXECUTOR_TOOL_LISTING_LOAD_SECONDS nonnegative number — 45 Limits how long a tool listing load may run.
EXECUTOR_TOOL_LISTING_MAX_AGE_SECONDS nonnegative number — 604800 Sets the maximum age of a cached tool listing that can be served.
EXECUTOR_TOOL_LISTING_RENEW_SECONDS nonnegative number — 86400 Sets how long a cached tool listing can wait before background renewal.
EXECUTOR_TRUSTED_PROXIES string — Unset Lists the trusted proxy IP addresses or CIDR ranges allowed to supply client IPs.
EXECUTOR_URL_ALLOW_HTTP_ORIGINS JSON array of origins — [] Lists exact HTTP(S) origins granted an exception to outbound URL checks.
EXECUTOR_URL_ALLOW_LOOPBACK_HTTP boolean — true Allows HTTP URLs on loopback addresses in outbound URL checks.
HOST string 0.0.0.0 0.0.0.0 Sets the network interface address the server binds.
NODE_ENV string production "production" Selects the environment used to configure usage analytics.
NODE_EXTRA_CA_CERTS string — Unset Points the Docker host to additional PEM certificates for outbound TLS.
OTEL_EXPORTER_OTLP_ENDPOINT URL — Unset Sets the base OTLP URL from which per-signal endpoints are derived.
OTEL_EXPORTER_OTLP_HEADERS comma-separated key=value pairs — Unset Provides fallback request headers for all OTLP exporters.
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT URL — Unset Overrides the full OTLP logs export URL.
OTEL_EXPORTER_OTLP_LOGS_HEADERS comma-separated key=value pairs — Unset Overrides request headers for the logs exporter.
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT URL — Unset Overrides the full OTLP metrics export URL.
OTEL_EXPORTER_OTLP_METRICS_HEADERS comma-separated key=value pairs — Unset Overrides request headers for the metrics exporter.
OTEL_EXPORTER_OTLP_METRICS_PROTOCOL string — "http/protobuf" Selects http/protobuf or http/json for metric export.
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT URL — Unset Overrides the full OTLP traces export URL.
OTEL_EXPORTER_OTLP_TRACES_HEADERS comma-separated key=value pairs — Unset Overrides request headers for the traces exporter.
PORT integer, 1–65535 4400 4400 Sets the server’s listening port.
RAILWAY_PUBLIC_DOMAIN string — Unset Supplies the hostname for the public origin when Railway provides a domain.
SSL_CERT_DIR path — Unset Points the workerd runtime to a directory of trusted TLS certificates.
SSL_CERT_FILE path /etc/ssl/certs/ca-certificates.crt Unset Points the workerd runtime to a trusted CA certificate bundle.
SSO_ALLOWED_DOMAINS string — Required when SSO is enabled Required with SSO. Lists the email domains allowed to sign in, separated by commas.
SSO_CLIENT_ID string — Required when SSO is enabled Required with SSO. Identifies Executor to the configured OIDC provider.
SSO_CLIENT_SECRET secret string — Required when SSO is enabled Required with SSO. Supplies Executor’s secret for the configured OIDC provider.
SSO_DISCOVERY_URL string — Unset Enables single sign-on with the provider’s HTTPS OIDC discovery document.

Was this page helpful?