# Authentication and setup

Provision the device runtime, approve Foxora’s browser-based CLI sign-in, and confirm the active account before running work.

- Prepare the runtime:




Terminal



```
foxora setup
```




- Start the device-authorization flow:




Terminal



```
foxora login
```




- Open the displayed Foxora URL, enter the short code, and approve the intended account.

- Return to the terminal and verify:




Terminal



```
foxora whoami
foxora doctor
```




The CLI never asks for your Foxora password in the terminal. It stores the approved session in the shared per-user Foxora data home and refreshes it when supported. Run `foxora logout` before switching accounts.




**Expected result:** `whoami` shows the expected email and `doctor` reports reachable runtime, authentication, and gateway layers.

Source: https://www.foxora.ai/docs/ko/cli/authentication-and-setup
