> ## 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.

# Other commands

> Standalone Notte CLI commands

> [!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.

## `notte clear`

Clear all locally stored state including current session, viewer URL, and function. This does not affect credentials or settings.

## `notte health`

Check if the Notte API is healthy and responding.

## `notte 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 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 search <query>`

Search the web via the Notte search API.

Returns either a list of search results, or an LLM-generated answer with sources, depending on `--output-type`.

Examples:

```bash theme={null}
notte search "what is anthropic"
notte search what is anthropic
notte search "latest llm releases" --depth deep
notte search "what is anthropic" --output-type sourcedAnswer
```

| Flag | Description |
| - | - |
| `--depth <string>` | Search depth: standard, fast, or deep |
| `--output-type <string>` | Output type: searchResults, sourcedAnswer, or structured |

## `notte upgrade`

Upgrade the CLI to the latest release.

Uses Homebrew when the CLI was installed with Homebrew. Otherwise it re-runs the install script ([https://notte.cc/install-cli.sh](https://notte.cc/install-cli.sh)), replacing the binary that is running. On Windows it prints the manual steps instead.

## `notte version`

Print version information

## `notte whoami`

Show which API key and environment this CLI uses


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