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

# ana auth

The `ana auth` command group manages authentication for the Anaconda CLI. Use these commands to log in, log out, check your identity, and retrieve your API key. The `ana login`, `ana logout`, and `ana whoami` shortcuts run the matching `ana auth` commands.

## Commands

Command

Description

[`login`](https://anaconda.com/docs/cli-reference/anaconda-cli/commands/login)

Log in through your browser or with an API key

[`logout`](https://anaconda.com/docs/cli-reference/anaconda-cli/commands/logout)

Remove stored authentication credentials

[`whoami`](https://anaconda.com/docs/cli-reference/anaconda-cli/commands/whoami)

Display the current signed-in user

[`api-key`](https://anaconda.com/docs/cli-reference/anaconda-cli/commands/api-key)

Print the stored API key to stdout

## Concepts

<dl>
  <dt>Domain</dt>

  <dd>Credentials are stored per Anaconda domain. ana uses `anaconda.com` unless you set the `ANA_DOMAIN` environment variable. For more information, see [Configure ana](https://anaconda.com/docs/cli-reference/anaconda-cli/commands#configure-ana).</dd>

  <dt>Credential storage</dt>

  <dd>API keys are stored in a keyring file at `~/.anaconda/keyring` by default. To use another location, set the `ANA_KEYRING_PATH` environment variable.</dd>

  <dt>Anaconda.org token</dt>

  <dd>Anaconda.org commands use a separate token, which [`ana org login`](https://anaconda.com/docs/cli-reference/anaconda-cli/commands/org-login) creates. For more information, see [Logging in](https://anaconda.com/docs/cli-reference/anaconda-cli/commands/org#logging-in).</dd>
</dl>

## Global options

Option

Description

`-h, --help`

Show help message
