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

# Auth

> Manage authentication

> [!TIP]
>
> Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.

Login, logout, and check authentication status.

## `notte auth login`

Log in to Notte from any machine.

The CLI prints a link and a code. Open the link in a browser on any device, check that the code matches, choose a workspace and approve. The CLI then receives a new API key named after this machine ("CLI · \<host> · \<date>"), which you can revoke from the console's API keys page or with notte logout.

Nothing listens on this machine, so this also works over SSH, in containers and in sandboxes.

To store a key you already have instead, pipe it in:

```bash theme={null}
echo "$NOTTE_API_KEY" | notte login --with-token
```

The API key is stored in your system credential store: the macOS Keychain, the Windows Credential Manager, or a Secret Service, KWallet or pass on Linux. Without one (headless hosts, containers), it goes to an encrypted file in the config directory whose password is fixed, so it is protected no better than a file only your user can read.

| Flag | Description |
| - | - |
| `--no-browser` | Print the link without trying to open a browser |
| `--with-token` | Read an existing API key from standard input instead of logging in through the console |

## `notte auth logout`

Remove the stored API key from this machine.

A key created by notte login is also revoked, so it stops working everywhere. A key you stored with `--with-token` is only removed from this machine.

## `notte auth status`

Show current authentication status


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.