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

# Private packages

> [!NOTE]
>
> Individual paid plans with private packages are a legacy offering from Anaconda.org that are no longer available. However, anyone who had private packages in the past still has the ability to have those hosted privately.

> [!TIP]
>
> Looking to distribute packages privately? [Private channels](https://anaconda.com/docs/anaconda-org/private-channels.md) let you create channels with collaborator-based access control. Logged in users can install packages you share using these private channels.

## Making packages private

By default, all packages uploaded to Anaconda.org are accessible to anyone who has access to the repository (Any storage location from which software or software assets, like packages, can be retrieved and installed on a local computer.).

To mark packages uploaded to your user channel (A location (URL or file path) in a repository where conda looks for packages.) on Anaconda.org as private:

1. From your dashboard, select the package.
2. Select **Manage**.
3. Navigate to the **Settings** tab.
4. Select **Admin** in the sidebar.
5. Select **Private**.

> [!NOTE]
>
> Other Anaconda.org users might access your private packages either with tokens or by logging in.

## Accessing private packages with tokens

To make your private packages accessible with tokens (A randomly generated string that proves your identity and permission to access resources like channels, packages, or APIs.), create an [access token](https://anaconda.com/docs/anaconda-org/admin-guide/tokens.md) that includes the following scope for Anaconda Client:

```sh theme={null}
conda:download
```

Or, on Anaconda.org in the access settings, select **Allow private downloads from conda repositories**.

### Using the token to access private packages

If you intend to install many packages from a private channel, you can include the channel in your `.condarc` file. This will include the token any time you search for packages on that channel. To add a user channel to your `.condarc` file from 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), run the following command:

```sh theme={null}
conda config --add channels https://conda.anaconda.org/t/<TOKEN>/<CHANNEL>
```

Comments

Replace \<TOKEN> with the provided token.\\

Replace \<CHANNEL> with a user channel.

You can also use the token to install packages without first adding the channel to your `.condarc` file by using the channel's full URL. In 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), run the following command:

```sh theme={null}
conda install --channel https://conda.anaconda.org/t/<TOKEN>/<CHANNEL> <PACKAGE>
```

Comments

Replace \<TOKEN> with the provided token.\\

Replace \<CHANNEL> with a user channel.\\

Replace \<PACKAGE> with the name of the package you want to install.

### Accessing a private package that has a label

To install a package from a channel using the token and label (Part of the URLs on Anaconda.org where conda looks for packages. Labels are searched only if you specify a label.) name:

```sh theme={null}
conda install --channel https://conda.anaconda.org/t/<TOKEN>/<CHANNEL>/label/<LABEL_NAME> <PACKAGE>
```

Comments

Replace \<TOKEN> with the provided token.\\

Replace \<CHANNEL> with a user channel.\\

Replace \<LABEL\_NAME> with the label name.\\

Replace \<PACKAGE> with the name of the package you want to install.

### Using the token to access private PyPI packages

Private PyPI packages can also be installed in the web UI:

```sh theme={null}
https://pypi.anaconda.org/t/<TOKEN>/<CHANNEL>
```

Comments

Replace \<TOKEN> with the provided token.\\

Replace \<CHANNEL> with a user channel.

## Accessing private packages as a registered user

To make your private packages available to users who have logged in:

1. Create an [organization](https://anaconda.com/docs/anaconda-org/admin-guide/organizations.md).
2. Create a group (which can be read-only) in that organization.
3. Add the preferred users to the group.
4. Upload the package to the organization, or transfer an existing package to the organization.

After you grant users access, other users can install your package using the web UI or Anaconda Client.

To install a package:

1. In a browser, navigate to the preferred channel.
2. 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) and run the following command:

   ```sh theme={null}
   conda install anaconda-client
   anaconda login
   conda install --channel https://conda.anaconda.org/<ORGANIZATION> <PACKAGE>
   ```

   Comments

   Replace \<ORGANIZATION> with the organization name.\\

   Replace \<PACKAGE> with the package name.

### Private channels

You can install a package from a private channel with a token (A randomly generated string that proves your identity and permission to access resources like channels, packages, or APIs.) and a [Label](https://anaconda.com/docs/anaconda-org/maintainer-guide/labels.md):

```sh theme={null}
conda install --channel https://conda.anaconda.org/t/<TOKEN>/<CHANNEL>/label/<LABEL_NAME> <PACKAGE>
```

Comments

Replace \<TOKEN> with the provided token.\\

Replace \<CHANNEL> with a user channel.\\

Replace \<LABEL\_NAME> with the label name.\\

Replace \<PACKAGE> with the name of the package you want to install.

Tokens are only required if the channel is private.

## Finding help for uploading packages

You can obtain a complete list of upload options, including:

* Package channel
* Label
* Availability to other users
* Metadata

To list the options, run the following in 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):

```sh theme={null}
anaconda upload -h
```
