Guides/

Offline and air-gapped license keys

How a signed license token lets a plugin keep working with no network, including air-gapped machines. Default lifetime 30 days, configurable from 1 to 365.

When online validation is not enough

A normal license check calls Licensr. That fails on a machine with no internet, and it is a poor fit for a studio network that is air-gapped. Offline tokens cover that case. You do not need them for a product that can reach the internet on each launch.

What a token is

While the machine is online, your product asks Licensr for a signed token. The token is an EdDSA JWT. After that, the product verifies the signature locally, with no network call. The public keys come from a per-product JWKS URL, which needs no API key. Download that once and cache it.

The token repeats the facts a validate call would return: whether the license is valid, the entitlement, feature flags, and the expiry. It is also issued for a license on perpetual fallback, so a reduced mode can keep working offline.

The steps and the response fields are in the offline token docs.

How long it lasts

The default lifetime is 30 days. You can set it on the product to anywhere from 1 to 365 days. The token expires at the earlier of that lifetime and the license expiry. A license on perpetual fallback gets the full lifetime, so a reduced mode can keep working offline. A longer token is more convenient and slower to revoke, because a signed token cannot be revoked until it expires.

Call validate, or ask for a fresh token, whenever the machine is online. Validate is the live check and the one that sees a revocation. A token does not.

Which SDKs verify locally

  • JavaScript and TypeScript: verifyOfflineToken, plus a token store.
  • C#: built-in verify and a token store.
  • Go: VerifyOfflineToken and a token store that saves to disk.
  • C++: can mint a token and store it. Local verify is not in the SDK yet, so a C++ product that must verify with no network still needs its own EdDSA check, or a later SDK release.

A build you ship should refuse a token whose livemode is false. Test tokens are signed with the same key. The SDKs refuse them unless you allow test tokens, which you do only in a test build.

Air-gapped machines

An air-gapped machine cannot call Licensr at all, including the first time. Mint the token on a machine that is online, carry the token and the cached JWKS across, and verify on the isolated machine. Plan the lifetime for how long that machine will go without a new token. There is no relay node and no offline activation: the key still has to be issued online first.

Questions

How long does an offline token last?

30 days by default. You can set the product to any lifetime from 1 to 365 days. The token also ends early if the license itself expires sooner. A license on perpetual fallback gets the full lifetime.

Can I revoke an offline token immediately?

No. A signed token stays valid until it expires. Keep the lifetime short if you need revocations to take effect quickly, and validate online when you can.

Does the C++ SDK verify tokens offline?

Not yet. The C++ SDK can request a token and store it. Local verification is available in the JavaScript, C#, and Go SDKs.