Skip to main content


mondoo agents generate-credentials​

generates a service credentials for an agent in your space


Generates new service credentials for your agent. The new agent can use the private key for further communication.

NOTE: By default, agents do not have the permission to generate credentials for new agents. You'll need to elevate permissions to Gateway Agent via the Mondoo dashboard.

Generates a new service credential:

$ mondoo agents generate-credentials

Pipe the token into a yaml file:

$ mondoo agents generate-credentials -o yaml > agent-creds.json

Pipe the token into a json file:

$ mondoo agents generate-credentials -o json > agent-creds.json
mondoo agents generate-credentials [flags]


  -h, --help            help for generate-credentials
-o, --output string Output format

Options inherited from parent commands​

      --config string      config file (default is $HOME/.config/mondoo/mondoo.yml)
--log-level string set log-level: error, warn, info, debug, trace (default "info")
-v, --verbose verbose output