Skip to content

License Configuration

You can perform a standard online activation or use an offline activation flow if your environment does not have direct internet access.

Before activating your license, you need to create an account and subscribe to a plan. Once registered, you will receive your API key, which you will use as your license key in the configuration file.

Online License Activation

Once you have your API key, add the following line to your configuration file to activate your NEX license:

LICENSE_KEY=your-license-key-here

On the next startup, NEX will automatically detect the license and use the default AI API gateway.

Offline License Activation

If your NEX host does not have direct internet access, you can activate your license using the offline activation flow. The upload step can be completed from a different machine with internet access, so the machine running NEX does not need to be connected to the internet at any point.

  1. Create a new license in the online portal and copy the generated license key.
  2. In your .env or ~/.nex/config, set:
    LICENSE_KEY=your-license-key-here
    LICENSE_OFFLINE=true
    
  3. Run NEX. It will generate a file named offline_activation.req in the current directory and display a URL for completing offline activation.
  4. Upload the offline_activation.req file to the offline portal URL provided by NEX (for example, https://offline.licensespring.com).
  5. Download the generated .lic file, place it in your NEX working directory, and rename it to:
    offline_activation.lic
    
  6. Run NEX again to complete the activation process.

Note

Offline activation requires both LICENSE_KEY and LICENSE_OFFLINE=true to be set before generating the request file.