> For the complete documentation index, see [llms.txt](https://docs.nected.ai/nected-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nected.ai/nected-docs/self-hosting/additional-configuration/update-license-key.md).

# Update License Key

Once you receive your license key, add it to your deployment config and restart the relevant services. The steps differ slightly depending on whether you're running Helm or Docker.

If you've not received your license key, click below:

<a href="https://www.nected.ai/?license_key=true" class="button primary">Get Your License Key</a>

***

### Helm Deployment

Open your `nected-values.yaml` file and add the following under your environment variables:

```yaml
VIDHAAN_PRE_SHARED_KEY: "xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"
```

Then apply the updated values and restart the pods:

```bash
helm upgrade -i nected nected/nected -f values/nected-values.yaml
```

Wait for the upgrade to complete. You can check pod redeployment using `kubectl get pods` — the pods for nected-nalanda, nected-vidhaan-router, and nected-vidhaan-executer should all get restarted before you proceed.

***

### Docker Deployment

You'll need to update two files: `nectedconfig/nalanda.env` and `nectedconfig/vidhaan.env`. Add this line to both:

```env
VIDHAAN_PRE_SHARED_KEY: "xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"
```

Then bring the containers down and back up:

```bash
docker compose down
docker compose up -d
```

### Verifying Activation

Once the containers are back up, open your browser and go to the [app dashboard](https://app.nected.ai). Log in to your Nected dashboard and check your plan status from the bottom of the left navigation panel. Your current plan name and expiry date will be visible there.

<figure><img src="/files/Wb2dBkIkUjcVYrFqXjDb" alt=""><figcaption></figcaption></figure>

If it still shows "License invalid" or "Trial mode," the usual culprits are a typo in the key or the containers not having fully restarted. Double-check the key in both `.env` files and then run:

```bash
docker compose down && docker compose up -d
```

Give it a minute after the containers are up, then reload the page.
