--- title: License key description: How to activate your license key. contentType: howto nodeTitle: Manage your license originalFilePath: license-key.md originalUrl: 'https://docs.n8n.io/license-key' url: 'https://docs.n8n.io/deploy/host-n8n/configure-n8n/manage-your-license' layout: description: visible: false --- # License Key To enable certain licensed features, you must first activate your license. You can do this either through the UI or by setting environment variables. {% include "https://app.gitbook.com/s/GixZThfitWP21x2gQFpD/~/reusable/KbKP88R2IFii1k97togq/" %} ## Add a license key using the UI In your n8n instance: 1. Log in as **Admin** or **Owner**. 1. Select **Settings** > **Usage and plan**. 1. Select **Enter activation key**. 1. Paste in your license key. 1. Select **Activate**. ## Add a license key using an environment variable In your n8n configuration, set `N8N_LICENSE_ACTIVATION_KEY` to your license key. If the instance already has an activated license, this variable will have no effect. Refer to [Environment variables](basic-configuration.md) to learn more about configuring n8n. ### Allowlist the license server IP addresses n8n uses Cloudflare to host the license server. As the specific IP addresses can change, you need to allowlist the [full range of Cloudflare IP addresses](https://www.cloudflare.com/ips/) to ensure n8n can always reach the license server. ## Add a license certificate using an environment variable For certain use cases (for example air-gapped environments) n8n can issue a license certificate instead of a license key. A license certificate is a base64-encoded string that n8n provides. In your n8n configuration, set `N8N_LICENSE_CERT` to the string you received from n8n: ```bash N8N_LICENSE_CERT= ``` Set either `N8N_LICENSE_CERT` or `N8N_LICENSE_ACTIVATION_KEY`, never both. ## Related resources * [Configure n8n](./)