---
title: "Licensing"
description: "The free tier, licence keys, grace, burst headroom and several cells. A licence limits new placements only and never stops a running endpoint."
url: "https://opod.io/docs/control-plane/licensing/"
markdown_url: "https://opod.io/docs/control-plane/licensing.md"
section: "Control plane"
last_updated: "2026-10-31"
---

# Licensing

> The free tier, licence keys, grace, burst headroom and several cells. A licence limits new placements only and never stops a running endpoint.

## In short

opod is free up to 4 GPUs in total, with every feature. A licence key raises that number. The key is a signed text string that the control plane checks offline: nothing calls us, ever. A licence only limits **new** placements: when a key expires or is exceeded, everything that runs keeps running, and only the next GPU beyond the limit is refused with `E-LICENCE`.

## When you need it

- You want to run opod on more than 4 GPUs.
- A placement was refused `E-LICENCE`.
- Your key is about to expire, or the console says `grace`.
- You run several cells and want one key across them.
- You must explain to procurement what happens when a licence lapses.

## Do it

1. **Check the key before you install it**

   The `opodcp` binary evaluates a key exactly as a control plane would, for the cell name you give:

   ```bash
   docker run --rm -i ghcr.io/opod-io/opodcp:0.3.6 licence inspect --cell prod - < customer.key
   ```

   ```json
   {
     "token": { "v": 1, "id": "lic_…", "org": "Example Corp", "cell": "*", "maxGpus": 16, "plan": "team",
                "issuedAt": "2026-10-31T00:00:00Z", "expiresAt": "2027-10-31T00:00:00Z" },
     "tier": { "plan": "team", "maxGpus": 16, "source": "key", "state": "valid", "org": "Example Corp",
               "tokenId": "lic_…", "expiresAt": "2027-10-31T00:00:00Z", "graceUntil": "2027-12-30T00:00:00Z",
               "detail": "team plan · 16 GPUs · expires 2027-10-31" }
   }
   ```

   `tier.state` must be `valid`. `wrong-cell` means the key is bound to another cell name: check `--cell`.

2. **Install it**

   Use one of the three ways below: Helm, the API or the console.

Pick one. A key installed through the API outranks the chart values. The change is live: no restart and no pod roll.

**Helm**

```bash
kubectl -n opodcp create secret generic opod-licence --from-file=key=customer.key
helm upgrade opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp --reset-then-reuse-values \
  --set licence.existingSecret=opod-licence
```

`licence.key` takes the key inline instead; the chart then stores it in Secret `<release>-opodcp-licence`.

**API**

```bash
curl -s -X PUT -H "Authorization: Bearer <admin token>" -H 'Content-Type: application/json' \
  --data "{\"key\":\"$(cat customer.key)\"}" \
  https://cp.example.com/api/v1/licence
```

`{"key":""}` clears the stored key and returns the cell to the chart's key, or to the free tier.

**Console**

Open **License & census → Install token** and paste the key. You need the admin role. The page answers with the tier the key grants.

## Check it worked

```bash
export H="Authorization: Bearer $(kubectl -n opodcp get secret opodcp-admin -o jsonpath='{.data.token}' | base64 -d)"
curl -s -H "$H" https://cp.example.com/api/v1/licence \
  | jq '{state, plan, maxGpus, detail, cellGpus, licensedGpus, unlicensedGpus}'
```

A good answer has `"state": "valid"`, your `maxGpus`, and `unlicensedGpus: 0`. The console's **License & census** page shows the same, and the doctor's `licence` row is `✔`.

## If it fails

| Answer                                                                                     | Cause                                                | Fix                                                                          |
| ------------------------------------------------------------------------------------------ | ---------------------------------------------------- | ---------------------------------------------------------------------------- |
| `error: token signature does not verify against any known opod key` from `licence inspect` | the key was edited, cut short, or is not an opod key | copy the whole key again from the email, or ask <support@opod.io> for a copy |
| `error: not an opod capacity token (expected the opod1. prefix)`                           | the file holds something else                        | check that the file starts with `opod1.`                                     |
| `"state": "invalid-key"`                                                                   | the installed key does not verify                    | `detail` names the reason; install the right key                             |
| `"state": "wrong-cell"`                                                                    | the key is bound to another cell name                | install a key for this cell, or ask for one with `cell: *`                   |
| `"state": "grace"`                                                                         | the key expired and grace runs                       | install the renewed key before `graceUntil`                                  |
| A placement refused `E-LICENCE`                                                            | it would land beyond the licensed GPUs               | install a larger key; nothing running stops meanwhile                        |
| `PUT /api/v1/licence` answers `403`                                                        | the caller is not an admin                           | use an admin token                                                           |

## How licensing works

The control plane is free up to **4 GPUs in total**, summed across every cell. A licence key raises that number. The key is a signed string the control plane checks **offline**: nothing calls us to start, serve or check it.

## The rules

1. **One number is licensed: GPUs.** A key carries `maxGpus`. CPU, memory, endpoints, requests, tokens and users are not metered.
2. **The limit gates new placements only.** A placement on a GPU beyond the licensed count is refused with `E-LICENCE` and a remedy. Running workers are never stopped.
3. **Expiry has a grace period.** After `expiresAt` the key keeps its full ceiling for `graceDays` (default 60). After grace, new placements fall back to the free tier.
4. **No remote kill.** Nothing in the request path checks a licence, and the control plane makes no licence call to anyone.

**Figure: What happens around a licence's expiry date.** A timeline of the licence phases from 30 days before expiry through the grace period and after it. At every day, running endpoints keep serving; what changes is whether new work is accepted. The interactive figure is on the web page: <https://opod.io/docs/control-plane/licensing/>

