For the complete documentation index, see llms.txt. This page is also available as Markdown.

Device key store

Choose where Algenta stores the per-device private key — Apple Secure Enclave, a Linux TPM, the OS keyring, or an encrypted file — and confirm the runtime is healthy with runtime doctor.

Every machine that runs the Algenta runtime holds a per-device signing key. It is the machine's cryptographic identity: the license records the key's public thumbprint, and renewal proves possession by signing a server nonce. The private key never leaves the machine. Where that private key is stored is selectable, so you can pin it to hardware on a laptop and to a deterministic encrypted file on a headless server.

You pick the store with ALGENTA_DEVICE_KEY_STORE, then restart the Algenta deployment and confirm the integrated runtime is healthy.

These are runtime-side settings — environment variables set on the machine that runs the engine, not values sent over the API. Set them in that host's shell, .env, or orchestrator before the runtime starts. See Configuration reference.

Choose a backend

ALGENTA_DEVICE_KEY_STORE accepts auto (the default), secure_enclave, tpm, keyring, or file. auto uses the OS keyring when a working keychain session is available and otherwise falls back to the encrypted file; the hardware backends (secure_enclave / tpm) are opt-in and never selected automatically, which keeps a device's identity stable. Force a value when you want a specific guarantee or a deterministic path for headless and CI hosts.

Value
Where the private key lives
Best for

auto (default)

OS keyring when available, otherwise the encrypted file

Any host — prefers the keyring, falls back to a file

secure_enclave

Apple Secure Enclave (macOS hardware)

macOS machines with a Secure Enclave

tpm

TPM 2.0 chip (Linux hardware)

Linux servers with a TPM

keyring

OS keychain (macOS Keychain, Linux Secret Service, Windows Credential Manager)

Desktops with a logged-in keychain session

file

Encrypted file in the runtime dir (device_key.enc, mode 0600)

Headless servers, containers, CI — deterministic and hermetic

The encrypted-file store is bound to the machine: the file is encrypted with a key derived from the host's raw machine id, which is never transmitted. A key file copied to another machine will not decrypt there, so it is regenerated. The runtime directory defaults to ~/.algenta/runtime and can be relocated with ALGENTA_RUNTIME_DIR — keep that directory persistent so the key survives restarts.

Set the backend and verify

1

Select a store on the engine host

Set ALGENTA_DEVICE_KEY_STORE (and, for the TPM path, its two companions) in the environment of the machine that runs the runtime.

export ALGENTA_DEVICE_KEY_STORE=secure_enclave

On macOS this stores the private key in the Apple Secure Enclave. The key material is generated in and never leaves the secure hardware; the runtime asks the enclave to sign renewal nonces.

export ALGENTA_DEVICE_KEY_STORE=tpm
export ALGENTA_TPM_ENABLE=1
export ALGENTA_TPM_TCTI="device:/dev/tpmrm0"

Requires a TPM 2.0 chip. ALGENTA_TPM_ENABLE=1 turns the TPM path on and ALGENTA_TPM_TCTI selects the TPM Command Transmission Interface — set it to your host's TPM device (for example the in-kernel resource manager device:/dev/tpmrm0).

export ALGENTA_DEVICE_KEY_STORE=keyring

Stores the key in the OS keychain — macOS Keychain, Linux Secret Service (GNOME Keyring / KWallet), or Windows Credential Manager. Requires the optional keyring package and a working backend session; a headless host with no keychain has none, so use file there instead.

export ALGENTA_DEVICE_KEY_STORE=file

Writes an encrypted device_key.enc (mode 0600) under the runtime directory. This is the deterministic, hermetic choice for servers, containers, and CI — no keychain session or hardware required.

2

Restart Algenta and confirm the runtime

Restart the Algenta deployment so it reads the new environment, then run the bundled doctor in that deployment. The runtime generates and persists the device key in the selected backend on first use, and the doctor confirms the runtime is loaded, verified, and licensed.

algenta runtime doctor

It reports the runtime source and mode, whether the native runtime is loaded and verified, the license state, and an overall status:

algenta runtime doctor
  runtime source:  bundled runtime
  mode:            resident-worker
  path:            /opt/algenta/runtime/algenta_runtime_worker
  platform tag:    manylinux_2_28_x86_64
  package version: 1.0.0
  abi (expected):  1
  abi (native):    1
  loaded:          True
  verified:        True
  fallback:        denied
  tcp listeners:   none
  license:         valid (tier=pro, exp=1788645600)
  status:          READY

Next steps

Last updated

Was this helpful?