Skip to content
GitHub

Connect package managers

Safely connect pip, npm, Go, Cargo, Maven, APT, and other clients to Depsilo v0.9.4 and verify that requests use the proxy cache.

These examples target Depsilo v0.9.4 and assume the service is available at http://localhost:23333. If you open Depsilo through a LAN address, reverse proxy, HTTPS, or a custom port, replace the complete origin in each example with the URL you use to open the Portal.

  1. Check that the service is reachable

    Terminal window
    curl -fsS http://localhost:23333/ready
  2. Configure one client

    Choose the matching ecosystem below. Prefer project-scoped configuration. Back up an existing file before changing user- or system-level configuration.

  3. Make a real request

    The first request is normally a MISS. Repeat the same request, then use Admin Access logs to confirm that it reached Depsilo and that the second request can be served as a cache hit.

For focused pip, uv, and Poetry guidance, go directly to Configure Python.

These commands update pip’s user-level configuration:

Terminal window
pip config set global.index-url http://localhost:23333/pypi/simple/
# Plain HTTP only:
pip config set global.trusted-host localhost:23333
pip install --dry-run --index-url http://localhost:23333/pypi/simple/ six

Do not add a public source as an automatic extra-index-url fallback. pip considers candidates from multiple indexes together, which can bypass a Depsilo policy decision. uv, Poetry, Pipenv, and PDM use the same /pypi/simple/ endpoint; select the specific client in the Portal for its project-scoped configuration.

Terminal window
npm config set registry http://localhost:23333/npm/
npm config get registry
npm view --registry=http://localhost:23333/npm/ is-number version

npm and pnpm can both use a project or user .npmrc:

.npmrc
registry=http://localhost:23333/npm/

Yarn 2+ uses npmRegistryServer, while Bun uses [install].registry in bunfig.toml. Their server route is still /npm/.

  • Make the same real dependency request twice. The first request normally reaches an upstream; the second is the meaningful cache-hit check.
  • Confirm the ecosystem, package, status, and hit result in Admin Access logs. A successful client install alone does not prove the request used Depsilo.
  • Record the original registry, index, or sources before changing it. Restore that value to roll back instead of adding a parallel public fallback.
  • localhost inside a container or remote machine refers to that client itself. Replace it with a Depsilo hostname or IP that the client can actually reach.