## The free tier

With no key the control plane runs the full product up to 4 GPUs in total. It is not a trial and no feature is held back. Fleet mode is open to the free tier.

## What a key holds

A key has the form `opod1.<payload>.<signature>`: a base64url JSON payload and a base64url Ed25519 signature over it. The control plane verifies the signature against public keys built into its binary.

| Field                   | Meaning                                                        |
| ----------------------- | -------------------------------------------------------------- |
| `id`                    | the licence id (`lic_…`)                                       |
| `org`                   | your organisation                                              |
| `cell`                  | the cell name the key is bound to; empty or `*` means any cell |
| `maxGpus`               | GPUs allowed, summed over every cell that carries this key     |
| `plan`                  | the plan name, for example `team` or `enterprise`              |
| `issuedAt`, `expiresAt` | the validity window                                            |
| `graceDays`             | days of full ceiling after expiry; 60 when absent              |

## States

`GET /api/v1/licence` and the console's **License** page show one of these states:

| State         | When                                                             | GPUs for new placements   |
| ------------- | ---------------------------------------------------------------- | ------------------------- |
| `free`        | no key installed                                                 | 4                         |
| `valid`       | the key verifies, the cell matches, not expired                  | the key's `maxGpus`       |
| `grace`       | expired, inside `graceDays`                                      | still the key's `maxGpus` |
| `expired`     | grace is over                                                    | 4                         |
| `wrong-cell`  | the key is bound to another cell name                            | 4                         |
| `invalid-key` | the signature does not verify (edited, truncated, wrong product) | 4                         |

A bad key never stops the control plane: `wrong-cell` and `invalid-key` fall back to the free tier. Read `detail` after you install a key — it names the reason.

## How the ceiling is applied

The ceiling is spread over nodes in enrolment order: the oldest node first (by creation time, then name) takes its GPUs until the ceiling is reached. A plan whose worker would land on a GPU beyond that line is refused. `GET /api/v1/licence` lists `cellGpus`, `licensedGpus`, `unlicensedGpus` and each node's licensed count.

## Burst headroom

A paid key may run a little over its ceiling for a short time, so a night-time burst is not refused at 02:00.

- The headroom is 10 % of `maxGpus`, rounded up.
- It applies to a key in state `valid` or `grace`. The free tier has none.
- The window is 72 hours from the first placement that used it. After that, new placements are held to `maxGpus`.
- It re-arms after the cell has spent 30 days back inside its ceiling.
- When the window closes, nothing running is touched.

`GET /api/v1/licence` and the License page say when a cell is bursting and until when.

## Several cells

A key counts GPUs **summed over every cell it is installed in**. Install the same key on each cell. A cell sees only its own GPUs, so on its own it checks those against the key. A [fleet control plane](https://opod.io/docs/control-plane/fleet/) reads every cell, adds them up per key, and tells each cell every 30 s whether the sum is over:

- **Told over:** the cell refuses new placements beyond the GPUs it holds now (`E-LICENCE`, the remedy names the fleet). Running workers never stop. A plan that keeps or shrinks what it holds still applies.
- **Told within, never told, or the fleet is gone:** the cell keeps the last fact it was told and its own local check.

`GET /api/v1/licence` carries the last fact as `fleet`, and the metric `opodcp_licence_fleet_over` is 1 while it says over. A cell that is never joined to a fleet cannot see other cells, so only a fleet enforces the sum.

> **Version**
>
> The sum across cells and fleet mode are new in `0.3.0`.

**Figure: One key, several cells.** Bars of GPUs in use per cell against the licence key's ceiling. The interactive figure is on the web page: <https://opod.io/docs/control-plane/licensing/>

## Metrics

| Series                      | Meaning                                            |
| --------------------------- | -------------------------------------------------- |
| `opodcp_cell_gpus`          | allocatable GPUs in the cell                       |
| `opodcp_licence_max_gpus`   | the current ceiling                                |
| `opodcp_licence_fleet_over` | 1 while the fleet says the key's cells are over it |

## Buying and renewing

**To get a licence, write to <support@opod.io>** with the GPU count you run, or use the [contact form](https://opod.io/contact/). We reply within one business day with a quote, send the key by email, and invoice you. Install it as above.

**(planned)** Self-serve checkout on [Pricing](https://opod.io/pricing/) and a licence portal that keeps every key you own.

- **Renewal:** each paid period we re-sign the key with the same licence id and a later expiry, and email it. Install the new key as above. The id never changes, so the fleet sum across cells keeps working.
- **GPU count change:** write to us. You get a new key with the new count and the same id, at once.
- **Lapsed payment:** your current key keeps working to its expiry, then through its grace period. Nothing running stops.
- **Enterprise:** keys are issued against a contract, the same way.
- **A leaked key:** write to us. We replace it with a new licence id on the same terms and revoke the old id.

**(planned)** **Automatic renewal from the control plane.** The licence service already answers it; the control plane does not call it yet. When it ships it is optional, and it works two ways:

- **Connected:** one outbound HTTPS call a day to `api.opod.io`. It sends licence facts only — the licence id, an install id, the GPUs seen and the version — never prompts or usage. It gets back a fresh 30-day key, never past the paid-until date.
- **Air-gapped:** nothing changes — install the key we email you, as above.

**(planned)** **The signed revocation list, read by the control plane.** The list is published today; the control plane does not read it yet. A revoked key will then behave like a key past its grace period: new placements fall to the free tier, and nothing running stops.

**(planned)** A signed hardware census for enterprise true-ups, off by default, exported by hand.
