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

# Auth

> Log in, switch teams, and manage stored API keys.

The `auth` command manages your CLI authentication. API keys are stored locally so you can switch between teams without re-entering credentials.

## `login`

Authenticate with your Loops API key. Pass a name of your choosing — you'll use it later with `auth use`, `auth logout`, and the `--team` flag to refer to this key. You'll be prompted to paste the key interactively.

```
loops auth login <name> [--flags]
```

### Flags

| Flag            | Description                           |
| --------------- | ------------------------------------- |
| `--skip-verify` | Save the API key without verifying it |

## `list`

List all stored API keys.

```bash theme={"dark"}
loops auth list
```

Pass `--pick` to filter the list interactively with [fzf](https://github.com/junegunn/fzf) and switch to the selected team (equivalent to `loops auth use <name>`). Requires `fzf` to be installed and on your `PATH`.

```bash theme={"dark"}
loops auth list --pick
```

### Flags

| Flag     | Description                                                                              |
| -------- | ---------------------------------------------------------------------------------------- |
| `--pick` | Interactively pick a team to switch to. Requires [fzf](https://github.com/junegunn/fzf). |

## `status`

Print the resolved configuration, including which API key is currently active.

```bash theme={"dark"}
loops auth status
```

## `use`

Set or clear the active API key. Pass the name of a stored key to switch to it.

```
loops auth use <name> [--flags]
```

To clear the active team selection:

```bash theme={"dark"}
loops auth use --clear
```

### Flags

| Flag      | Description           |
| --------- | --------------------- |
| `--clear` | Clear the active team |

## `logout`

Remove a stored API key.

```
loops auth logout <name>
```
