# ============================================================================= # n8n local development — minimal environment variables # ============================================================================= # This is a minimal example covering some local environment variables for development. # Many more variables exist — search for @Env() decorators in the codebase. # Most of them already have default values, so you only need to fill in the ones you need to change. # # Usage (run from the repo root): # 1. Copy this file: cp .env.local.example .env.local # 2. Fill in the values below # 3. Prefix any dev command with dotenvx, for example: # pnpm exec dotenvx run -f .env.local -- pnpm dev:be # # Note: dotenvx supports variable expansion (e.g. $HOME) but not shell # tilde expansion. Use $HOME instead of ~ for paths. # ============================================================================= # ----------------------------------------------------------------------------- # Local data folder # Source: packages/@n8n/config/src/utils/utils.ts # ----------------------------------------------------------------------------- N8N_USER_FOLDER= # ----------------------------------------------------------------------------- # License # Source: packages/@n8n/config/src/configs/license.config.ts # ----------------------------------------------------------------------------- # Tenant identifier for the license SDK (for example, self-hosted, sandbox, embed, cloud). N8N_LICENSE_TENANT_ID= # Activation key used to activate or upgrade the instance license. N8N_LICENSE_ACTIVATION_KEY= # Ephemeral license certificate. N8N_LICENSE_CERT= # ----------------------------------------------------------------------------- # AI # Source: packages/@n8n/config/src/configs/ai.config.ts # packages/@n8n/config/src/configs/ai-assistant.config.ts # packages/@n8n/config/src/configs/ai-builder.config.ts # ----------------------------------------------------------------------------- # Whether AI features (such as AI nodes and AI assistant) are enabled globally. N8N_AI_ENABLED= # Base URL of the AI assistant service. # When set, requests are sent to this URL instead of the default provider endpoint. N8N_AI_ASSISTANT_BASE_URL= # API key for the Anthropic (Claude) provider used by the AI workflow builder. # When set, enables AI-powered workflow and node building. N8N_AI_ANTHROPIC_KEY= # ----------------------------------------------------------------------------- # LangSmith tracing (optional) # Not an n8n config var — read directly by the LangChain SDK. # See: https://docs.smith.langchain.com/ # ----------------------------------------------------------------------------- LANGSMITH_ENDPOINT= LANGSMITH_PROJECT= LANGSMITH_TRACING=