> ## Documentation Index
> Fetch the complete documentation index at: https://docs.novacula.io/llms.txt
> Use this file to discover all available pages before exploring further.

# License

> The offline license file that admits executors and running nodes on a Self-hosted Hub: trial, upload, renewal, caps, and expiry

A Self-hosted Hub runs under a **license** instead of a subscription. The license is one file, `nvcl-license.jwt`, that Novacula issues to you. The Hub verifies it **offline** — it never calls home — and it covers the whole installation: every organization on the Hub shares it.

## What a license sets

| Field | Meaning |
| - | - |
| **Executors** | Installation-wide cap on connected executors |
| **Running nodes** | Installation-wide cap on running nodes |
| **Expires** | When the license ends (00:00 UTC of the expiry date) |
| **Type** | `test` or `production` — informational; nothing depends on it |
| **Customer**, **License number** | Who it was issued to, and its id |
| **Attributes** | Extra fields from your contract, in the order the license lists them |

The license is independent of releases: upgrading the platform doesn't touch it, and renewing it needs no upgrade.

## Trial

From its first start, a Hub with no license runs a **7-day trial** with **one executor** and **one running node**. The trial ends exactly like an expired license.

## Install or renew the license

Renewal is the same as the first install, with the new file. It takes effect **immediately, without a restart** (and within an hour on another Hub sharing the same database).

> [tab] Admin console
>
> As a super-admin, open the admin console (`https://<hub>/admin/`) and go to **License**. Under **Install a license**, paste the file's contents into **License token** or choose it under **License file**, then **Install license**.
>
> The **Installation license** card shows the status, **Type**, **License number**, **Customer**, **Expires**, usage against the caps (**Running nodes**, **Executors**, flagged **Over the limit** when above them), and the **Attributes**.

> [tab] API
>
> With a super-admin access token (see [Install](https://docs.novacula.io/recipes/self-hosted/install.md#hub)):
>
> ```bash theme={null}
> jq -n --rawfile t <path to nvcl-license.jwt> '{token: ($t | rtrimstr("\n"))}' |
>   curl -fsS -X PUT -H @<(printf 'Authorization: Bearer %s\n' "$TOKEN") -H 'Content-Type: application/json' \
>     --data-binary @- https://hub.example.local/v1/license
> curl -fsS -H @<(printf 'Authorization: Bearer %s\n' "$TOKEN") https://hub.example.local/v1/license |
>   jq '{state, customer, expiresAt, maxNodes, maxExecutors}'
> ```

An invalid or already-expired file is refused with `422 license_invalid`, and the current license or trial stays in force.

## Status

| Status | Meaning |
| - | - |
| **Trial** | No license installed; the 7-day trial is running |
| **Trial expired** | The trial has ended — management is frozen |
| **Valid** | A license is installed and more than 14 days from expiry |
| **Expiring** | Within 14 days of expiry |
| **Expired** | The license has ended — management is frozen |

In the API (`GET /v1/license`) these are `trial`, `trial_expired`, `valid`, `expiring`, and `expired`.

## Who sees it

* **Super-admins** install and read it in the admin console.
* **Organization owners and admins** read it, read-only, on the **License** tab of **Organization settings**, with usage counted across every organization of the installation. They also see a console banner during the trial, from 14 days before expiry, and once management is frozen — **View license** opens the tab.
* **Members** see neither.

## When the license expires

Fleet management **freezes**:

* Fleet changes — deploying, editing, starting, or updating nodes, creating pools, and the like — are refused with `402 management_frozen` (reason `license_expired` or `trial_expired`). The console says **Management is frozen**.
* A new executor isn't admitted. Executors already registered keep syncing.
* **Running nodes keep running**, and telemetry keeps flowing.
* [Automatic updates](https://docs.novacula.io/docs/executors/upgrade-executor.md#automatic-updates) start nothing new; an update already in flight is still watched to its outcome.

Installing a valid license lifts the freeze at once.

## Caps

An executor connecting, or a node starting, above the cap is refused with `402 quota_exceeded`, naming the quota. In the console that reads, for example, **Running-node limit reached**. A lower cap on a new license stops no running node. Executors are counted oldest first, on every sync: the newest ones beyond a lowered cap are refused, so their nodes keep running but can't be managed until the cap admits them again.

## Clock changes

The Hub keeps the latest time it has seen, so setting the clock back extends neither a license nor a trial. It detects a rollback; it doesn't prevent one.

## Related

* [Install](https://docs.novacula.io/recipes/self-hosted/install.md) · [Upgrade](https://docs.novacula.io/recipes/self-hosted/upgrade.md)
* [Roles and permissions](https://docs.novacula.io/docs/platform/roles-and-permissions.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.