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

# Tokens

Access to your organization's channels requires specific tooling to enable authentication. These tools can be used to issue and/or set access tokens, and help distinguish yourself from other users in the Anaconda ecosystem.

There are two types of access tokens your organization can use:

* **Individual access tokens**: Your individual access token provides access to use packages from your organization's channels. Each user in an organization has a unique access token, unless the organization is using a [site token](https://anaconda.com/docs/anaconda-platform/admin/site-token.md) for access.

* **Site token**: A site token is an access token that is *used by the entire organization*. This one token can authenticate any organization member. Site tokens are provided to users by organization administrators.

  > [!NOTE]
  >
  > You do not need to be assigned a seat if your organization is using a site token.

## Issuing and setting your token

> [!WARNING]
>
> You must be [assigned a seat](https://anaconda.com/docs/anaconda-platform/admin/members.md#assigning-organization-seats) within your organization to issue yourself a token. If you have not been assigned a seat, speak with your organization administrator.

Your organization access token grants conda access to your organization's channels and packages. To issue and set your token, run the following command:

> [!NOTE]
>
> If you belong to more than one organization, you are prompted to select which organization to issue a token for.

```sh theme={null}
anaconda token install
```

> [!NOTE]
>
> If your organization is using a [site token](https://anaconda.com/docs/anaconda-platform/admin/site-token.md), your organization administrator will provide the token to you directly. Set it by running the following command:
>
> ```sh theme={null}
> anaconda token install <TOKEN>
> ```
>
> Comments
>
> Replace \<TOKEN> with the site token provided by your organization administrator.

## Reissuing a token

You can reissue a token using `anaconda-auth` or from your Package Security Manager (Cloud) organization.

> [!WARNING]
>
> Reissuing a token invalidates your previously issued token.

> [tab] anaconda-auth CLI
>
> 1. Open Anaconda Prompt (A command-line application included with Windows installations of Anaconda Distribution and Miniconda. Find it by searching 'Anaconda Prompt' in the Windows Start menu.) (Terminal on macOS/Linux).
> 2. Issue and set a new token:
>
>    ```sh theme={null}
>    anaconda token install
>    ```

> [tab] Package Security Manager (Cloud)
>
> 1. [Navigate to your Organizations page](https://anaconda.com/app/profile/organizations).
>
> 2. Under Org Management, select  **Token Access**.
>
> 3. Click  **Reissue token**. Your new token displays until copied. An automated email containing your new token is also delivered to the email address associated with your Anaconda account.
>
> > [!NOTE]
> >
> > After copying your new token, run `anaconda token install <TOKEN>` to set it.

> [!NOTE]
>
> All newly issued tokens are set to expire when your organization's subscription expires.

## Synchronizing your token

Tokens have a lifespan that is tied to your organization's subscription, and expire either 30 days after the organization's subscription has ended or immediately if the subscription has been cancelled.

*Renewing your subscription does not automatically extend the lifespan of your token.*

If you've renewed your subscription and want to retain your current token, synchronize your token to extend its lifespan to your organization's new subscription expiration date.

To synchronize your token:

1. Go to your organization's page.
2. Under Org Management, select  **Token Access**.
3. Click  **Sync token**.

## Viewing tokens

To view the tokens installed on your system, run the following command:

```sh theme={null}
anaconda token list
```
