Configure Your Package Manager

Point your package manager to this proxy to cache downloads and improve reliability.

This UI is hosted at https://pkgs.kiota.ch/ui, but package managers should be configured to use https://pkgs.kiota.ch for the URLs shown below.

npm npm JavaScript
/npm/

Configure npm to use the proxy:

# In ~/.npmrc or project .npmrc
registry=https://pkgs.kiota.ch/npm/

# Or via environment variable
npm_config_registry=https://pkgs.kiota.ch/npm/ npm install
cargo Cargo Rust
/cargo/

Configure Cargo to use the proxy (sparse index protocol):

# In ~/.cargo/config.toml or project .cargo/config.toml
[source.crates-io]
replace-with = "proxy"

[source.proxy]
registry = "sparse+https://pkgs.kiota.ch/cargo/"
gem RubyGems Ruby
/gem/

Configure Bundler/RubyGems to use the proxy:

# In Gemfile
source "https://pkgs.kiota.ch/gem"

# Or configure globally
gem sources --add https://pkgs.kiota.ch/gem/
bundle config mirror.https://rubygems.org https://pkgs.kiota.ch/gem
go Go Modules Go
/go/

Set the GOPROXY environment variable:

export GOPROXY=https://pkgs.kiota.ch/go,direct

# Add to your shell profile for persistence
hex Hex Elixir
/hex/

Configure Hex to use the proxy:

# In ~/.hex/hex.config
{default_url, <<"https://pkgs.kiota.ch/hex">>}.

# Or via environment variable
export HEX_MIRROR=https://pkgs.kiota.ch/hex
pub pub.dev Dart/Flutter
/pub/

Set the PUB_HOSTED_URL environment variable:

export PUB_HOSTED_URL=https://pkgs.kiota.ch/pub
pypi PyPI Python
/pypi/

Configure pip to use the proxy:

# Via command line
pip install --index-url https://pkgs.kiota.ch/pypi/simple/ package_name

# In ~/.pip/pip.conf
[global]
index-url = https://pkgs.kiota.ch/pypi/simple/
maven Maven Java
/maven/

Configure Maven to use the proxy:

<!-- In ~/.m2/settings.xml -->
<settings>
  <mirrors>
    <mirror>
      <id>proxy</id>
      <mirrorOf>central</mirrorOf>
      <url>https://pkgs.kiota.ch/maven/</url>
    </mirror>
  </mirrors>
</settings>
gradle Gradle Build Cache Java/Kotlin
/gradle/

Configure Gradle to use the proxy for HttpBuildCache:

// In settings.gradle(.kts)
buildCache {
  remote<HttpBuildCache> {
    url = uri("https://pkgs.kiota.ch/gradle/")
    push = true
  }
}
nuget NuGet .NET
/nuget/

Configure NuGet to use the proxy:

<!-- In nuget.config -->
<configuration>
  <packageSources>
    <clear />
    <add key="proxy" value="https://pkgs.kiota.ch/nuget/v3/index.json" />
  </packageSources>
</configuration>

# Or via CLI
dotnet nuget add source https://pkgs.kiota.ch/nuget/v3/index.json -n proxy
composer Composer PHP
/composer/

Configure Composer to use the proxy:

// In composer.json
{
    "repositories": [
        {
            "type": "composer",
            "url": "https://pkgs.kiota.ch/composer"
        }
    ]
}

# Or globally
composer config -g repositories.proxy composer https://pkgs.kiota.ch/composer
conan Conan C/C++
/conan/

Configure Conan to use the proxy:

conan remote add proxy https://pkgs.kiota.ch/conan
conan remote disable conancenter
conda Conda Python/R
/conda/

Configure Conda to use the proxy:

# In ~/.condarc
channels:
  - https://pkgs.kiota.ch/conda/main
  - https://pkgs.kiota.ch/conda/conda-forge
default_channels:
  - https://pkgs.kiota.ch/conda/main

# Or via command
conda config --add channels https://pkgs.kiota.ch/conda/main
cran CRAN R
/cran/

Configure R to use the proxy:

# In R session
options(repos = c(CRAN = "https://pkgs.kiota.ch/cran"))

# In ~/.Rprofile for persistence
local({
  r <- getOption("repos")
  r["CRAN"] <- "https://pkgs.kiota.ch/cran"
  options(repos = r)
})
julia Julia Julia
/julia/

Set the Pkg server before starting Julia:

export JULIA_PKG_SERVER=https://pkgs.kiota.ch/julia

Or inside a running session:

ENV["JULIA_PKG_SERVER"] = "https://pkgs.kiota.ch/julia"
using Pkg; Pkg.update()
swift Swift Package Registry Swift
/swift/

Configure SwiftPM to use the proxy for this project:

swift package-registry set https://pkgs.kiota.ch/swift

Use scoped package identifiers in Package.swift, for example apple.swift-argument-parser.

container Container Registry Docker/OCI
/v2/

Configure Docker to use the proxy as a mirror:

# In /etc/docker/daemon.json
{
  "registry-mirrors": ["https://pkgs.kiota.ch"]
}

# Then restart Docker
sudo systemctl restart docker

# Or pull directly
docker pull pkgs.kiota.ch/library/nginx:latest
debian Debian/APT Debian/Ubuntu
/debian/

Configure APT to use the proxy:

# In /etc/apt/sources.list or /etc/apt/sources.list.d/proxy.list
deb https://pkgs.kiota.ch/debian stable main contrib

# Replace your existing sources.list entries with the proxy URL
# Then run:
sudo apt update
rpm RPM/Yum Fedora/RHEL
/rpm/

Configure yum/dnf to use the proxy:

# In /etc/yum.repos.d/proxy.repo
[proxy-fedora]
name=Fedora via Proxy
baseurl=https://pkgs.kiota.ch/rpm/releases/$releasever/Everything/$basearch/os/
enabled=1
gpgcheck=0

# Then run:
sudo dnf clean all
sudo dnf update
apk Alpine APK Alpine Linux
/apk/

Configure apk to use the proxy:

# In /etc/apk/repositories
https://pkgs.kiota.ch/apk/alpine/v3.22/main
https://pkgs.kiota.ch/apk/alpine/v3.22/community

# Then run:
apk update

Need Help?

After configuring your package manager, install packages as usual. The proxy will automatically cache them. Check the dashboard to see cached packages.