Skip to content

AI environment variables#

File-based configuration

You can add _FILE to individual variables to provide their configuration in a separate file. Refer to Keeping sensitive data in separate files for more details.

Variable Type Default Description
N8N_AI_ENABLED Boolean false Whether AI features are enabled (true) or not (false). Enables Ask AI for the HTTP node.
N8N_AI_PROVIDER String openai The AI provider to use. Currently, n8n only supports OpenAI.
N8N_AI_OPENAI_API_KEY String - Your OpenAI API key.