Skip to main content
This is the exhaustive lookup — every variable Activepieces reads, grouped by concern, with its default. For how to apply them to a production deployment, see Configure & Operate.
When you run tools/deploy.sh from the Docker installation tutorial, it generates a root .env file pre-filled with these values.
Variables marked ❗ are required for a self-hosted production deployment.

Core

URLs, encryption keys, telemetry.

Database

Postgres / PGLite connection and pooling.

Redis & queue

Standalone, Sentinel, and the queue UI.

Execution & sandboxing

Run mode, memory, concurrency, network egress.

Limits & retention

File, log, webhook, and table limits.

File storage (S3)

Object storage for files and logs.

Email (SMTP)

Outbound mail configuration.

Authentication & SSO

Google sign-in, SCIM, cloud OAuth.

Pieces & flows

Piece syncing, polling, publish behavior.

Tool search

Semantic action discovery for AI agents.

Core

Identity and connectivity for the platform: the public URL, the keys that protect connections and tokens, and telemetry.
AP_FRONTEND_URL is essential for webhooks and app triggers. It must be accessible to third parties so they can send data.
The default URL is the machine’s IP address. If that address isn’t reachable from the internet, set AP_FRONTEND_URL explicitly. For local development you can expose the frontend port (4200) with a tunneling service such as ngrok.

Database

Activepieces stores its data in PostgreSQL (recommended for production) or an embedded PGLite database. Set the connection with discrete fields or a single AP_POSTGRES_URL.

Redis & queue

Redis backs the BullMQ job queue. Connect with discrete fields, a single AP_REDIS_URL, or Sentinel. The queue UI is an optional dashboard for inspecting jobs.
If AP_REDIS_URL is set, all other Redis properties are ignored. The same applies to AP_REDIS_SENTINEL_HOSTS when running in Sentinel mode.

Execution & sandboxing

Controls how flows run: the sandbox mode, per-process memory and concurrency, run timeouts, and the network egress posture for user code. Read Sandboxing before changing AP_EXECUTION_MODE.

Limits & retention

Caps on file sizes, run-log size, webhook payloads, table sizes, and how long run data is kept. The Cloud values and how these interact are covered in Limits.

File storage (S3)

Files emitted by steps and triggers are stored in the database or an S3-compatible bucket.

Sign-up protection

Controls on who may create an account. Both are off with no configuration, so a self-hosted instance needs neither a Cloudflare nor a ZeroBounce account. With AP_ZEROBOUNCE_API_KEY set, a sign-up is refused when ZeroBounce reports the address as disposable, toxic, a spam trap, an abuse address or globally suppressed. Role addresses such as info@ and sales@ are accepted, and so is an address whose mailbox ZeroBounce cannot confirm. A member who already holds an accepted invitation is never refused. One credit is spent per address, and only for an address that has no account yet. If ZeroBounce cannot be reached, or answers that the key is invalid or out of credits, the sign-up is allowed through and the reason is logged — a validation outage never blocks sign-up. Both refusals are silent: the emailed-code request answers exactly as a served one does and the sign-in page moves to the code step, while password sign-up returns the same response an unverified sign-up returns. Neither reveals that the address was refused; the server log is the only record. The challenge is only served when both Turnstile variables are set. With either missing, the sign-in page renders no widget and the server verifies nothing, so a self-hosted instance needs no Cloudflare account. Signing in with an emailed code depends on that pair. It is served on Activepieces Cloud only, and there only when both variables are set — without them the endpoints are not registered and the sign-in card opens on the password form.

Email (SMTP)

Outbound mail for invitations, notifications, and password resets. SMTP can be configured from the platform admin screen or through these variables. The environment variables are used only when the admin screen has no email configuration, and only when AP_SMTP_HOST, AP_SMTP_PORT, AP_SMTP_USERNAME, and AP_SMTP_PASSWORD are all set. TLS is supported.

Authentication & SSO

Sign-in providers and SCIM provisioning.

Pieces & flows

How piece metadata is synced, how often scheduled triggers poll, and flow-authoring defaults.
Semantic discovery of piece actions and triggers for AI agents connected through the MCP server. See Tool Search for how it works.