Skip to main content
Use an OIDC principal when a CI system can issue short-lived identity tokens. Use an API key when it cannot.

Register the workload

The issuer, subject, and audience must match the workload token. The default audience is api.mountthor.com. Run mthr principal create with a credential that holds the principals:write and issuers:write scopes; a customer-admin browser session has them. The --scope values above are the scopes the workload’s own sessions receive, not the scopes required to register it.

Exchange a token

Set OIDC_TOKEN from the CI provider and TENANT_ID from mthr api request /v1/admin/account.
The CLI stores the short-lived tenant session. Use normal commands:
Exchange a new workload token when the session expires.

List and delete principals

Deleting a principal stops new sessions. Existing sessions keep their expiry.