--- title: License environment variables contentType: reference hide: - toc - tags nodeTitle: License originalFilePath: hosting/configuration/environment-variables/licenses.md originalUrl: https://docs.n8n.io/hosting/configuration/environment-variables/licenses url: >- https://docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/license description: >- Environment variables to configure license settings in n8n, including options to hide the usage page, manage license activation and auto-renewal settings, and specify the server URL for license retrie layout: width: default title: visible: true description: visible: false tableOfContents: visible: true outline: visible: true pagination: visible: true metadata: visible: true tags: visible: true actions: visible: true tags: - environment variables --- # License {% include "https://app.gitbook.com/s/GixZThfitWP21x2gQFpD/~/reusable/ASsLuMLGKMy2O0q7awMF/" %} To enable certain licensed features, you must first activate your license. You can do this either through the UI or by setting environment variables. For more information, see [license key](../../manage-your-license.md). | Variable | Type | Default | Description | | ----------------------------------------- | ------- | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `N8N_HIDE_USAGE_PAGE` | boolean | `false` | Hide the usage and plans page in the app. | | `N8N_LICENSE_ACTIVATION_KEY` | String | `''` | Activation key to initialize license. Not applicable if the n8n instance was already activated. | | `N8N_LICENSE_AUTO_RENEW_ENABLED` | Boolean | `true` |

Enables (true) or disables (false) autorenewal for licenses.
If disabled, you need to manually renew the license every 10 days by navigating to Settings > Usage and plan, and pressing F5. Failure to renew the license will disable all licensed features.

| | `N8N_LICENSE_CERT` | String | `''` | Base64-encoded license certificate provided by n8n. Used instead of `N8N_LICENSE_ACTIVATION_KEY` for special use cases, e.g. air-gapped environments. | | `N8N_LICENSE_DETACH_FLOATING_ON_SHUTDOWN` | Boolean | `true` |

Controls whether the instance releases floating entitlements back to the pool upon shutdown. Set to true to allow other instances to reuse the entitlements, or false to retain them.
For production instances that must always keep their licensed features, set this to false.
Ignored when multi-main mode is enabled: all main instances share one seat, and a main instance that shuts down does not release it.

| | `N8N_LICENSE_SERVER_URL` | String | `https://license.n8n.io/v1` | Server URL to retrieve license. | | `N8N_LICENSE_TENANT_ID` | Number | `1` | Tenant ID associated with the license. Only set this variable if explicitly instructed by n8n. | | `https_proxy_license_server` | String | `https://user:pass@proxy:port` | Proxy server URL for HTTPS requests to retrieve license. This variable name needs to be lowercase. | {% include "https://app.gitbook.com/s/GixZThfitWP21x2gQFpD/~/reusable/KbKP88R2IFii1k97togq/" %} ## Related resources * [Environment variables](./)