The licence
A self-hosted installation that your organisation runs needs a licence: a file MockHub signs, which says who it is for, how many accounts may exist, which features any plan can turn on, and from and until when. An installation MockHub manages for you under a service agreement can show a licence file but is not governed by one; Admin → Licence says Service agreement there.
What a licence says
Section titled “What a licence says”| Term on Admin → Licence | What it means |
|---|---|
| Customer | Who it was issued to |
| Licence | The licence’s identifier, which MockHub’s records name |
| Seats | How many licence seats, or accounts, may exist |
| Valid from, Expires | When its terms start and end |
| Grace ends | 30 days after it expires, the last day changes are allowed |
| Updates until | The last release date it entitles you to upgrade to. It never stops the release you run |
| API host | The API hostname it was issued for, or Any. A different hostname only adds a warning |
| Features | The features it grants, below |
Features
Section titled “Features”Every feature the licence leaves out is off on every plan and in every workspace of the installation, whatever the plan says:
| Feature | What it turns on |
|---|---|
| AI generation | Generating mocks and asking the assistant, once the operator has also turned AI generation on |
| Configuration as code | Exporting and applying a project’s configuration document |
| Custom domains | Serving projects on your own domains |
| Identity provider mocks | A project’s mock identity provider |
| OpenAPI | Importing OpenAPI contracts and checking requests and responses against them |
| Private endpoints | Access keys and source address allow-lists on projects |
| Upstream proxy | Forwarding to an upstream, and recording and replaying its traffic |
| Verification runs | Verifying an application against a mock dependency |
Everything else in MockHub is part of every licence. A licence that grants none of these says None beyond the core product.
Status
Section titled “Status”Admin → Licence shows the status as a tag, and ./mockhub licence status --json and the usage report name it by its value:
| Status | Tag | When | What works |
|---|---|---|---|
valid |
Valid | From Valid from until 30 days before Expires | Everything the terms grant |
expiring |
Expiring soon |
The last 30 days before Expires | Everything; ./mockhub status warns |
grace |
In grace period | For 30 days after Expires | Everything; ./mockhub status warns |
expired |
Expired | After Grace ends | Reading, signing in and the mocks; every change is refused |
missing |
Not installed | No licence has been installed, or the only one installed starts later | The same as expired |
invalid |
Not valid | The installed licence no longer verifies | The same as expired |
A licence stops verifying when its signature no longer matches its content, or when the installed release no longer trusts the key MockHub signed it with.
A renewal installed before its Valid from waits: Admin → Licence shows it as a Staged renewal, and its terms replace the current ones on that day, with nothing to do then.
Without a licence in force
Section titled “Without a licence in force”When the status is expired, missing or invalid, every change is refused with Licence required, whoever asks: members, instance administrators, tokens and AI assistants alike. What keeps working:
- Reading everything, and every project’s address, which answers with its mocks as they are under the last terms installed.
- Signing in and out, and account security and recovery.
- Checks and previews that change nothing, such as Try it and OpenAPI validation, and the dry runs of
mockhub pushand of reverting an AI assistant’s changes. - Deactivating a departing person’s account. Reactivating one is refused, since it takes a seat.
- Taking access away: revoking a personal or machine token, removing a member from a workspace or leaving one, and deleting an account.
- Installing a licence.
The operator’s mockhub command on the host is not refused: backups, restores and installing a licence keep working. A new installation is in this state until its first licence is installed; its first administrator is the one account it allows meanwhile.
Every account that is not deactivated takes a licence seat, whatever workspaces it belongs to and whatever its roles.
- New accounts take a seat: signing up, a first sign-in with GitHub or Google, an instance administrator creating an account, and the operator creating an administrator. Reactivating an account takes one too. When none is free, each is refused with Licence seats taken.
- Taking no seat: a pending invitation, joining another workspace, and a change of role. An Admin who invites someone when every seat is taken is warned that accepting will need a seat, and the invitation is still sent.
- Freeing a seat: deactivating an account, or deleting one.
- A licence with fewer seats than accounts locks nobody out. Admin → Licence shows how many accounts are over, and no account can be added or reactivated until enough are deactivated or a licence with more seats is installed.
The usage report
Section titled “The usage report”./mockhub licence report prints what a renewal or an audit under your contract needs, as JSON: when it was made, the release, the licence’s identifier, customer, seats and expiry, its status, the seats used, the workspaces and projects, and the requests of the last 30 days. MockHub never collects it: you send it. See Install and renew the licence.
Limits
Section titled “Limits”- The licence governs from inside the installation. Nothing phones home, and MockHub learns nothing about its use unless you send the report.
- An expired licence keeps its features. Mocks keep answering with what the last terms granted; they stop only being changeable.
- A replacement applies its terms at once, and they are never mixed with the old ones: features it leaves out turn off on every plan, and fewer seats stop new accounts. It removes no account and deletes nothing.