Connect Your Curated Catalog to Cloudsmith
This guide covers how to connect your ActiveState Curated Catalog to a Cloudsmith repository. Once connected, developers in your organization can pull open source components directly from your secured catalog instead of the public internet, with Cloudsmith proxying and caching requests on demand.
Prerequisites
- A Cloudsmith account/organization with permission to create repositories.
- An ActiveState Curated Catalog with admin access to portal.activestate.com.
Setup steps
Most of the steps below are the same regardless of language; only the upstream type you add, the URL/credentials you use, and a couple of per-language notes change. Select your language below for the full walkthrough.
- Python
- JavaScript
- Perl
- R
- Rust
- C/C++
- Java
- .NET
- Log in to portal.activestate.com.
- Click Connect to Catalog from either the Curated Catalogs home page or the Catalog page for your Python catalog.
- Click Issue Registry Credentials if this is your first time creating credentials, or Rotate Password if you need new credentials.
- Save the username, password, and remote/proxy URL. You'll enter these in Cloudsmith's upstream configuration, not into anything developer-facing.
- This is the only time the password is available in plaintext. If you lose it, you'll need to reissue registry credentials.
- Log in to Cloudsmith and create a repository (Create a Repository) to hold the proxied/cached catalog content, or use an existing one.
- Open your repository, then Repository Settings → Upstreams, and add a new Python upstream.
- Fill in:
- Name: a descriptive name, for example
ActiveState Python Curated Catalog. - Upstream URL: the remote/proxy URL from step 4, with
/simple/.appended (for example,https://repo.activestate.com/<org-id>/pypi/simple/.). - Auth mode: Username and Password.
- Username: the username you saved in step 4 (
activestate-repos). - Secret: the password from step 4.
- Mode: Cache and Proxy.
- Name: a descriptive name, for example
The upstream URL must end in /. (slash-dot), not a plain trailing slash. Cloudsmith strips a plain trailing / from the URL on save, which breaks package resolution through this upstream. A trailing /. survives Cloudsmith's stripping and resolves correctly.
Equivalent API call:
curl -X POST \
-H "X-Api-Key: <your-cloudsmith-api-key>" \
-H "Content-Type: application/json" \
-d '{
"name": "ActiveState Python Curated Catalog",
"upstream_url": "https://repo.activestate.com/<org-id>/pypi/simple/.",
"auth_mode": "Username and Password",
"auth_username": "activestate-repos",
"auth_secret": "<access-token-from-step-4>",
"mode": "Cache and Proxy",
"is_active": true,
"priority": 1
}' \
"https://api.cloudsmith.io/v1/repos/<owner>/<repo>/upstream/python/"
Cloudsmith's Python upstream indexes the entire catalog in the background after creation, and individual packages aren't resolvable via pip install until that finishes. This can take a while for a catalog with thousands of packages. Confirm a specific package is live by requesting its page directly (https://dl.cloudsmith.io/basic/<owner>/<repo>/python/simple/<package>/) before relying on it in CI.
Fetch the Python interpreter
The Python interpreter itself (and its native libraries) isn't a PyPI package. It's served from your catalog's generic binaries path.
- Add a second Generic upstream on the same repository.
- Fill in:
- Name:
ActiveState Generic Curated Catalog. - Upstream URL:
https://repo.activestate.com/<org-id>/generic/binaries- this is a different URL than the remote/proxy URL you saved in step 4 (which points at the catalog's PyPI facet), not a path appended to it. - Upstream prefix: a unique path segment, for example
activestate-generic. - Auth mode: Username and Password.
- Username:
activestate-repos. - Secret: the password from step 4.
- Mode: Cache and Proxy.
- Name:
curl -L -u "<your-cloudsmith-username>:<your-cloudsmith-api-key>" \
"https://generic.cloudsmith.io/<owner>/<repo>/activestate-generic/python-3.12.12-linux-x86_64.tar.gz" \
-o python-3.12.12.tar.gz
This is an example file name - confirm the exact name in your own catalog first by browsing https://repo.activestate.com/<org-id>/generic/binaries/ directly (with your own token) rather than assuming this exact version string is present.
Configure pip to use Cloudsmith
Create or edit a pip.conf (pip.ini on Windows) at ~/.config/pip/pip.conf (Linux/macOS) or %APPDATA%\pip\pip.ini (Windows):
[global]
index-url = https://<your-cloudsmith-username>:<your-cloudsmith-api-key>@dl.cloudsmith.io/basic/<owner>/<repo>/python/simple/
Test package access
python3 -m venv .venv
source .venv/bin/activate
pip install --index-url "https://<your-cloudsmith-username>:<your-cloudsmith-api-key>@dl.cloudsmith.io/basic/<owner>/<repo>/python/simple/" requests
python3 -c "import requests; print(requests.__version__)"
- Log in to portal.activestate.com.
- Click Connect to Catalog from either the Curated Catalogs home page or the Catalog page for your JavaScript catalog.
- Click Issue Registry Credentials if this is your first time creating credentials, or Rotate Password if you need new credentials.
- Save the username, password, and remote/proxy URL.
- This is the only time the password is available in plaintext. If you lose it, you'll need to reissue registry credentials.
- Log in to Cloudsmith and create a repository (Create a Repository) to hold the proxied/cached catalog content, or use an existing one.
- Open your repository, then Repository Settings → Upstreams, and add a new npm upstream.
- Fill in:
- Name: a descriptive name, for example
ActiveState JavaScript Curated Catalog. - Upstream URL: the remote/proxy URL from step 4, as is.
- Auth mode: Username and Password.
- Username: the username you saved in step 4 (
activestate-repos). - Secret: the password from step 4.
- Mode: Cache and Proxy.
- Name: a descriptive name, for example
Equivalent API call:
curl -X POST \
-H "X-Api-Key: <your-cloudsmith-api-key>" \
-H "Content-Type: application/json" \
-d '{
"name": "ActiveState JavaScript Curated Catalog",
"upstream_url": "https://repo.activestate.com/<org-id>/npm",
"auth_mode": "Username and Password",
"auth_username": "activestate-repos",
"auth_secret": "<access-token-from-step-4>",
"mode": "Cache and Proxy",
"is_active": true,
"priority": 1
}' \
"https://api.cloudsmith.io/v1/repos/<owner>/<repo>/upstream/npm/"
Configure npm to use Cloudsmith
npm packages are served from a dedicated subdomain, npm.cloudsmith.io, not the dl.cloudsmith.io/basic/... path used by Python/Maven.
Create or edit an .npmrc at <project-root>/.npmrc (per-project) or $HOME/.npmrc (Linux/macOS) / %USERPROFILE%\.npmrc (Windows):
registry=https://npm.cloudsmith.io/<owner>/<repo>/
//npm.cloudsmith.io/<owner>/<repo>/:_authToken=<your-cloudsmith-api-key>
Test package access
npm init -y
npm install lodash
node -e "console.log(require('lodash/package.json').version)"
Cloudsmith does not currently support connecting to CPAN (Perl). This is a Cloudsmith limitation: Cloudsmith has no native CPAN upstream format at all. The generic-format fallback that works for other languages' shared binaries doesn't help here either, for a separate reason on the catalog side: it requires a browsable directory listing, and the catalog's CPAN facet only serves exact, fully-specified file paths. Use the JFrog Artifactory guide for Perl instead, or connect directly to the catalog without an artifact manager.
- Log in to portal.activestate.com.
- Click Connect to Catalog from either the Curated Catalogs home page or the Catalog page for your R catalog.
- Click Issue Registry Credentials if this is your first time creating credentials, or Rotate Password if you need new credentials.
- Save the username, password, and remote/proxy URL.
- This is the only time the password is available in plaintext. If you lose it, you'll need to reissue registry credentials.
- Log in to Cloudsmith and create a repository, or use an existing one.
CRAN package resolution does not currently work through Cloudsmith. This is a Cloudsmith limitation: its CRAN-upstream validator requires a browsable root directory, and the catalog's CRAN facet doesn't have one (only exact file paths like PACKAGES and specific package tarballs resolve). Use the JFrog Artifactory guide for R packages instead, or connect directly to the catalog without an artifact manager. The R interpreter itself still works through Cloudsmith; see below.
Fetch the R interpreter
The R interpreter and its native libraries (OpenSSL, PCRE2, ICU, OpenBLAS, etc.) are served from the catalog's generic binaries path, which works normally through Cloudsmith.
- Open your repository, then Repository Settings → Upstreams, and add a new Generic upstream.
- Fill in:
- Name:
ActiveState Generic Curated Catalog. - Upstream URL:
https://repo.activestate.com/<org-id>/generic/binaries- this is a different URL than the remote/proxy URL you saved in step 4 (which points at the catalog's CRAN facet), not a path appended to it. - Upstream prefix: a unique segment, for example
activestate-generic. - Auth mode: Username and Password.
- Username:
activestate-repos. - Secret: the password from step 4.
- Mode: Cache and Proxy.
- Name:
curl -L -u "<your-cloudsmith-username>:<your-cloudsmith-api-key>" \
"https://generic.cloudsmith.io/<owner>/<repo>/activestate-generic/R-4.4.3-linux-x86_64.tar.gz" \
-o R-4.4.3.tar.gz
This is an example file name - confirm the exact name in your own catalog first by browsing https://repo.activestate.com/<org-id>/generic/binaries/ directly (with your own token) rather than assuming this exact version string is present.
- Log in to portal.activestate.com.
- Click Connect to Catalog from either the Curated Catalogs home page or the Catalog page for your Rust catalog.
- Click Issue Registry Credentials if this is your first time creating credentials, or Rotate Password if you need new credentials.
- Save the username, password, and remote/proxy URL.
- This is the only time the password is available in plaintext. If you lose it, you'll need to reissue registry credentials.
- Log in to Cloudsmith and create a repository, or use an existing one.
Cargo package resolution does not currently work through Cloudsmith. This is a Cloudsmith limitation: its Cargo-upstream validator requires a browsable root directory, and the catalog's Cargo facet doesn't have one (only the sparse-index paths resolve). Connect directly to the catalog instead for Rust packages - see the Rust section of Connect Directly. The Rust toolchain itself (rustc/cargo) still works through Cloudsmith; see below.
Fetch the Rust toolchain
- Open your repository, then Repository Settings → Upstreams, and add a new Generic upstream.
- Fill in:
- Name:
ActiveState Generic Curated Catalog. - Upstream URL:
https://repo.activestate.com/<org-id>/generic/binaries- this is a different URL than the remote/proxy URL you saved in step 4 (which points at the catalog's Cargo facet), not a path appended to it. - Upstream prefix: a unique path segment, for example
activestate-generic. - Auth mode: Username and Password.
- Username:
activestate-repos. - Secret: the password from step 4.
- Mode: Cache and Proxy.
- Name:
curl -L -u "<your-cloudsmith-username>:<your-cloudsmith-api-key>" \
"https://generic.cloudsmith.io/<owner>/<repo>/activestate-generic/rust-binary-linux-1.91.0-linux-x86_64.tar.gz" \
-o rust-binary-linux.tar.gz
This is an example file name - confirm the exact name in your own catalog first by browsing https://repo.activestate.com/<org-id>/generic/binaries/ directly (with your own token) rather than assuming this exact version string is present.
- Log in to portal.activestate.com.
- Click Connect to Catalog from either the Curated Catalogs home page or the Catalog page for your C/C++ catalog.
- Click Issue Registry Credentials if this is your first time creating credentials, or Rotate Password if you need new credentials.
- Save the username, password, and remote/proxy URL. You'll use it both for the generic-binary upstream below and for pulling Conan components before mirroring them (next section).
- This is the only time the password is available in plaintext. If you lose it, you'll need to reissue registry credentials.
- Log in to Cloudsmith and create a repository, or use an existing one.
- Install Conan 2.x if you haven't already (
pip install conan). You'll need it for the mirroring step below.
Cloudsmith has no live proxy support for Conan. This is a Cloudsmith limitation, not a catalog issue. Unlike Python/npm/Maven/generic, Cloudsmith doesn't lazily fetch Conan components on a cache miss. Conan components must be mirrored into Cloudsmith's own Conan repository ahead of time, then developers pull from that Cloudsmith-hosted copy. Cloudsmith does support Conan as a hosting format (you can push to it), just not as a live upstream proxy.
Mirror Conan components from the catalog into Cloudsmith
This is a one-time (or scheduled/CI) administrative step, not something individual developers do:
# 1. Connect directly to the ActiveState C/C++ Curated Catalog (pull side)
conan remote add activestate https://repo.activestate.com/<org-id>/conan
conan remote login activestate activestate-repos --password <access-token-from-step-4>
# 2. Connect to Cloudsmith's own Conan repository (push side)
conan remote add cloudsmith https://conan.cloudsmith.io/<owner>/<repo>/
conan remote login cloudsmith <your-cloudsmith-username> --password <your-cloudsmith-api-key>
# 3. Pull + build the component from the catalog
conan install --requires="brotli/1.2.0" -r activestate --build="brotli/1.2.0"
# 4. Push the recipe + built binary into Cloudsmith
conan upload "brotli/1.2.0" -r cloudsmith --confirm
This mirrors only the named recipe, brotli/1.2.0. If it has dependencies of its own, step 3's conan install resolves them against the activestate remote fine, but step 4's conan upload only pushes brotli/1.2.0 - a developer pulling from Cloudsmith will fail on the first dependency that was never mirrored. List the full dependency graph first (conan graph info --requires="brotli/1.2.0" -r activestate) and mirror every ref it reports, or use an upload pattern broad enough to cover them (for example conan upload "*" -r cloudsmith --confirm after building everything you need locally).
Use the same compiler/toolchain for the mirror step as your downstream developers/CI will use to consume it. Conan's package IDs are keyed by the exact build settings, so a binary built with one compiler version is invisible to a consumer resolving with a different one.
Fetch the C/C++ toolchain
This lets you fetch gcc, cmake, ninja, and other native libraries through Cloudsmith, separately from the Conan mirroring above.
- Open your repository, then Repository Settings → Upstreams, and add a new Generic upstream.
- Fill in:
- Name:
ActiveState Generic Curated Catalog. - Upstream URL:
https://repo.activestate.com/<org-id>/generic/binaries- this is a different URL than the remote/proxy URL you saved in step 4 (which points at the catalog's Conan facet), not a path appended to it. - Upstream prefix: a unique path segment, for example
activestate-generic. - Auth mode: Username and Password.
- Username:
activestate-repos. - Secret: the password from step 4.
- Mode: Cache and Proxy.
- Name:
curl -L -u "<your-cloudsmith-username>:<your-cloudsmith-api-key>" \
"https://generic.cloudsmith.io/<owner>/<repo>/activestate-generic/gcc-15.1.0-linux-x86_64.tar.gz" \
-o gcc.tar.gz
This is an example file name - confirm the exact name in your own catalog first by browsing https://repo.activestate.com/<org-id>/generic/binaries/ directly (with your own token) rather than assuming this exact version string is present.
Configure Conan for developers
Once components are mirrored, developers connect to Cloudsmith's own Conan repository directly, never to the catalog:
conan remote add cloudsmith https://conan.cloudsmith.io/<owner>/<repo>/
conan remote login cloudsmith <your-cloudsmith-username> --password <your-cloudsmith-api-key>
conan profile detect # if you don't already have a local build profile
Test package access
conan list "brotli/1.2.0" -r cloudsmith
conan install --requires="brotli/1.2.0" -r cloudsmith
- Log in to portal.activestate.com.
- Click Connect to Catalog from either the Curated Catalogs home page or the Catalog page for your Java catalog.
- Click Issue Registry Credentials if this is your first time creating credentials, or Rotate Password if you need new credentials.
- Save the username, password, and remote/proxy URL.
- This is the only time the password is available in plaintext. If you lose it, you'll need to reissue registry credentials.
- Log in to Cloudsmith and create a repository, or use an existing one.
- Open your repository, then Repository Settings → Upstreams, and add a new Maven upstream.
- Fill in:
- Name: a descriptive name, for example
ActiveState Java Curated Catalog. - Upstream URL: the remote/proxy URL from step 4, with
/.appended (for example,https://repo.activestate.com/<org-id>/maven2/.). - Auth mode: Username and Password.
- Username:
activestate-repos. - Secret: the password from step 4.
- Mode: Cache and Proxy.
- Name: a descriptive name, for example
The upstream URL must end in /. (slash-dot), not a plain trailing slash. Without it, individual artifact requests can silently return the repository's generic landing page instead of the real JAR, rather than a clear error. Always confirm a real artifact downloads with the expected byte size, not just that the connection test passes.
Equivalent API call:
curl -X POST \
-H "X-Api-Key: <your-cloudsmith-api-key>" \
-H "Content-Type: application/json" \
-d '{
"name": "ActiveState Java Curated Catalog",
"upstream_url": "https://repo.activestate.com/<org-id>/maven2/.",
"auth_mode": "Username and Password",
"auth_username": "activestate-repos",
"auth_secret": "<access-token-from-step-4>",
"mode": "Cache and Proxy",
"is_active": true,
"priority": 1
}' \
"https://api.cloudsmith.io/v1/repos/<owner>/<repo>/upstream/maven/"
Configure Maven (settings.xml)
Create or edit a Maven settings.xml at ${user.home}/.m2/settings.xml:
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>activestate-cloudsmith</id>
<username><your-cloudsmith-username></username>
<password><your-cloudsmith-api-key></password>
</server>
</servers>
<mirrors>
<mirror>
<id>activestate-cloudsmith</id>
<mirrorOf>*</mirrorOf>
<url>https://dl.cloudsmith.io/basic/<owner>/<repo>/maven/</url>
</mirror>
</mirrors>
</settings>
Use your real Cloudsmith account username here, not the literal string token. The token:<api-key> convention works for raw downloads but those fetches won't register as cached packages in Cloudsmith's package list.
With <mirrorOf>*</mirrorOf>, Maven resolves its own plugins (for example maven-dependency-plugin, used by the test command below) through this repository too, with no fallback to Maven Central. If your catalog doesn't carry a plugin a build needs, that build fails with a plugin-resolution error rather than a missing-package error - make sure the Maven plugins your builds use are entitled in your catalog as well.
Test package access
mvn dependency:get -Dartifact=com.google.guava:guava:33.4.0-jre
Gradle
Gradle uses the same Cloudsmith-hosted Maven repository as Maven above. Keep the API key out of build.gradle (a project file usually committed to git) by putting it in ~/.gradle/gradle.properties instead:
activestate.cloudsmithUsername=<your-cloudsmith-username>
activestate.cloudsmithApiKey=<your-cloudsmith-api-key>
Then reference those properties from build.gradle:
repositories {
maven {
url = "https://dl.cloudsmith.io/basic/<owner>/<repo>/maven/"
credentials {
username = findProperty("activestate.cloudsmithUsername")
password = findProperty("activestate.cloudsmithApiKey")
}
}
}
- Log in to portal.activestate.com.
- Click Connect to Catalog from either the Curated Catalogs home page or the Catalog page for your .NET catalog.
- Click Issue Registry Credentials if this is your first time creating credentials, or Rotate Password if you need new credentials.
- Save the username, password, and remote/proxy URL.
- This is the only time the password is available in plaintext. If you lose it, you'll need to reissue registry credentials.
- Log in to Cloudsmith and create a repository, or use an existing one.
- Open your repository, then Repository Settings → Upstreams, and add a new NuGet upstream.
- Fill in:
- Name: a descriptive name, for example
ActiveState .NET Curated Catalog. - Upstream URL: the remote/proxy URL from step 4, as is.
- Auth mode: Username and Password.
- Username:
activestate-repos. - Secret: the password from step 4.
- Mode: Cache and Proxy.
- Name: a descriptive name, for example
Equivalent API call:
curl -X POST \
-H "X-Api-Key: <your-cloudsmith-api-key>" \
-H "Content-Type: application/json" \
-d '{
"name": "ActiveState .NET Curated Catalog",
"upstream_url": "https://repo.activestate.com/<org-id>/nuget",
"auth_mode": "Username and Password",
"auth_username": "activestate-repos",
"auth_secret": "<access-token-from-step-4>",
"mode": "Cache and Proxy",
"is_active": true,
"priority": 1
}' \
"https://api.cloudsmith.io/v1/repos/<owner>/<repo>/upstream/nuget/"
Configure NuGet (NuGet.Config)
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="activestate" value="https://nuget.cloudsmith.io/<owner>/<repo>/v3/index.json" />
</packageSources>
<packageSourceCredentials>
<activestate>
<add key="Username" value="<your-cloudsmith-username>" />
<add key="ClearTextPassword" value="<your-cloudsmith-api-key>" />
</activestate>
</packageSourceCredentials>
</configuration>
Test package access
dotnet new console -n TestApp && cd TestApp
dotnet add package morelinq --version 4.4.0
dotnet run
Support
For Cloudsmith-specific issues: Consult Cloudsmith documentation or support.
For ActiveState Curated Catalog issues, contact ActiveState support with:
- Package name experiencing the issue.
- Catalog/token configuration, with a screenshot and credentials redacted.
- Error messages from your package manager or Cloudsmith output.