# Plans and licence What is open source and what needs a licence key, how to add a key, and what a self-hosted instance gets without one. cetra is open core. The core is under the MIT licence. A small set of features lives in the `ee` directories under the Elastic License 2.0, and is compiled into the same binary. Those features stay locked until you add a licence key. ## What needs a licence key | Feature | What it does | |---|---| | `project_roles` | Project-level role overrides. See [Organizations and roles](https://cetra.sh/docs/platform/organizations/). | | `sso_enforcement` | Require single sign-on for listed email domains (`auth.enforce_sso_domains`). | | `org_sso` | Per-org single sign-on with verified domains. See [Single sign-on](https://cetra.sh/docs/platform/sso/). | | `saml` | SAML 2.0 for an org's own provider. See [Single sign-on](https://cetra.sh/docs/platform/sso/#set-up-saml). | | `scim` | Provision and deprovision the org's members from an identity provider over SCIM 2.0. See [SCIM provisioning](https://cetra.sh/docs/platform/scim/). | | `audit_log` | Read and export the audit log of the org and of the instance. See [Audit log](https://cetra.sh/docs/platform/audit-log/). Recording the log needs no feature. | Licence keys issued before SAML existed do not list `saml`; ask for a new key to use it. Everything else is core, including tracing, evaluation, datasets, experiments, alerts, the MCP server, deletion and retention. A licence also includes email support from the cetra team, with a reply within 2 business days. A locked feature answers with `403 plan_required`. ## Add a licence key You can add a key in two ways. A key set in the configuration wins over a key installed from the admin settings. ### From the admin settings 1. Open **Admin**, then **Settings**. 2. Paste the key under **Install a licence key**. 3. Click **Install**. The key applies at once. You do not restart cetra. cetra keeps the key in its database, so backups carry it. To renew, follow **Buy or renew a licence** on the licence card, then install the new key the same way. The new key replaces the installed one. ### In the configuration Set the key in the environment of `cetra serve`: ```bash export CETRA_LICENSE_KEY='' ``` Keep it in the same secret file as your other secrets. See [Configuration](https://cetra.sh/docs/self-hosting/configuration/). A key set here wins, and the licence card then shows no install form. Changing it needs a restart. A key is active before its expiry date, then in a grace period where features keep working and the server warns, then expired. If cetra refuses a key, it logs the reason and runs without a licence. When a licence lapses, restrictions you already set, such as role overrides and enforcement, keep applying. You can no longer set up new ones. ## Without a key A self-hosted instance without a key has every core feature and no limits. To limit what orgs get, set `entitlements.defaults.*` in the configuration, for example `max_projects`, `max_seats`, `max_alert_rules` or `data_access_days`. The [configuration reference](https://cetra.sh/docs/self-hosting/configuration-reference/) lists them. A limit that is not set means unlimited. When an org reaches a count limit, such as seats or alert rules, the request fails with `403 plan_limit`. The limit `max_annotation_queues` caps the [annotation queues](https://cetra.sh/docs/evaluation/annotation-queues/) of an org. The Free plan allows one and Starter three. The limit `audit_retention_days` sets how many days an org's [audit log](https://cetra.sh/docs/platform/audit-log/) records are kept. `0` keeps them forever. Without it, the instance's `audit.retention_days` applies. When the limit is lapsed, the org returns to the instance's value. Issue sources are a count limit too: an org may have a number of enabled issue sources in its active projects. The Free cloud plan allows one and Starter three; Pro and Enterprise have no limit. ## Usage The org's Plan page shows its monthly usage: spans and scores, bytes, and judge tokens and cost, by project and day. The same figures are available at `GET /api/v1/orgs/{org}/usage`. Owners and admins see a banner when the org has used 80% of its plan's included units this month, and again at 100%. It says whether new spans are being dropped or billed as overage. You can dismiss it until the next month or the next level, except when ingest has stopped. When a count limit blocks an action, the error names the plan's limit, for example "Free includes 1 enabled alert rule." If the instance sets `entitlements.upgrade_url`, the error has an **Upgrade for more** button. The banner and the Plan page link there too, with **Upgrade** on the free plan and **Manage plan** on a paid one. For prices and cloud plans, see the cetra website.