Skip to content

Configuring the CLI

The CLI requires both the domain to be set as well as an access token. CLI configuration is performed via the mdai config commands.

Usage: mdai config [options] [command]


  -h, --help       output usage information


  list             List current configuration
  domain [domain]  Configure domain (e.g., [view current if no argument supplied]
  token [token]    Configure access token [view current if no argument supplied]
  reset            Resets current configuration

Set your domain, for example: mdai config domain Note that domains will always be in the form *

The mdai CLI also requires an access token, which authenticates you as the user. To create a new token or select an existing token, navigate to the "Personal Access Tokens" tab on your user settings page at the specified domain (e.g., Then, set your access token, for example: mdai config token 6b0c9063d8ff2fd7e710981065248f5f.

Configuration Summary

  mdai config domain
  mdai config token MY_ACCESS_TOKEN