Skip to main content
API keys authenticate users and automated systems to access platform resources. You can include multiple scopes to define access permissions in API keys that you create, but you cannot grant access to resources that you do not have access to already.

Creating an API Key

  1. Sign in to Anaconda.
  2. Open the user dropdown menu and select Account Settings.
  3. Select the API Keys tab.
  4. Select Create API Key.
  5. Provide a unique name for your API key.
  6. Choose permission levels for the scopes your key should include. You can select one or both of the following:
    • User resources: Provides access to the platform’s user-level APIs. Include this scope if you need to interact programmatically with projects, data, or other assets associated with your account.
      This scope mirrors your platform permissions (except for any administrative controls).
    • Platform channels: Authenticates your local conda client or automated build systems so they can use channels you have access to within Anaconda Platform. Include this scope if you need to install packages from channels hosted on your instance.
  7. Set an expiration date from the dropdown. API keys have a maximum lifespan of one year.
    If you choose Custom, a calendar field appears. Use it to specify a date.
  8. Select Create API Key. Save your newly generated API key in a secure location.
    Alternatively, you can generate an API key by logging in at the command line using anaconda-auth login.

Using API Keys

If your conda client runs as part of an automated process, such as a CI/CD pipeline, or if you are using conda within Docker builds on your desktop, configure them to use your local API key (generated when you logged in using anaconda-auth) to authenticate conda using one of the following methods:
  1. Open Anaconda Prompt or Powershell (Terminal on macOS/Linux).
  2. Set your API key as an environment variable:
    for /f "usebackq delims=" %i in (`anaconda auth api-key`) do set ANACONDA_AUTH_API_KEY=%i
    
For API integrations, include the key in the authorization header:
Authorization: Bearer (anaconda auth api-key)
This lets automated workflows—such as data synchronization jobs or deployment pipelines—interact securely with the platform using the same permissions you hold.