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

export const Comments = ({children}) => {
  return <div class="my-4 px-5 py-4 overflow-hidden rounded-2xl flex gap-3 border border-zinc-500/20 bg-zinc-50/50 dark:border-zinc-500/30 dark:bg-zinc-500/10" data-callout-type="comments">
      <div class="w-4">
        <svg width="14" height="14" viewBox="0 0 640 640" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" aria-label="Comments">
            <path d="M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM280 400C266.7 400 256 410.7 256 424C256 437.3 266.7 448 280 448L360 448C373.3 448 384 437.3 384 424C384 410.7 373.3 400 360 400L352 400L352 312C352 298.7 341.3 288 328 288L280 288C266.7 288 256 298.7 256 312C256 325.3 266.7 336 280 336L304 336L304 400L280 400zM320 256C337.7 256 352 241.7 352 224C352 206.3 337.7 192 320 192C302.3 192 288 206.3 288 224C288 241.7 302.3 256 320 256z" />
        </svg>
      </div>
      <div class="text-sm prose min-w-0 w-full">
        {children}
      </div>
    </div>;
};

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](/docs/anaconda-platform/admin/site-token) 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.
  </Note>

## Issuing and setting your token

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

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.
</Note>

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

<Note>
  If your organization is using a [site token](/docs/anaconda-platform/admin/site-token), 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.
  </Comments>
</Note>

## Reissuing a token

You can reissue a token using `anaconda-auth` or from your Anaconda.com organization.

<Warning>
  Reissuing a token invalidates your previously issued token.
</Warning>

<Tabs>
  <Tab title="anaconda-auth CLI">
    1. Open Anaconda Prompt (Terminal on macOS/Linux).
    2. Issue and set a new token:

       ```sh theme={null}
       anaconda token install
       ```
  </Tab>

  <Tab title="Anaconda.com">
    1. [Navigate to your Organizations page](https://anaconda.com/app/profile/organizations).
    2. Under Org Management, select <Icon icon="key" iconType="regular" /> **Token Access**.
    3. Click <Icon icon="key" iconType="solid" /> **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>
  </Tab>
</Tabs>

<Note>
  All newly issued tokens are set to expire when your organization's subscription expires.
</Note>

## 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 <Icon icon="key" iconType="regular" /> **Token Access**.
3. Click <Icon icon="arrows-rotate" iconType="solid" /> **Sync token**.

## Viewing tokens

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

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