> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniac.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Log in

> Authenticate the uniac CLI.

```bash theme={null}
uniac auth login
```

The CLI opens a browser to complete the sign-in flow and writes a long-lived JWT to `~/.uniac/auth.json` (mode 0600). Keep that file private — anyone with it can deploy on your behalf.

## Headless machines

```bash theme={null}
uniac auth login --no-browser
```

The CLI prints the URL; open it on another device, complete sign-in, and paste the returned token.

## Inspect or log out

```bash theme={null}
uniac auth status     # whoami + token expiry
uniac auth token      # print the bearer token (for scripts)
uniac auth logout     # delete ~/.uniac/auth.json
```
