Licence
A Sefra deployment runs under a licence. The licence is a small signed text file that Sefra checks by itself. Sefra never contacts us: there is no activation, no check-in and no usage data sent anywhere.
Licence types
Section titled “Licence types”| Type | For | Term | Systems of record | When it expires |
|---|---|---|---|---|
| Evaluation | Trying Sefra. Needs no file | 30 days from the first start | 1 | Sefra stops accepting new requests |
| Trial | Extending an evaluation | As agreed, usually 30 days | 1 | Sefra stops accepting new requests |
| Pilot | A pilot in a test environment | 90 days at a time | 1, or as agreed | After 7 days, Sefra stops accepting new requests |
| Subscription | Production | 1 year | As your plan says | After 30 days, new bundles cannot be activated. Agents’ requests are never refused |
| Non-production | The staging or test deployment of a subscription | As the subscription | As the subscription | As the subscription |
Evaluation, trial and pilot licences are for test environments only. Each subscription covers one production deployment and two non-production deployments.
No type switches off a governance feature. Identity, approvals, compensation, kill switches, the console, audit export and replay work under every licence.
Install a licence file
Section titled “Install a licence file”Put the file where the service can read it and name its path in SEFRA_LICENSE_FILE:
docker run ... \
-v /etc/sefra/sefra.license:/etc/sefra/sefra.license:ro \
-e SEFRA_LICENSE_FILE=/etc/sefra/sefra.license \
...
Sefra reads the file when it starts and once a minute after that. To install a new licence, replace the file. No restart is needed.
Once Sefra has read a valid file it remembers the licence in its database. If the file later goes missing, for example after a redeployment, the licence still applies.
A trial or pilot file works on any deployment, so you can install it before the first start. A subscription file is issued for one deployment. To get one, run:
sefra license request
Send us the three lines it prints. We send the file back.
Check the licence
Section titled “Check the licence”sefra license status
state valid
type subscription (team)
customer Acme Ltd
license_id lic_5b0c7a1e9d2f4c68
expires 2027-11-30 (341 days)
after expiry from 2027-12-30: a bundle that was never active cannot be activated; governed writes continue
systems of record 2 (the active bundle names 1)
governed 1840 in 2026-12 of 10000 a month
deployment_id 3f0c6a52-7d1e-4b8a-9c55-1e2d3c4b5a69
file read, lic_5b0c7a1e9d2f4c68
sefra license status --json prints the same as JSON. Any person with a console or operator role may read it.
If the file line says IGNORED, Sefra could not use the file and says why: it is damaged, it was issued for another deployment, or it is not valid yet. The licence that was installed before still applies.
For your own alerting, Sefra exports the gauge sefra.license.expiry: the seconds until the licence expires, negative once it has.
What happens when a licence expires
Section titled “What happens when a licence expires”Sefra writes a warning to its log once a day from 30 days before the expiry, and sefra license status shows the days left.
A subscription or non-production licence never stops a request. For 30 days after the expiry nothing changes. After that, Sefra refuses to activate a bundle that was never active on the deployment, with the code LICENSE_EXPIRED. Everything else keeps working exactly as configured:
- agents’ requests are accepted, checked, approved and executed;
- compensations run;
- suspend, disable and pause work;
- any bundle that was active before can be activated again, so you can always roll back;
- the audit trail can be verified and exported.
Installing a renewed file lifts the freeze within a minute.
An evaluation, trial or pilot stops. When it expires (a pilot: 7 days later), Sefra refuses new requests from agents with the error LICENSE_EXPIRED, and refuses to activate new bundles. What was already accepted is finished: pending approvals can be decided, steps run and compensations complete. The audit trail stays readable and exportable. Installing a valid file lifts the stop within a minute.
A deployment that has ever had a subscription or non-production licence installed never stops, whatever happens to the file afterwards.
The systems-of-record limit
Section titled “The systems-of-record limit”A licence allows a number of systems of record. Sefra counts the distinct host names of the base_url values in your bundle’s connectors.yaml.
The limit is checked in one place only: when you activate a bundle that was never active on the deployment. If it names more systems than the licence allows, the activation is refused with the code LICENSE_LIMIT, and the bundle that was active stays active. A running deployment never meets this limit, and a roll-back to an earlier bundle is always allowed.
The volume band
Section titled “The volume band”A subscription names a number of governed executions a month. A governed execution is a request that Sefra accepted; a refused request is not counted.
The band is never enforced. When a month passes 80% of the band, and when it passes the band, sefra license status says so. Nothing is refused, and nothing is invoiced during the term: the band for the next term is agreed at renewal.
The usage report
Section titled “The usage report”Your agreement asks for a usage report each quarter and at renewal. You create it, read it, and send it yourself:
SEFRA_DATABASE_URL=... sefra usage report --out usage-2027-q1.json
The report holds governed executions per month and per day, the sequence number and hash of the newest audit event, and a checksum. It holds no request content, no agent or person, and no business data. It covers the licence’s term to date, so a report you missed is made up by the next one.
To check a report against your audit trail:
sefra usage verify --report usage-2027-q1.json
This verifies the audit chain and recomputes the report from it. --file checks against a file written by sefra audit export instead of the database.
The clock
Section titled “The clock”Sefra judges a licence by the host’s clock. If the clock is more than 24 hours behind the latest time in the audit trail, sefra license status says so and Sefra records it in the audit trail. Correct the host’s clock.