Skip to Content

Environment Variables

Core & Security

VariableDefaultDescription
APP_HOST—Public domain used for links in emails and the OpenAPI server URL.
SIGNUP_MODEclosedclosed, waitlist, or open.
API_RATE_LIMIT600API requests allowed per key per minute.
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEYDerived from SECRET_KEY_BASERecommended to set explicitly in production (bin/rails db:encryption:init).
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEYDerived from SECRET_KEY_BASEExplicit deterministic encryption key.
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALTDerived from SECRET_KEY_BASEExplicit key derivation salt.

Webhooks & Channels

VariableDefaultDescription
ALLOW_INSECURE_WEBHOOKSfalseSet true to allow http:// agent webhook URLs in local development.
ALLOW_PRIVATE_WEBHOOK_TARGETSfalseSet true only if your agents run on a private network (relaxes SSRF guard).
EMAIL_POLL_SECONDS30Interval for polling active IMAP email channels.
WHATSAPP_GRAPH_VERSIONv23.0Meta Graph API version used by the WhatsApp adapter.
MAX_ATTACHMENT_BYTES—Maximum attachment size ingested or downloaded per part.

Retention & System SMTP

VariableDefaultDescription
DEFAULT_RETENTION_DAYSUnset (keep forever)Default retention period for newly created organizations (minimum 7).
RETENTION_BUDGET_SECONDS300Time budget per nightly Retention::PurgeJob run.
SMTP_ADDRESS—SMTP host for system emails (verification, password reset, waitlist).
SMTP_PORT587SMTP port (587 STARTTLS).
SMTP_USERNAME / SMTP_PASSWORD—Credentials for your transactional email provider.
MAILER_FROM—Sender address (e.g. no-reply@mail.example.com).
Last updated on