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

# anaconda auth login

## Usage

```bash theme={null}
anaconda auth login [OPTIONS]
```

## Description

Opens the browser to complete OAuth authentication and store an API key in the configured keyring. If you are already authenticated, you are prompted to confirm before re-authenticating.

> [!NOTE]
>
> If the site is configured with `use_device_flow = true`, a device code flow is used instead of a browser redirect (useful for SSH sessions and headless servers).
>
> ***
>
> If you need to authenticate on a system without browser access, you can set the `ANACONDA_AUTH_API_KEY` environment variable. See [Non-interactive usage](https://anaconda.com/docs/cli-reference/anaconda-auth/getting-started.md#non-interactive-usage).

## Options

Option

Default

Description

`--force`

`--no-force`

Force a new login even if already authenticated

`--ssl-verify / --no-ssl-verify`

`--ssl-verify`

Enable or disable SSL verification

`--at <SITE>`

Target a specific Anaconda site (name or domain)

`-h, --help`

Show help for this command

## Examples

**Logging in**

```bash theme={null}
anaconda auth login
```

**Forcing a new login**

```bash theme={null}
anaconda auth login --force
```

> [!NOTE]
>
> If you're already logged in, you'll be prompted to confirm whether to force a new login. Using `--force` skips this prompt.
