Create and Manage Registration Tokens
Generate registration tokens that let new cnspec agents register with a Mondoo space, and revoke the ones you no longer need.
A registration token lets a new cnspec agent register itself with a Mondoo space. You pass the token to cnspec login (or to the install script), and cnspec exchanges it for its own service account credentials. The token itself isn't a long-term credential: after an agent registers, it uses the service account it received.
To register cnspec on a server or workstation, read Register cnspec with Mondoo Platform. Registration tokens belong to a space.
To generate registration tokens, you need the Editor or Admin role, or the Agent Manager or Registration Token Creator permission. To revoke them, you need Editor, Admin, Agent Manager, or Registration Token Manager.
Generate a registration token
-
Navigate to the space.
-
In the left navigation, select Settings, then Registration Tokens.
-
Select GENERATE TOKEN. The Generate a New Registration Token dialog opens.

-
In the Description box, describe what the token is for, so you and your teammates can recognize it later.
-
In the Token expires in list, choose how long the token can register new agents: 10 Minutes, 30 Minutes, 1 Hour, 8 Hours, 24 Hours, 1 Week, or Non-Expiring. If you choose less than 24 hours, the dialog notes that the token won't appear in the list of tokens.
-
Select GENERATE REGISTRATION TOKEN.
-
Copy the token. You won't be able to see it again.
-
Select FINALIZE to close the dialog.
Prefer short expirations for one-off registrations. Use a longer expiration only for automation that registers agents over time, such as a golden image or an autoscaling group.
View registration tokens
The Registration Tokens page lists each token's description and Key ID, who created it, when it was created, when it expires, and its status (Active, Expired, or Revoked). To sort the list by status, select the Status column header. The page lists only tokens with an expiration of 24 hours or longer; shorter-lived tokens never appear in the list.
To copy the list or export it as CSV, JSON, or XLSX, open the ⋮ menu next to the search box.

Revoke a registration token
Revoking a token stops it from registering new agents. Agents that already registered with it keep working, because they use their own service account credentials.
-
Navigate to the space.
-
In the left navigation, select Settings, then Registration Tokens.
-
Select the token's Active status, then select Revoke and confirm.
To revoke several tokens at once, select the checkbox next to each one and select Revoke in the bar that appears.
Next steps
- Register cnspec: use the token to register cnspec with the space.
- Automate cnspec Deployment: register many hosts with Ansible, Chef Infra, or cloud-init.
Last updated on
Keyless Access (WIF)
Use workload identity federation (WIF) to give external workloads secure, keyless access to Mondoo at the space, organization, or platform level. WIF eliminates the need for stored credentials by letting apps, services, and automation authenticate through trusted identity providers.
Integration Credentials
See, test, rotate, rename, and delete the third-party secrets that Mondoo integrations use to connect to other services.