main-x is a new, Anaconda-hosted authenticated that provides thousands of additional conda packages built by Anaconda for users who have a registered account. It is designed to be used alongside Anaconda’s main channel, not replace it. In other words, main-x “extends” main.
Setting up main-x
If you are using Package Security Manager (On-prem), follow the separate access instructions below.
Before you begin
You need conda, the Anaconda CLI, and an Anaconda account. Open Anaconda Prompt (Terminal on macOS/Linux), then installanaconda-auth:
main-x for you.
The examples below show the standard channel addresses. With some paid subscriptions, the addresses for
main, msys2, and r start with https://repo.anaconda.cloud/repo/ instead. That’s expected, so don’t change them.- Set up using Anaconda CLI
- Set up using conda
Enable the main-x channel
-
Log in to your Anaconda account:
-
Enable the
main-xchannel:This addsmain-xto the channels conda uses by default.
Verify the channel is working
-
Confirm that your default channels are configured:
Your return should look similar to this:
-
Install a package from
main-xto confirm everything is working:Browse packages onmain-xat https://anaconda.org/channels/main-x.
Accessing main-x for Package Security Manager (On-prem)
Ask your administrator to mirror https://repo.anaconda.cloud/repo/main-x into your Package Security Manager instance to provide access to main-x for your organization.
Add the mirrored channel to the default_channels: section of your .condarc file, alongside your organization’s other channels. Don’t remove existing entries, such as your organization’s mirror of main, as main-x packages often need packages from main. Use only channels from your Package Security Manager instance, not the public channel addresses shown elsewhere on this page. If your file has no default_channels: section, ask your administrator which channels to list.
The mirrored channel’s address looks like this:
If you have a channel alias set for your Package Security Manager instance, you can use just the channel name instead of the full URL in your
default_channels list. For more information, see Using conda with Package Security Manager.Known limitations
main-xincludes thousands of packages (pure Python only) that extend what’s available in themainchannel.main-xdoes not include every package in the PyPI or conda-forge catalog.- Service accounts for accessing the
main-xchannel are not available. Customers needing non-interactive auth for pipelines can refer to our API Keys and tokens page for guidance on how to use those options withmain-x. - Some packages exist in both the
main-xandmainchannels. Users withchannel_priority: strictmight encounter a problem where conda will not install a preferred package frommain-xif the same package exists in a higher-priority channel. Users withchannel_priority: flexible(the default) might also be affected if the order of their channels doesn’t reflect their preferred priority. See Troubleshooting if you experience this.
Support
Package requests
If you need a package that is not inmain-x, create a post on Anaconda’s Feedback page on the Packages board. Include the following:
- The package name and version you need
- Your operating system and platform (for example, Windows 11, macOS Sonoma on Apple Silicon, Ubuntu 22.04)
- (Optional) A description of your use case
Technical support
For issues, bugs, or questions aboutmain-x, submit a support request. Include the following:
- A description of the issue or question
- The command(s) you ran and the full error message (if applicable)
- Your operating system and platform
- Your conda version
How do I find my conda version?
How do I find my conda version?
Open (Terminal on macOS/Linux) and run the following: