> 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.nected.ai/nected-docs/self-hosting/additional-configuration/update-license-key.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
