License Activation
Online activation
Section titled “Online activation”codegen license activate <your-license-key># License activated. Tier: Professional. Machine: hostname.This stores a cryptographically signed token at ~/.config/codegen/license.token (Linux/macOS) or %APPDATA%\codegen\license.token (Windows). All subsequent verification is local, no internet access required after activation.
Offline activation
Section titled “Offline activation”For machines without internet access:
-
On a connected machine, generate a machine fingerprint file from the air-gapped machine’s identifier:
Terminal window codegen license fingerprint --machine-id <id> > fingerprint.json -
Submit
fingerprint.jsonto the license portal to receive atoken.jsonfile. -
On the air-gapped machine, install the token:
Terminal window codegen license install token.json
Token format
Section titled “Token format”License tokens are Ed25519-signed JSON objects. The engine verifies the signature against the embedded public key at startup, no network call, no server round-trip.
The token contains:
- Licensed tier
- Expiry (if applicable, perpetual licenses have no expiry field)
- Machine binding (optional, some licenses are machine-bound, others are floating)
Revoking a license
Section titled “Revoking a license”codegen license deactivateThis deletes the local token. The license seat becomes available for activation on another machine (subject to seat limits).
Team license management
Section titled “Team license management”Team licenses are managed via the team dashboard. Seat assignment, revocation, and audit logs are available there. Individual team members activate with the same codegen license activate <key> command using the team key.
- Activation stores a signed token locally. All verification after activation is offline.
- Offline/air-gapped activation uses a fingerprint-exchange flow, no continuous internet access needed.
- Tokens are Ed25519-signed against an embedded public key, no server round-trip at runtime.
codegen license deactivatereleases the seat for use on another machine.