# straza enroll

Sign in through your browser and enroll this machine with the background service (--use-device-code: sign in with a code, --headless: an AI agent)


```
straza enroll [flags]
```

## Options

```
      --headless          enroll an AI agent or a service account with no browser: with the key straza keygen made, or with the client secret at your identity provider that an administrator gave the Straza background service. Its sessions carry no device
      --server string     strazad base URL
      --use-device-code   sign in with a code that you confirm in a browser on another device, for a machine with no display. Your Straza admin can turn this off
      --user string       the username the agent's key is registered under (headless; default: the name straza keygen stored)
```

## See also

* [straza](https://docs.straza.ai/reference/cli/straza/index.md): Straza client: enroll this machine, wire the hooks and decide each tool call



