# Licensing and tiers

URL: https://lyeve.com/docs/concepts/licensing-and-tiers/

LyEve runs the same engine image with or without a license. With no key it runs
the free tier: the core CMS and every free feature, for production use and with
no time limit. A license adds the paid features and capabilities it names. This
page covers what each side holds, how to apply a license, how to choose which
features start, and how to check what is running. Prices and plans are at
[lyeve.com/pricing](https://lyeve.com/pricing/).

| If you want to | Read |
|---|---|
| Know whether something costs money | [What runs free](#what-runs-free) and [What a license adds](#what-a-license-adds) |
| Put a license on an install | [Apply a license](#apply-a-license) |
| Know what happens when a license lapses | [Without a license, and when one expires](#without-a-license-and-when-one-expires) |
| Run fewer features | [Choose which features start](#choose-which-features-start) |
| See what is on right now | [Check what is running](#check-what-is-running) |

## What runs free

The core CMS is free: content types and entries, drafts and revisions, users and
roles, sign-in, the Admin API and the Content API, on PostgreSQL, MySQL and SQL
Server.

These features run on every install with no license key. The name is what
`LYEVE_PLUGINS` and `GET /api/admin/entitlements` call the feature. Some are free
up to a ceiling or hold back a paid part, and the capability in the last column
lifts the ceiling or opens the part. Each feature's page names exactly what it
gates.

| Feature | Name | Free | Paid part |
|---|---|---|---|
| [Access rules](https://lyeve.com/docs/features/access-rules/) | `permissions` | Rules for three roles | `rbac-pro` |
| [Analytics](https://lyeve.com/docs/features/analytics/) | `analytics` | The GA4, Mixpanel, Plausible and Segment destinations, one attempt per event, and the delivery log | `analytics-pro` |
| [API keys](https://lyeve.com/docs/features/api-keys/) | `apikey` | Five active keys per tenant, thirty days of each key's request history, no monthly limit per key | `apikey-pro` |
| [Bulk import](https://lyeve.com/docs/features/bulk-import/) | `bulk-import` | Every format, XLSX included, and the trim, lowercase and uppercase transforms | `content-pro` |
| [Caching](https://lyeve.com/docs/features/caching/) | `cache` | One cache provider of any kind, and 10 response cache rules per tenant | `cache-pro` |
| [Captcha](https://lyeve.com/docs/features/captcha/) | `captcha` | One provider for the instance | `multitenant-customization` |
| [Concurrency tuning](https://lyeve.com/docs/features/concurrency-tuning/) | `goroutine-engine` | Every view of the worker pool, the parallel engine, async hooks and task status | `goroutine-engine-pro` |
| [Content lifecycle](https://lyeve.com/docs/features/content-lifecycle/) | `content` | Everything except releases and comment threads, with [content history](https://lyeve.com/docs/features/content-history/) for the content types you choose and the last 30 days of revisions readable | `content-pro` |
| [Editorial review](https://lyeve.com/docs/features/editorial-review/) | `review` | One workflow per tenant, with every stage feature except escalation, quorum and conditions | `review-pro` |
| [Email](https://lyeve.com/docs/features/email/) | `email` | One SMTP provider and five templates per tenant | `email-pro` |
| [Error tracking](https://lyeve.com/docs/features/error-tracking/) | `error-tracking` | Grouping, triage and spike alerts by email, with 30 days of events readable | `alerts-pro` |
| [Flows](https://lyeve.com/docs/features/flows/) | `flow` | Twenty flows per tenant, on the nodes that stay inside the instance | `flow-pro` |
| [Idempotent requests](https://lyeve.com/docs/features/idempotent-requests/) | `idempotency` | | |
| [Localization](https://lyeve.com/docs/features/localization/) | `localization` | Two locales per tenant | `localization-pro` |
| [Logs](https://lyeve.com/docs/features/logs/) | `logging` | Everything, with volume alerts by email | `alerts-pro` |
| [Magic-link sign-in](https://lyeve.com/docs/features/magic-link-sign-in/) | `magic-link` | | |
| [Media](https://lyeve.com/docs/features/media/) | `media` | 1,000 generated image variants per tenant | `media-pro` |
| [Metrics export](https://lyeve.com/docs/features/metrics-export/) | `telemetry` | Every exporter for the instance | `multitenant-customization` |
| [Multi-factor authentication](https://lyeve.com/docs/features/multi-factor-auth/) | `mfa` | TOTP, backup codes and signing in with an enrolled passkey | `mfa-pro` |
| [OAuth sign-in](https://lyeve.com/docs/features/oauth-sign-in/) | `oauth` | One provider per install, from the Google, GitHub or Apple template or by hand | `oauth-pro` |
| [Object storage](https://lyeve.com/docs/features/object-storage/) | `storage` | Everything, region pins included | |
| [Password reset](https://lyeve.com/docs/features/password-reset/) | `password-reset` | | |
| [Rate limiting](https://lyeve.com/docs/features/rate-limiting/) | `rate-limit` | The global limit and the built-in protections | `rate-limit-pro` |
| [Request capture](https://lyeve.com/docs/features/request-capture/) | `request-capture` | Every request kept 24 hours, with replay and diff | `request-capture-pro` |
| [Request profiling](https://lyeve.com/docs/features/request-profiling/) | `profiler` | | |
| [Scheduled jobs](https://lyeve.com/docs/features/scheduled-jobs/) | `cron` | Every job, with failure alerts by email | `alerts-pro` |
| [Schema changes](https://lyeve.com/docs/features/schema-changes/) | `schema` | The list editor, every schema change, the built-in presets and applying any preset | `schema-pro`, `config-sync` |
| [Synthetic monitoring](https://lyeve.com/docs/features/synthetic-monitoring/) | `synthetic-monitoring` | Three probes per tenant, each run at most every 300 seconds, with down notices by email | `synthetic-monitoring-pro`, `alerts-pro` |
| [Tenants](https://lyeve.com/docs/features/tenants/) | `multitenant` | One tenant, `default` | `multitenant-provisioning` and the other tenant capabilities below |
| [Usage and quotas](https://lyeve.com/docs/features/usage-and-quotas/) | `usage` | Metering, and enforcing the quotas already stored | `usage-pro` |
| [Webhooks](https://lyeve.com/docs/features/webhooks/) | `webhook` | 25 outbound endpoints per tenant | `webhook-pro` |

A free install also holds up to three admin seats: accounts with the `admin` or
`super_admin` role, in their own tenant or through a tenant membership. Each
account counts once across every tenant, disabled accounts included, and the
first account, created at setup, is one of the three. Editors and viewers never
count. A license that is `active` or in `grace` lifts that
ceiling, whatever names it carries. Creating a fourth admin, promoting an account
to either role, or granting a membership with either role answers
`{"error": "cap_exceeded", "cap": "admin.seats", "limit": 3, "current": 3, "upgrade_url": "https://app.lyeve.com/pricing?plan=starter&utm_campaign=admin.seats&utm_medium=product&utm_source=admin"}`.
When a license lapses, every admin keeps their role and keeps signing in.

Every install also holds these capabilities, which are about where a free
feature keeps its data:

| Capability | What it lets you do |
|---|---|
| `cache-redis` | Keep the cache in Redis. |
| `storage-s3` | Store media in S3 or an S3-compatible service. |
| `logging-retention` | Keep logs for as long as your retention policy says. |
| `rate-limit-distributed` | Share rate limit counters across replicas through Redis. |
| `idempotency-distributed` | Share idempotency keys across replicas through Redis. |
| `request-capture-replay` | Replay captured requests. |
| `telemetry-streaming` | Export metrics on a schedule. |
| `cost-monitor` | Track the cost of each tenant. |

Backing services such as Redis or S3 need no license. Configure the service and
the free feature uses it.

Past a ceiling, the request answers `402 Payment Required` with a body that
names it, and nothing you already hold is taken away. Only the next object is
refused:

```json
{"error": "cap_exceeded", "cap": "rbac.roles", "limit": 3, "current": 3, "upgrade_url": "https://app.lyeve.com/pricing?skus=plugin-rbac-pro&utm_campaign=rbac.roles&utm_medium=product&utm_source=admin"}
```

`upgrade_url`, repeated in the `X-Upgrade-URL` header, opens the pricing page on
the plan or the add-on that lifts that ceiling.

## What a license adds

A license carries a list of names. Each paid feature runs when its name is on the
list:

| Feature | Name |
|---|---|
| [A/B testing](https://lyeve.com/docs/features/ab-testing/) | `ab-testing` |
| [AI](https://lyeve.com/docs/features/ai/) | `ai` |
| [API analytics](https://lyeve.com/docs/features/api-analytics/) | `apianalytics` |
| [Audit log](https://lyeve.com/docs/features/audit-log/) | `audit` |
| [Data export](https://lyeve.com/docs/features/data-export/) | `data-export` |
| [Data residency](https://lyeve.com/docs/features/data-residency/) | `data-residency` |
| [Event replay](https://lyeve.com/docs/features/event-replay/) | `events` |
| [GraphQL API](https://lyeve.com/docs/features/graphql-api/) | `graphql` |
| [gRPC API](https://lyeve.com/docs/features/grpc-api/) | `grpc` |
| [Message broker events](https://lyeve.com/docs/features/message-broker-events/) | `messagebroker` |
| [PII masking](https://lyeve.com/docs/features/pii-masking/) | `pii-mask` |
| [Realtime](https://lyeve.com/docs/features/realtime/) | `realtime` |
| [Recommendations](https://lyeve.com/docs/features/recommendations/) | `recommendations` |
| [Replication](https://lyeve.com/docs/features/replication/) | `cluster` |
| [SAML single sign-on](https://lyeve.com/docs/features/saml-sso/) | `saml` |
| [SCIM provisioning](https://lyeve.com/docs/features/scim-provisioning/) | `scim` |
| [Search](https://lyeve.com/docs/features/search/) | `search` |
| [Slow query analysis](https://lyeve.com/docs/features/slow-query-analysis/) | `query-monitor` |
| [Trusted devices](https://lyeve.com/docs/features/trusted-devices/) | `device-fingerprint` |
| [Web application firewall](https://lyeve.com/docs/features/web-application-firewall/) | `waf` |

Other paid names open part of a feature. The feature runs either way, and the
license opens the part:

| Name | Part of | What it opens |
|---|---|---|
| `flow-pro` | Flows | More than twenty flows, custom endpoint paths, webhooks, other protocols, outbound nodes and datasources. |
| `webhook-pro` | Webhooks | More than 25 endpoints, payload templates and filters, retry policies, dead-letter replay and dismiss, the payload preview, delivery search, retrying one delivery, and creating or editing incoming webhooks. |
| `email-pro` | Email | A second provider and more, the API transport, more than five templates, creating or editing triggers, the delivery dashboard and bounce classification. |
| `localization-pro` | Localization | More than two locales. |
| `oauth-pro` | OAuth sign-in | More than one provider, the Okta and Azure AD templates, role mapping, default roles of your own and a backup provider. |
| `mfa-pro` | Multi-factor authentication | Enrolling a passkey and marking one as the backup key. |
| `synthetic-monitoring-pro` | Synthetic monitoring | More than three probes, and intervals down to 15 seconds. |
| `rate-limit-pro` | Rate limiting | Custom rate limit rules, changes to the sign-in protections, a tenant's own global limit, address allow and deny lists, and the refusal history. |
| `rbac-pro` | Access rules | More than three roles that hold rules. |
| `apikey-pro` | API keys | More than five active keys per tenant, the whole request history, and [monthly request limits](https://lyeve.com/docs/features/api-key-request-limits/): setting or raising a key's limit. |
| `usage-pro` | Usage and quotas | [Tenant quotas](https://lyeve.com/docs/features/tenant-quotas/): setting a tenant's request, storage and bandwidth limits, and turning hard limits and blocking on. |
| `alerts-pro` | Scheduled jobs, error tracking, logs, synthetic monitoring | [Alerts](https://lyeve.com/docs/features/alerts/) in Slack, Discord, PagerDuty or a signed webhook, a tenant's own error spike threshold, and error events older than 30 days. |
| `content-pro` | Content lifecycle, bulk import | [Content releases](https://lyeve.com/docs/features/content-releases/), [editorial comments](https://lyeve.com/docs/features/editorial-comments/), [revisions older than 30 days](https://lyeve.com/docs/features/content-lifecycle/#how-far-back-you-can-read), and saved import mapping templates with the date, split and lookup transforms. |
| `review-pro` | Editorial review | More than one workflow per tenant, escalation on a missed deadline, stages that need several approvals, and stages that apply only to some entries. |
| `request-capture-pro` | Request capture | Capture rules per route with sampling and retention up to 30 days, and saved replay sets. |
| `cache-pro` | Caching | Several cache providers with failover, moving entries between providers, the provider benchmark, and more than 10 response cache rules per tenant. |
| `goroutine-engine-pro` | Concurrency tuning | Changing the worker pool, the parallel engine and async hooks on a running server, and the four settings that set them at start. |
| `analytics-pro` | Analytics | Retry policies, replaying a failed delivery, and the PostHog, Amplitude and webhook destinations. |
| `media-pro` | Media | More than 1,000 stored [image transform](https://lyeve.com/docs/features/image-transforms/) variants per tenant. |
| `schema-pro` | Schema changes | [The schema canvas](https://lyeve.com/docs/features/schema-changes/#work-on-the-schema-canvas) with a layout every admin of the tenant shares, and [saving presets of your own](https://lyeve.com/docs/reference/schema-presets/#save-a-preset-of-your-own). |
| `config-sync` | Schema changes | [Promoting the configuration](https://lyeve.com/docs/features/promote-configuration/): content types, flows, access rules, webhooks and settings to another instance as one bundle. Moving one content type or one flow stays free. |
| `multitenant-provisioning` | Tenants | Creating tenants. |
| `tenant-backup` | Tenants | Backing up, restoring and cloning a tenant. |
| `migration-toolkit` | Tenants | Jobs that copy a database to another one, across database types, with cancel and rollback. |
| `multitenant-customization` | Tenants, captcha, metrics export | LyEve Console branded per tenant, a [captcha provider](https://lyeve.com/docs/features/captcha/#give-a-tenant-its-own-captcha) per tenant, and a [metrics destination](https://lyeve.com/docs/features/metrics-export/#send-a-tenant-its-own-metrics) per tenant. |
| `audit-retention` | Audit log | Retention policies and legal holds. A license with `audit` includes it. |
| `audit-pro` | Audit log | [Streaming the log](https://lyeve.com/docs/features/audit-log-streaming/) to Splunk, Datadog or HTTPS. It needs `audit` on the same license, and a license with `audit` does not include it. |
| `support` | AI | The support desk. It needs `ai` on the same license. |

A license that carries a free feature's own name opens that feature's paid part
too: `flow`, `webhook`, `email`, `localization`, `mfa`, `oauth`,
`synthetic-monitoring` and `rate-limit` open their `-pro` part, and `multitenant`
opens `multitenant-provisioning`, `tenant-backup` and `migration-toolkit`.

These names are in beta: `alerts-pro`, `analytics-pro`, `apikey-pro`,
`audit-pro`, `cache-pro`, `config-sync`, `content-pro`, `flow-pro`,
`goroutine-engine-pro`, `localization-pro`, `media-pro`, `migration-toolkit`,
`multitenant-customization`, `multitenant-provisioning`, `request-capture-pro`,
`review-pro`, `schema-pro`, `support`, `synthetic-monitoring-pro`,
`tenant-backup` and `usage-pro`. So are these paid features: `ai`, `cluster`,
`data-residency`, `device-fingerprint`, `messagebroker`, `query-monitor`,
`recommendations` and `saml`. Each works as its page describes, and its fields
can still change before it is marked stable. Each page says what keeps working
when the license lapses.

Which names each plan carries is on [lyeve.com/pricing](https://lyeve.com/pricing/).
A feature can also be bought on its own, and however a name reached the license,
it works the same.

A paid feature the license does not cover does not start, so its routes answer
`404`. One that was running when the license lapsed can answer `402` until the
next restart. A paid part of a running feature answers `402` with the name it
needs:

```json
{"error": "payment_required", "plugin": "multitenant-provisioning", "feature": "feature:multitenant_provisioning", "upgrade_url": ""}
```

## Apply a license

You receive a license as a signed token, or as a license key that starts with
`lyeve_live_` (`lyeve_test_` for a test key). Either works in both places below.

**In the environment.** Set `LYEVE_LICENSE_KEY` and restart the engine:

```bash
docker run -e LYEVE_LICENSE_KEY="<token or key>" ... ghcr.io/lyeve-labs/lyeve-core:latest
```

**On a running instance.** A super admin applies it without a restart:

<div class="paths">
<div data-path="console">

Open **Settings > License**, paste the token or key into **License token or
key**, and select **Activate license**, or **Renew license** when one is
already in force. A refused token or key shows the reason on the page.

(Image: Settings > License: the current plan and status, links to plans and to the customer portal, and a box to paste a license token or key.)

</div>
<div data-path="api">

```bash
curl -X POST http://localhost:3001/api/admin/license/renew \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"license_key": "<token or key>"}'
```

```json
{"plan": "pro", "state": "active", "features": ["..."], "license_source": "token", "expires_at": "2027-01-31T00:00:00Z"}
```

The route takes the `super_admin` role and a signed-in session, not an admin
token or an API key.

</div>
</div>

The instance stores what you enter, and encrypts a key with `ENCRYPTION_KEY`,
so a restart and every replica pick it up.

What changes at once and what waits for a restart:

- Paid parts of a running feature, such as `flow-pro` or
  `multitenant-provisioning`, apply to the next request.
- A paid feature that was not running at boot starts at the next restart.

| Answer | Meaning |
|---|---|
| `200` | Applied. The body is the new entitlement. |
| `400` `invalid JSON` | The body is not JSON. |
| `400` `license_key is required` | The body carried no key. |
| `400` `license verification failed` | The token does not verify. |
| `400` `the license server refused this key` | The key is invalid, revoked or out of activations. |
| `409` | `LYEVE_LICENSE_KEY` holds a license key, and the environment wins. Change the key there. |
| `502` | The license server could not be reached, or returned a token that does not verify. |
| `503` `license key exchange is not configured on this instance` | `LYEVE_LICENSE_SERVER_URL` is not usable, so a key cannot be exchanged. |

### A token works offline, a key is exchanged

A **signed token** is verified on the instance with no network call, so an
air-gapped install behaves like any other. The check cannot be turned off, and a
development or staging install is checked the same way. See
[Verify offline](https://lyeve.com/docs/trust/verify-offline/).

A **license key** is exchanged for a token:

1. At start the engine sends the key and a random id for the install to
   `LYEVE_LICENSE_SERVER_URL`. It accepts `https` only and never follows a
   redirect.
2. It verifies the token that comes back exactly as it verifies one you paste. A
   token that does not verify grants nothing.
3. It caches the token in `LYEVE_LICENSE_CACHE_DIR` with a digest of the key,
   never the key itself. A later start uses the cached token with no network
   call until the token is within seven days of its expiry.
4. A running engine checks every six hours. It exchanges the key again when it
   holds no token, when its token is no longer active, or when its token is
   within seven days of its expiry.

Nothing else is sent: no content, users, configuration or usage. When the server
refuses the key (`invalid_key`, `key_revoked` or `quota_exceeded`), the cached
token is discarded. At start the install then runs the free tier. A running
engine keeps the token it already holds until that token expires, and through
the seven days of grace that follow, so the free tier begins at the end of grace
or at the next start, whichever comes first. When the server cannot be
reached, a cached token keeps working, and with none the install runs the free
tier. Any other answer, such as a proxy's `403`, counts as unreachable. The
reason is logged and reported as `license_error` by `GET /api/admin/entitlements`.

Mount `LYEVE_LICENSE_CACHE_DIR` on a volume so the cached token survives a new
container.

## Without a license, and when one expires

| State | When | Paid features |
|---|---|---|
| `free` | No license, none that verifies, or a license whose grace has ended | Off |
| `active` | The license verifies and has not expired | On |
| `grace` | Expired less than seven days ago | Still on, with a warning in the log every hour |

The engine checks the clock every hour. An active license past its expiry moves
to `grace`, and grace that ends moves the install to `free`, both without a
restart. The log also warns 30, 14, 7, 3 and 1 days before expiry.

In every state the free tier keeps running. A missing or expired license never
takes a free feature away, and a paid feature that stops keeps its data. Past a
free ceiling after a downgrade, everything you hold stays, and only the next
object is refused. Renew before grace ends and the paid features carry on
without a gap.

## Choose which features start

A feature runs when all three hold:

| Condition | Set by | Meaning |
|---|---|---|
| Included | The engine image | The published image includes every feature. |
| Licensed | `LYEVE_LICENSE_KEY` | The feature is free, or the license carries it. |
| Requested | `LYEVE_PLUGINS` | The feature is on your list. Empty means every licensed feature. |

`LYEVE_PLUGINS` is a comma-separated list of feature names, with whitespace
around each name trimmed and names matched exactly. Once set, only the listed
features start, free ones included, plus any licensed feature a listed one
depends on. It can narrow what runs but never widen it, so naming a feature your
license does not carry has no effect. Use it for a lean deployment with fewer
routes:

```bash
LYEVE_PLUGINS=apikey,multitenant,content,media,storage,schema,search
```

| Licensed? | In `LYEVE_PLUGINS`? | Result | Reason reported |
|---|---|---|---|
| Yes | Yes, or the list is empty | Running | none |
| Yes | No | Off | `granted but not requested via LYEVE_PLUGINS` |
| No | Yes | Off | `requested via LYEVE_PLUGINS but not granted by the capability set` |
| No | No | Off | `not granted by the capability set` |

A listed name the image does not include logs
`LYEVE_PLUGINS requested a plugin not compiled into this binary` at start and
reports `plugin not compiled into this build`, so a typo is easy to find.

## Check what is running

<div class="paths">
<div data-path="console">

**Operations > Plugins** lists every feature with its state and, for one that
is off, the reason, such as `not granted by the capability set`. Filter it by
category or by state. Admins and super admins see it. **Settings > License**
shows the plan, its state, the expiry and any license problem.

</div>
<div data-path="api">

Three routes answer:

```bash
curl http://localhost:3001/api/admin/entitlements \
  -H "Authorization: Bearer $TOKEN"
```

`GET /api/admin/entitlements` takes the `admin` or `super_admin` role and reports
the license in force. A free install answers:

```json
{
  "plan": "free",
  "plan_label": "Free",
  "state": "free",
  "features": ["analytics", "apikey", "bulk-import", "cache", "cache-redis", "..."],
  "tenant_quota": 1,
  "withheld": [],
  "caps": {"admin.seats": 3},
  "license_module": true
}
```

The other two, `GET /api/admin/plugins/status` and
`GET /api/admin/plugins/running`, are described after the fields below.

</div>
</div>

<details>
<summary>Entitlement fields</summary>

| Field | Meaning |
|---|---|
| `plan`, `plan_label` | The plan, and the label the console shows. |
| `state` | `free`, `active` or `grace`. |
| `features` | Every name the install may run, sorted: the license's names, the free features and the free capabilities. |
| `tenant_quota` | How many tenants the install may hold. `0` means unlimited. |
| `caps` | Each ceiling the license decides. `0` means unlimited. |
| `withheld` | Features a super admin withheld from the caller's tenant. See [Tenants](https://lyeve.com/docs/features/tenants/). |
| `license_source` | `token`, `key` or `stored_key`, when a license is set. |
| `expires_at`, `grace_ends_at` | When the license expires, and when grace ends while in grace. |
| `license_error` | Why the last key exchange failed. |
| `license_module` | Whether this build can verify a license. |

The answer never carries the token, the key, the license id or the install id.

</details>

`GET /api/admin/plugins/status` takes the `admin` or `super_admin` role and
returns one row per feature in the image: whether it is `compiled`, `entitled`,
`requested` and `active`, its `phase`, and for one that is off a `reason`. A
feature off for lack of a license also carries an `upgrade_url`, a path on your
own install that opens the license page.

<details>
<summary>A status row</summary>

```json
{
  "name": "graphql",
  "compiled": true,
  "entitled": false,
  "requested": false,
  "active": false,
  "phase": "registered",
  "reason": "not granted by the capability set",
  "upgrade_url": "/admin/settings/license?plugin=graphql",
  "manifest": {
    "label": "GraphQL",
    "description": "A GraphQL API generated from your content types, with subscriptions over WebSocket and a persisted-query allowlist.",
    "category": "delivery",
    "maturity": "stable"
  }
}
```

The top level also carries `compiled` and `entitled` lists, and a `requested`
list when `LYEVE_PLUGINS` is set. `manifest.category` is one of `content`,
`delivery`, `access`, `automation`, `insight`, `operations`, `compliance`, `ai`
or `platform`, and `maturity` is `stable` or `beta`. A running feature that
serves routes lists them under `routes`, each with `method`, `pattern` and the
`group` that may call it (`public`, `auth`, `admin` or `super_admin`).

</details>

`GET /api/admin/plugins/running` answers any signed-in role with names only:
`plugins` lists what runs for the caller's tenant and `withheld` what runs on the
install but is withheld from that tenant.

**In the log**, the license decision at start is on lines that begin with
`license:`:

| Line | Meaning |
|---|---|
| `license: no key set` | `LYEVE_LICENSE_KEY` is empty. The free tier runs. |
| `license: active` | The token verified. The line carries the plan and the feature count. |
| `license: key exchanged for a signed token` | A license key was exchanged for a token. |
| `license: verification failed, checking grace cache` | The token did not verify, so the engine looks for a cached one in grace. |
| `license: running on offline grace` | A cached token is in its grace period. |
| `license: no valid token` | Nothing verified. The free tier runs. |

## Settings

| Variable | What it does | Default |
|---|---|---|
| `LYEVE_LICENSE_KEY` | The signed token or the license key. Empty runs the free tier. | empty |
| `LYEVE_LICENSE_SERVER_URL` | Where a license key is exchanged. Never contacted for a token. | `https://api.lyeve.com` |
| `LYEVE_LICENSE_CACHE_DIR` | Where the verified token and the install id are cached. | `/var/lib/lyeve` |
| `LYEVE_PLUGINS` | The features to start. Empty starts every licensed feature. | empty |

The [configuration reference](https://lyeve.com/docs/reference/configuration/) lists the rest.

## Related

- [Features](https://lyeve.com/docs/features/): every feature and what it does.
- [Verify offline](https://lyeve.com/docs/trust/verify-offline/): check that a token never calls
  home.
- [Company guide](https://lyeve.com/docs/guides/company/): licensing for evaluators.
- [Secure your instance](https://lyeve.com/docs/how-to/secure-your-instance/): narrowing what runs
  as a hardening step.
