Licensing
How a self-hosted installation activates its licence, checks in every hour and behaves when the licence lapses.
A self-hosted installation runs under a licence key issued by axonpush. The key
unlocks the runtime, sets your limits and is checked against the axonpush control
plane at https://control.axonpush.xyz (CONTROL_URL). The hosted service at
app.axonpush.xyz has no licence and none of this applies to it.
What the licence controls
A licence carries:
- a tier and an optional paid-through date;
- limits: monthly events, seats and hot retention days (any of them may be unlimited);
- feature switches, such as the compliance features. A feature the licence does not mention is on;
- the portable runtime entitlement, which the self-host executable needs to activate.
Self-hosted organisations have no cloud plan and no billing. The seat limit applies to organisation membership, and the retention limit replaces the default 30 days of hot (searchable) storage. The monthly event limit is reported as the usage limit.
Activation
Activation happens automatically when axonpush serve starts and no valid
entitlement is stored yet.
- The service derives its instance ID from the
installation-idfile in the state directory (inst_plus 24 characters). Keep the state directory and the ID stays the same across restarts, upgrades and host moves. - It calls
POST /v1/activateon the control plane with the licence key, instance ID,runtime: "portable",AWS_REGION, its version andGIT_SHAif set. - The control plane checks that the key is valid, not revoked and has the portable runtime entitlement, then returns a signed entitlement.
- The service verifies the Ed25519 signature with the public key built into the executable, checks that the entitlement names this instance, and stores it in PostgreSQL.
If activation fails (the control plane is unreachable, or the key is wrong), the
service still starts and logs licence activation failed; will retry on heartbeat.
Until an activation succeeds, the licence status is inactive and event ingest is
refused.
The self-host runtime is not bound to an AWS account. The AWS account you use for S3 and SES has nothing to do with the licence.
Losing the state directory gives the installation a new instance ID, which activates as a new instance. The control plane allows that but flags licences that exceed their instance allowance. Activating the same key on more instances than your allowance covers is visible to axonpush.
Heartbeat
Once an hour the service sends a heartbeat to POST /v1/heartbeat. The body is signed
with an HMAC of the licence key and contains only:
- the instance ID, version,
GIT_SHAandAWS_REGION; - a fixed health value (
{"health":"ok"}) and an event delta of zero; - acknowledgements for directives received in the previous heartbeat.
No organisation data, telemetry contents or user details are sent.
The response is a fresh entitlement, valid for 14 days. The service stores it and recomputes the licence status from its own clock between heartbeats, so a licence still moves through its states on schedule while the control plane is unreachable.
A heartbeat is rejected with clock skew too large when the host clock is more than
10 minutes off. Run NTP on the host.
The entitlement can carry directives (message, suspend, pin-version). The
runtime logs and acknowledges them. A suspension takes effect through the
entitlement itself. pin-version is not enforced, because the self-host runtime has
no updater.
Licence states
| Status | When | Effect |
|---|---|---|
active | Paid-through date more than the warning window away, or no paid-through date | Normal operation |
warning | Within the warning window before the paid-through date (default 7 days) | Normal operation |
grace | Past the paid-through date, inside the grace window (default 5 days) | Normal operation |
stopped | Past grace, suspended or revoked, the stored entitlement expired, or its signature or instance does not verify | Event ingest refused |
inactive | No entitlement stored yet | Event ingest refused |
The warning and grace windows come from the licence when it sets them.
When a licence lapses
When the status is stopped or inactive, every ingest path returns
402 Payment Required with
licence inactive: writes are paused until the licence is renewed:
- SDK events:
POST /eventandPOST /events/batch; - OTLP:
POST /v1/tracesandPOST /v1/logs; - Sentry envelope and store endpoints;
- workspace observations and identify calls.
Sentry responses also carry Retry-After: 3600 and an X-Sentry-Rate-Limits
header covering every category, so Sentry SDKs back off for an hour instead of
retrying. Your SDKs keep their own retry and buffering behaviour; axonpush does
not store refused events.
Everything already stored stays readable. The dashboard, API reads, MCP, exports of existing evidence and the evidence archive keep working, and nothing is deleted because a licence lapsed.
How quickly an installation stops depends on why:
- Not renewed: it stops when the grace window after the paid-through date ends.
- Suspended from the control plane: it stops at the next successful heartbeat, within an hour.
- Revoked, or the installation cannot reach the control plane: heartbeats fail and the last entitlement stays in force until it expires, at most 14 days after the last successful heartbeat.
The status is cached for up to 60 seconds, so a renewal takes effect within a minute of the next successful heartbeat. Heartbeats keep being scheduled every hour even after failures.
If your network blocks outbound HTTPS, allow control.axonpush.xyz. An installation
that never reaches it stays inactive, and one that loses access stops 14 days
later.
Checking the licence
GET /license needs no authentication and returns the verified, clock-evaluated
state:
curl -s https://axonpush.example.com/license{
"status": "active",
"edition": "selfhost",
"tier": "enterprise",
"expiresAt": "2027-06-30T00:00:00Z",
"message": "Renewal due in June"
}| Field | Meaning |
|---|---|
status | One of the states above. |
edition | selfhost for a licensed installation. The hosted service reports cloud with status inactive. |
tier | Licence tier. |
expiresAt | The paid-through date when set, otherwise when the stored entitlement expires. |
message | Operator message from axonpush, if any. |
The same status, tier and expiry appear in the license field of the capabilities
document.
axonpush doctor only reports whether LICENSE_KEY is set (configured (not validated)). It does not contact the control plane.
Troubleshooting
| Log line or response | Cause |
|---|---|
LICENSE_KEY is required for the licensed portable edition | serve refused to start without a key. |
control 403: portable runtime is not enabled for this licence | Ask axonpush to enable the portable runtime entitlement. |
control 401: unknown licence key or missing or malformed licence key | Check the key in the environment file. |
control 403: licence revoked | Contact axonpush. |
control 403: instance belongs to a different licence | The state directory was activated under another key. |
control 400: clock skew too large | Fix the host clock. |
entitlement does not match this installation | The stored entitlement was issued to another instance or runtime. |