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

## Usage

```bash theme={null}
ana auth whoami [OPTIONS]
```

`ana whoami` is a shortcut for this command and accepts the same options.

## Description

Displays information about the Anaconda account you're logged in to. The output has three sections:

* **Account**: Your name, username, and email address
* **Subscriptions**: Your subscriptions and their expiration dates
* **Token**: Your API key, partially masked, and the location of the keyring where it's stored

If you aren't logged in, ana prompts you to log in first. If your saved API key has been revoked, the command fails with an `Authorization failed` error. To fix it, run `ana login --force`.

To see the Anaconda.org user for your Anaconda.org token, run [`ana org whoami`](https://anaconda.com/docs/cli-reference/anaconda-cli/commands/org-whoami) instead.

## Options

Option

Description

`--json`

Display the account information as JSON

`-h, --help`

Show help for this command

## Examples

**Check the current user**

```bash theme={null}
ana auth whoami
```

**Display account information as JSON**

```bash theme={null}
ana auth whoami --json
```
