Offline licenses
The Telys license is a signed, offline-verifiable JWT — this page explains its claims, how telys.verify and telys runtime verify check it locally, and why it works with no network.
Your Telys license is a signed JSON Web Token (JWT), not a database row looked up over the network. It carries your tier and features, signed by the license authority. The runtime verifies the signature locally with an embedded public key, so licensing works offline.
What the license is
telys login downloads a license and caches it at $TELYS_HOME/login_license.jwt (default ~/.telys/login_license.jwt). The signed runtime carries its own license at ~/.telys/runtime/<platform>/license.jwt. Both are offline JWTs.
Verification checks these claims:
iss (issuer)
https://license.algenta.ai
Who signed the license
aud (audience)
telys-runtime / algenta-runtime
Which runtimes may accept it
ver
2
The supported license schema version
products.telys
{ tier, features }
Your Telys tier and the features it unlocks
exp + grace
timestamp + window
When it expires, plus a grace period before hard failure
How it is verified
Verification is strict, offline, and asymmetric. Telys embeds the authority's public key in the wheel (telys/_keys/telys_license_pub.pem); only the authority holds the private key, so a license cannot be forged or altered without breaking the signature. The check:
Pins the algorithm to RS256 (RSA + SHA-256) and rejects any
critheader; a different or downgraded algorithm is refused.Confirms the signature against the embedded (or overridden) public key.
Checks
iss,aud, andver == 2.Checks
expplus the grace window.Reads
products.telysfor yourtierandfeatures.
No step contacts a server. The cryptography dependency performs the signature math locally.
Verify a license yourself
The verification API is in telys.verify. To check a token you hold — for example, the one cached by login — read it and call verify_license with the current time:
verify_license(token, pubkey=None, *, now, issuer=None, audience=None, product="telys") returns the decoded claims, or raises on any failure (bad signature, wrong issuer or audience, unsupported version, or an expiry past the grace window). Passing now explicitly keeps verification deterministic.
The module also exposes its enforced defaults and the keys it uses:
Verify from the CLI
There is no standalone telys verify command. License and runtime verification happen together:
This checks the installed runtime's manifest signature and its bundled license.jwt offline, using the same rules as the Python API — the fastest way to confirm a machine is correctly licensed.
Enforcing a license when serving
A Telys server can require a valid license at boot. Pass the token and enable enforcement:
With --require-license, the server verifies a products.telys version-2 license offline before accepting connections, and refuses to start otherwise. Provide the token through $TELYS_LICENSE.
Overriding issuer, audience, and key
For air-gapped or self-managed deployments, override the expected values through the environment. Defaults are correct for the public service; override only if you know why.
TELYS_LICENSE_ISSUER
https://license.algenta.ai
Expected iss claim
TELYS_LICENSE_AUDIENCE
telys-runtime,algenta-runtime
Accepted aud values (comma-separated)
TELYS_LICENSE_PUBKEY / _FILE
embedded PEM
License verification key override
TELYS_LICENSE
—
License token for telys serve
Next steps
Next: Verify the runtime signature.
Last updated
Was this helpful?