.env.local.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
N8N_USER_FOLDER
Local data folder Source: packages/@n8n/config/src/utils/utils.ts
N8N_LICENSE_TENANT_ID
License Source: packages/@n8n/config/src/configs/license.config.ts Tenant identifier for the license SDK (for example, self-hosted,…
N8N_LICENSE_ACTIVATION_KEY
secret
Activation key used to activate or upgrade the instance license.
N8N_LICENSE_CERT
Ephemeral license certificate.
N8N_AI_ENABLED
AI Source: packages/@n8n/config/src/configs/ai.config.ts packages/@n8n/config/src/configs/ai-assistant.config.ts…
N8N_AI_ASSISTANT_BASE_URL
Base URL of the AI assistant service. When set, requests are sent to this URL instead of the default provider endpoint.
N8N_AI_ANTHROPIC_KEY
secret
API key for the Anthropic (Claude) provider used by the AI workflow builder. When set, enables AI-powered workflow and node building.
LANGSMITH_ENDPOINT
LangSmith tracing (optional) Not an n8n config var — read directly by the LangChain SDK. See: https://docs.smith.langchain.com/
LANGSMITH_PROJECT
LANGSMITH_TRACING
brew install flyctl && fly launch --from https://github.com/n8n-io/n8n
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/n8n-io/n8n
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/n8n-io/n8n