---
title: "Licences for Team and Enterprise"
description: "Get a Team or Enterprise licence key for self-hosted Anlyon, activate it in the console, and know how seats, expiry and the 14-day grace period work. Keys are verified offline on your server."
sidebar:
  label: Licences
---

The Community edition is free and needs no key. The Team and Enterprise editions add the features a licence key turns on: single sign-on, audit streaming, roles per environment and more. [Choose an edition](/self-hosting#choose-an-edition) lists what each tier includes.

## Know how a key is checked

A licence key is a signed text that starts with `anlyon_lic_v1.`. It names the tier, your organisation, the number of seats, the features it turns on, and when it was issued and when it expires.

Your server checks the signature against public keys built into each Anlyon release. Nothing is fetched and nothing is reported, so an install with no internet access verifies a key the same way as any other.

The features the key lists are what your server turns on. The tier says which plan was sold.

## Get a key

Email [support@anlyon.com](mailto:support@anlyon.com?subject=Anlyon%20self-hosted%20licence) with your organisation's name, the tier you want and how many people will use Anlyon.

## Activate a key

1. **Switch the edition**

    Set `EDITION` in the install's `.env` file to `team` or `enterprise`, to match your key, and restart. A key has no effect while the edition is `community`. With the one-line installer:

    ```bash
    sudo sed -i 's/^EDITION=.*/EDITION=team/' /opt/anlyon/.env
    cd /opt/anlyon
    sudo docker compose up -d
    ```

    From a clone, edit `deploy/self-host/.env` and run `docker compose up -d` in `deploy/self-host`. A new install can start in the right edition with `--edition team`.

2. **Check the key**

    Sign in as an instance admin and open **Settings → Instance → Licence**. Paste the key under **Check a key** and select **Verify**. It is verified on your server without being saved, and you see its tier, organisation, seats and expiry date.

3. **Save it**

    Paste the key in the **Licence key** field and save. It takes effect at once, without a restart.

You can set the key in `.env` instead, as `ANLYON_LICENSE_KEY`. The environment wins, and the console then shows the key as "set by environment".

When the server starts, it logs the licence it found. Read it with:

```bash
sudo anlyon-selfhost logs server | grep -i licen
```

A valid key logs `Licensed to <organisation> for <seats> seats until <date>.` If `EDITION` names one tier and the key another, the key's features apply and the server logs a warning: set `EDITION` to the key's tier to match.

## Count seats

A seat is a person who belongs to at least one workspace on the install. Someone in three workspaces takes one seat.

Seats are soft. Going over the number on your licence blocks nothing: the console shows its owners and admins a banner, and the server logs a warning when it starts and every hour. Renew the licence for more seats.

## Know what happens when a key expires

1. **Before the expiry date**

    Everything works.

2. **For 14 days after it**

    The licensed features keep working, so a renewal that arrives a few days late never locks your company out of single sign-on. Every start of the server logs a warning, and the console shows admins a banner with the date the grace period ends.

3. **After the 14 days**

    The licensed features turn off. The core keeps running: actions, limits, approvals and receipts are not affected.

What turning off means for each feature:

| Feature | When it is off |
| --- | --- |
| Single sign-on | A workspace that required single sign-on no longer does: members can sign in with a password or social login again |
| Audit streaming and evidence export | Records stop streaming to your sinks, and the audit endpoints answer `404` |
| Roles per environment | Each person's workspace role applies everywhere. The per-environment roles are kept, not deleted |
| SCIM | Your directory can no longer add, change or remove members |
| Your own secret store | An action whose secret lives in your store is refused with `501 SECRET_STORES_UNAVAILABLE`, and nothing is sent to the provider |

To renew, paste the new key in **Settings → Instance → Licence**, or replace `ANLYON_LICENSE_KEY` in `.env` and restart. The features come back as they were.

## Fix a key that is refused

The console and the server log say why a key was refused.

| What it says | What to do |
| --- | --- |
| No licence key is set | Paste the key in **Settings → Instance → Licence**, or set `ANLYON_LICENSE_KEY` |
| The key is not in the expected format, or contains characters a key never has | Copy it again, in one piece, without line breaks |
| The signature does not match | The key was changed after it was issued. Copy it again from where you received it |
| Signed with a key this release does not know | Upgrade to a newer release, or ask us for a new key |
| The licence starts on a later date | Check the server's clock |
| Expired, and its grace period has ended | Renew the licence |

For anything else, email [support@anlyon.com](mailto:support@anlyon.com).

## Related

**[Self-host Anlyon](/self-hosting)**

The editions, the licence terms, and hosted or self-hosted.

**[Configure](/self-hosting/configure)**

Every instance setting and its environment variable.
