Environment Variables
Core & Security
| Variable | Default | Description |
|---|---|---|
APP_HOST | — | Public domain used for links in emails and the OpenAPI server URL. |
SIGNUP_MODE | closed | closed, waitlist, or open. |
API_RATE_LIMIT | 600 | API requests allowed per key per minute. |
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY | Derived from SECRET_KEY_BASE | Recommended to set explicitly in production (bin/rails db:encryption:init). |
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY | Derived from SECRET_KEY_BASE | Explicit deterministic encryption key. |
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT | Derived from SECRET_KEY_BASE | Explicit key derivation salt. |
Webhooks & Channels
| Variable | Default | Description |
|---|---|---|
ALLOW_INSECURE_WEBHOOKS | false | Set true to allow http:// agent webhook URLs in local development. |
ALLOW_PRIVATE_WEBHOOK_TARGETS | false | Set true only if your agents run on a private network (relaxes SSRF guard). |
EMAIL_POLL_SECONDS | 30 | Interval for polling active IMAP email channels. |
WHATSAPP_GRAPH_VERSION | v23.0 | Meta Graph API version used by the WhatsApp adapter. |
MAX_ATTACHMENT_BYTES | — | Maximum attachment size ingested or downloaded per part. |
Retention & System SMTP
| Variable | Default | Description |
|---|---|---|
DEFAULT_RETENTION_DAYS | Unset (keep forever) | Default retention period for newly created organizations (minimum 7). |
RETENTION_BUDGET_SECONDS | 300 | Time budget per nightly Retention::PurgeJob run. |
SMTP_ADDRESS | — | SMTP host for system emails (verification, password reset, waitlist). |
SMTP_PORT | 587 | SMTP 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