---
title: "Using Packages"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/registry/using-packages"
image: "https://docs.vlt.io/og/registry/using-packages"
lang: "en"
---

# Using Packages

Once your package manager is [set up](https://docs.vlt.io/registry.md#set-up-your-package-manager), your project pulls everything through vlt: public packages resolve through your account's `npm` mirror, and packages under your account scope (`@acme/...`) resolve from your private `main` registry.

## Public packages

Your `npm` registry is a read-only mirror of the public npm registry, populated from `registry.npmjs.org`. With your default registry pointed at it, installs work exactly as they always have — same package names, same versions — while your projects and CI share one consistent source.

## Private packages

Packages scoped to your account live in your `main` registry, and the scope mapping from setup routes them there automatically. Install them like any other dependency:

```bash title="vlt"
$ vlt install @acme/utils
```

```bash title="npm"
$ npm install @acme/utils
```

```bash title="pnpm"
$ pnpm add @acme/utils
```

```bash title="yarn"
$ yarn add @acme/utils
```

```bash title="bun"
$ bun add @acme/utils
```

```bash title="deno"
$ deno add npm:@acme/utils
```

Every member of your account can install its packages — see [Members & Access Control](https://docs.vlt.io/registry/access.md) for how read access is granted.

## Versions and dist-tags

The registry follows standard npm semantics, so version ranges, `latest`, and custom dist-tags behave the way you expect:

```bash title="Terminal"
$ vlt install @acme/utils@beta
```

Deprecation notices set by publishers surface as warnings when a deprecated version is installed.

## Installing in CI

Create a **service token** with just the `package:read` privilege — a read-only token can install but never publish, no matter where it leaks. Provide it through the environment:

```bash title="Terminal"
VLT_TOKEN_https_registry_vlt_io_acme_npm="<service token>" \
VLT_TOKEN_https_registry_vlt_io_acme_main="<service token>" \
vlt install
```

The same token works for both registries because tokens belong to your account. See [Authentication & Tokens](https://docs.vlt.io/registry/tokens.md) for creating tokens and [Authentication — CI](https://docs.vlt.io/client/auth.md#ci-and-other-headless-environments) for how the environment variables are named.

## Browsing packages

The dashboard's **Registries** section lets you browse and search both registries: the npm mirror, and your private packages under your account.
