# Authentication and setup

Provision the runtime once, then authenticate the CLI with your Foxora account.

## Set up the runtime

```bash
foxora setup
```

This prepares the engine, Memory Den, and Bun runtime used by the CLI.

## Sign in

```bash
foxora login
```

Foxora opens the browser for authentication. After the browser flow completes, return to the terminal and verify the active account:

```bash
foxora whoami
```

## Sign out

```bash
foxora logout
```

If setup or sign-in fails, run `foxora doctor` and use its engine, runtime, and authentication results to identify the failing layer.
