The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
PORT=3001
DB_HOST=db
DB_PORT=5432
DB_USERNAME=user
DB_PASSWORD=pass
DB_DATABASE=application_ctx
REDIS_HOST=redis
REDIS_PORT=6379
OIDC_CLIENT_ID=boxlite
OIDC_ISSUER_BASE_URL=http://localhost:25556/auth/v1
OIDC_AUDIENCE=boxlite
# Optional: set a sitekey to enable Turnstile registration protection.
TURNSTILE_SITEKEY=
# Required only when a sitekey is configured.
TURNSTILE_SECRET_KEY=
TURNSTILE_EXPECTED_HOSTNAMES=
TURNSTILE_TIMEOUT_MS=5000
# Public URL of the MCP endpoint; set it to publish its OAuth discovery metadata.
MCP_RESOURCE_URL=
OIDC_MANAGEMENT_API_ENABLED=
# Optional for a root issuer; required for a path-based issuer when enabled.
OIDC_MANAGEMENT_API_BASE_URL=
OIDC_MANAGEMENT_API_TOKEN_URL=
OIDC_MANAGEMENT_API_CLIENT_ID=
OIDC_MANAGEMENT_API_CLIENT_SECRET=
OIDC_MANAGEMENT_API_AUDIENCE=
# The login-time account link: the HS256 key the Post-Login Action signs its
# adopt and status requests with (at least 32 characters). Empty leaves the
# link off.
OIDC_ACCOUNT_LINK_SECRET=
DEFAULT_SNAPSHOT=ubuntu:22.04
DASHBOARD_URL=http://localhost:3000
DASHBOARD_BASE_API_URL=http://localhost:3000
POSTHOG_API_KEY=
POSTHOG_HOST=
TRANSIENT_REGISTRY_URL=http://registry:5000
TRANSIENT_REGISTRY_ADMIN=admin
TRANSIENT_REGISTRY_PASSWORD=password
TRANSIENT_REGISTRY_PROJECT_ID=boxlite
INTERNAL_REGISTRY_URL=http://registry:5000
INTERNAL_REGISTRY_ADMIN=admin
INTERNAL_REGISTRY_PASSWORD=password
INTERNAL_REGISTRY_PROJECT_ID=boxlite
SMTP_HOST=maildev
SMTP_PORT=1025
SMTP_USER=
SMTP_PASSWORD=
SMTP_SECURE=
SMTP_EMAIL_FROM="BoxLite Team <[email protected]>"
# Default lifetime for new invitations without an explicit expiresAt (seven days).
ORGANIZATION_INVITATION_TTL_SECONDS=604800
S3_ENDPOINT=http://minio:9000
S3_STS_ENDPOINT=http://minio:9000/minio/v1/assume-role
S3_REGION=us-east-1
S3_ACCESS_KEY=minioadmin
S3_SECRET_KEY=minioadmin
S3_DEFAULT_BUCKET=boxlite
S3_ACCOUNT_ID=/
S3_ROLE_NAME=/
# Which object store backs volume buckets: s3 (default) or gcs. Must match the
# runner's VOLUME_STORAGE_BACKEND — the API creates the buckets it mounts.
# GCS credentials come from Application Default Credentials, never a key file,
# so only placement is configured here.
VOLUME_STORAGE_BACKEND=s3
GCS_LOCATION=
GCS_PROJECT_ID=
# Where a private registry's password is written: gcp (Secret Manager) or file.
# Unset leaves private registries off. file is refused with NODE_ENV=production.
REGISTRY_SECRET_STORE=
REGISTRY_SECRET_DIR=
# The registry proxy used for private images with matching credentials.
# An unset host routes nothing through it.
REGISTRY_PROXY_HOST=
ENVIRONMENT=dev
MAX_AUTO_ARCHIVE_INTERVAL=43200
OTEL_ENABLED=true
OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
MAINTENANCE_MODE=false
PROXY_DOMAIN=proxy.localhost:4000
PROXY_PROTOCOL=http
PROXY_API_KEY=super_secret_key
# Parent of platform subdomains (`<name>.<PROXY_APP_DOMAIN>`). Leave unset
# where no wildcard record and certificate serve it; binding a domain is then refused.
PROXY_APP_DOMAIN=
# Shortest platform subdomain a new claim may use, 1-63; held names are not re-checked.
PLATFORM_SUBDOMAIN_MIN_LENGTH=5
AUDIT_LOG_RETENTION_DAYS=
AUDIT_CONSOLE_LOG_ENABLED=
# see https://www.iana.org/time-zones
CRON_TIMEZONE=
BOX_ORGANIZATION_ACTIVITY_ASYNC=true
PROXY_TEMPLATE_URL=http://{{PORT}}-{{boxId}}.proxy.localhost:4000
PYLON_APP_ID=
BILLING_API_URL=
# Hosted CREATE BOX requests read the public catalog and organization plan from
# this URL. The URL and presence of USAGE_EXPORT_TOKEN are validated at startup,
# even when export is disabled. A rejected token or malformed Commerce response
# returns HTTP 503; a transport or 5xx outage logs a warning and temporarily
# disables the limit without caching that fallback. Leaving the URL empty keeps
# creation limits disabled for local/private deployments.
# Also enables GET /internal/billing-states using the internal base below.
# Internal reads and export POSTs share USAGE_EXPORT_URL and USAGE_EXPORT_TOKEN.
# An explicit URL overrides BILLING_API_URL's origin and may include a path prefix;
# each client appends its internal route. If neither URL is set, enabled exporters
# require USAGE_EXPORT_URL. Export flags independently control delivery;
# USAGE_EXPORT_ENABLED also gates outbox writes.
#
# The internal base and token are validated at startup when BILLING_API_URL is
# set or either exporter is enabled. With every consumer disabled, unused URL
# placeholders are ignored. Numeric settings are checked in every state.
# USAGE_EXPORT_URL absolute http(s) base with no query or fragment;
# userinfo is rejected when BILLING_API_URL is set
# USAGE_EXPORT_TOKEN required when any consumer is enabled
# USAGE_EXPORT_TIMEOUT_MS below the window a claimed batch stays hidden for —
# at or above it, rows can be re-claimed while their request is in flight
USAGE_EXPORT_ENABLED=false
# Sends the current full set of open allocations every five minutes. It uses
# USAGE_EXPORT_URL and USAGE_EXPORT_TOKEN and can be enabled independently.
USAGE_ALLOCATION_SNAPSHOT_ENABLED=false
USAGE_EXPORT_URL=
USAGE_EXPORT_TOKEN=
USAGE_EXPORT_BATCH_SIZE=200
USAGE_EXPORT_TIMEOUT_MS=10000
USAGE_EXPORT_MAX_ATTEMPTS=10
# Status sync: pushes component health (API, Boxes, Box Ingress per shared
# region) to incident.io as alert events, plus a heartbeat ping per tick so a
# dead reporter is itself alarmed. Feeds the public status page.
#
# Validated at startup. The timeouts are checked in every state, because a
# malformed number is malformed whether or not it is read. The credentials are
# checked only while STATUS_SYNC_ENABLED is true, so a stage may leave them
# blank without failing to boot:
# INCIDENT_IO_TOKEN required — API key scoped to alert
# events + heartbeat pings only
# INCIDENT_IO_ALERT_SOURCE_CONFIG_ID required — the HTTP alert source id
# INCIDENT_IO_HEARTBEAT_ID optional — blank skips the ping
# STATUS_SYNC_DEDUP_PREFIX lowercase slug leading every
# deduplication key; defaults to boxlite-<ENVIRONMENT>
STATUS_SYNC_ENABLED=false
INCIDENT_IO_TOKEN=
INCIDENT_IO_ALERT_SOURCE_CONFIG_ID=
INCIDENT_IO_HEARTBEAT_ID=
STATUS_SYNC_DEDUP_PREFIX=
INCIDENT_IO_TIMEOUT_MS=10000
STATUS_SYNC_PROBE_TIMEOUT_MS=5000
DEFAULT_RUNNER_DOMAIN=localhost:3003
DEFAULT_RUNNER_API_URL=http://localhost:3003
DEFAULT_RUNNER_PROXY_URL=http://localhost:3003
DEFAULT_RUNNER_API_KEY=secret_api_token
DEFAULT_RUNNER_CPU=4
DEFAULT_RUNNER_MEMORY=8
DEFAULT_RUNNER_DISK=50
DEFAULT_RUNNER_NAME=default
API_KEY_VALIDATION_CACHE_TTL_SECONDS=10
API_KEY_USER_CACHE_TTL_SECONDS=60
ADMIN_API_KEY=supersecret
ADMIN_MAX_CPU_PER_BOX=4
ADMIN_MAX_MEMORY_PER_BOX=8
ADMIN_MAX_DISK_PER_BOX=10
ADMIN_SNAPSHOT_QUOTA=100
ADMIN_MAX_SNAPSHOT_SIZE=100
ADMIN_VOLUME_QUOTA=100
SKIP_USER_EMAIL_VERIFICATION=true
OTEL_COLLECTOR_API_KEY=otel_collector_api_key
BOX_OTEL_ENDPOINT_URL=http://host.docker.internal:4318
ENCRYPTION_KEY=supersecretkey
ENCRYPTION_SALT=supersecretsalt
HEALTH_CHECK_API_KEY=supersecretkey
# Left blank on purpose: billing can suspend/unsuspend organizations, so a
# shared example value here would let anyone who copies this file unmodified
# authenticate as it. Every deployment must set its own.
BILLING_API_KEY=