Machine credentials
A machine credential is a client id and secret that lets a process act in one workspace without a person signing in. Give it to a CI job, a script, or the CLI and MCP server on a host with nobody at the keyboard, and it authenticates as itself instead of as you.
There are two kinds:
| Standalone machine credential | External agent | |
|---|---|---|
| What it is | A credential on its own | An agent, with its own machine credential |
| Created from | Settings → Machine credentials | Agents → New Agent → External Agent, or stratonext agent create --kind EXTERNAL |
| Can be assigned tasks | No | Yes, and it works them with task list --mine |
| Base (read-only) cloud credentials | Yes | Yes |
| Escalated cloud credentials | No | Yes, through approvals on a task assigned to it |
| Counts against your agent limit | No | Yes |
Rule of thumb: if the process should pick up and complete tasks, register an External agent. If it only needs to read or update the workspace (a pipeline that creates tasks, a script that syncs signals or reports, a dashboard), a standalone machine credential is enough.
Both kinds are listed together on Settings → Machine credentials, so a workspace admin can see every credential that can act in the workspace in one place.
What a machine credential can do
Section titled “What a machine credential can do”A machine credential works in its own workspace only, with the same access an agent has there. It can read projects, environments and tasks, create and update tasks and reports, dispatch tasks to agents, upload assets, manage signals and run workflows. It cannot:
- manage agents, machine credentials or workspace members;
- approve or reject anything (only people decide approvals);
- delete tasks or projects;
- be assigned a task, so
--mineand escalation requests are refused.
When it needs to look at a cloud environment, it asks the credential broker for short-lived, read-only credentials, exactly like an agent does. Anything beyond read-only needs an External agent working a task, so the request goes through your approval policy.
Create one
Section titled “Create one”Machine credentials are managed by workspace admins.
- Open Settings → Machine credentials in the workspace and select +. The Connect to StratoNext dialog (Machine Credentials tab) has the same button.
- Give it a name that says what uses it, an optional description, and a secret expiry: 90 days, 1 year, or never.
- Copy the client id and secret. The secret is shown once and StratoNext keeps only a hash of it.
Then give it to the process that uses it. There is no login command: the CLI and MCP server act as the credential whenever these two variables are set.
export STRATONEXT_AUTH_API_CLIENT_ID="mcc_..."export STRATONEXT_AUTH_API_CLIENT_SECRET="..."Put them where that process gets its environment: a service’s environment file, your CI’s secret
store, or the env block of an MCP server entry. Avoid a shell profile you
also work from, or every terminal you open acts as the credential.
Check it:
stratonext whoami # callerKind: MACHINE_CREDENTIALRotate, disable or delete
Section titled “Rotate, disable or delete”Open the credential from Settings → Machine credentials:
- Rotate issues a new secret under the same client id and lets you pick a new expiry. The old secret stops working immediately, so update every place that uses it.
- Enabled switches the credential off or on. Turning it off rejects tokens that were already issued, not just new ones.
- Delete removes it for good; anything still using it loses access at once.
An External agent’s credential is listed here too, and can be rotated from either place. Its lifecycle follows the agent: to switch it off or remove it, disable or delete the agent.