---
title: "Quick Start"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/registry"
image: "https://docs.vlt.io/og/registry"
lang: "en"
---

# Quick Start

## Sign Up

You need a vlt.io account to publish, and also to **install** through your account's `npm` mirror: the mirror requires a token, even for public npm packages.

**tip**

Only need public npm packages? You can skip sign-up and login and use the open mirror at `https://registry.vlt.io/upstream/npm/` instead. Limits apply; see [Public npm Mirror](https://docs.vlt.io/registry/public-mirror.md).

For a team, invite each developer ([Members & Access Control](https://docs.vlt.io/registry/access.md#inviting-members)); each one logs in (or creates a personal token). Give CI and shared environments (Vercel, coding-agent sandboxes) a service token with only `package:read` (plus `package:write` if CI publishes), created by an owner or admin — see [Authentication & Tokens](https://docs.vlt.io/registry/tokens.md#personal-and-service-tokens).

[Sign up](https://www.vlt.io/sign-up):

1. **Create your account**

   You can sign up with Github, Google (Gmail) or with an email and password.

   ![Sign up form on vlt's sign up view with first name and last name fields, and login buttons connecting to Google and Github](https://docs.vlt.io/images/signin.png)

2. **Verify your email**

   If you signed up with an email and password, check your inbox for a one-time passcode (OTP). Paste it into the verification view to confirm your account.

   ![Screenshot of vlt signup one-time passcode email](https://docs.vlt.io/images/otp-email.png)

3. Set up your account

   ![Screenshot of vlt account setup view with display name and slug fields, and a grid of plans for user selection](https://docs.vlt.io/images/account-setup.png)

   Caution The slug appears in your registry URLs and in your package scope, so choose carefully.

4. You've signed up! You'll be logged into the Dashboard.

   ![Screenshot of vlt Dashboard view displaying left side side navigation where using can browse through registries and account settings](https://docs.vlt.io/images/dashboard.png)

## Log in

1. **Enter your credentials**

   Log in with your email address, or continue with Github or Google. You can also use a passkey if you've set one up.

   ![Login view on vlt.io with Email address input, continue button, and Github and Google login buttons. Below are links to Use passkey and a call to action to sign up if the user does not have an account](https://docs.vlt.io/images/login.png)

## Set up your package manager

Once you have an account, connect the package manager you already use to your registries. The examples below use `acme` as the account slug — replace it with your own, or use the **Setup Instructions** button in the dashboard's **Registries** section, which generates these instructions for your account.

**vlt**

vlt installs public packages without an account, through the [public npm mirror](https://docs.vlt.io/registry/public-mirror.md). If you're setting up a vlt.io account for the first time, start with [`vlt setup`](https://docs.vlt.io/client/registries.md#getting-started-with-vlt-setup) — it authenticates and configures your account's `npm` and `main` registry aliases in one step:

```bash
vlt setup
```

Alternatively, configure a project manually:

1. **Set up your private `@acme` scope**

   Your private scope lives in a separate registry. To set it up in `vlt.json`, run:

   ```bash
   vlt config set scoped-registries=@acme=https://registry.vlt.io/acme/main/
   ```

   Then obtain an authentication token for your private scope:

   ```bash
   vlt login --registry=https://registry.vlt.io/acme/main/
   ```

   Now you can publish and install packages from your private `@acme` scope.

2. **Set up the vlt.io npm mirror**

   Change your default registry to your vlt.io mirror. This updates your `vlt.json` file to use the mirror for all packages in the current project:

   ```bash
   vlt config set registry=https://registry.vlt.io/acme/npm/ \
     registries.npm=https://registry.vlt.io/acme/npm/
   ```

   Then log in to obtain an authentication token:

   ```bash
   vlt login
   ```

   Then reinstall your dependencies from the vlt.io mirror:

   ```bash
   vlt install
   ```

**npm**

1. **Set up the vlt.io npm mirror**

   Change your default registry to your vlt.io mirror. This updates your `.npmrc` file to use the mirror for all npm packages in the current project:

   ```bash
   npm config set registry https://registry.vlt.io/acme/npm/ --location=project
   ```

   Then log in to obtain an authentication token:

   ```bash
   npm login --registry=https://registry.vlt.io/acme/npm/
   ```

   Keep your `package-lock.json`: npm fetches its `registry.npmjs.org` entries from the mirror. Run a normal install:

   ```bash
   npm install
   ```

2. **Set up your private `@acme` scope**

   Your private scope lives in a separate registry. To set it up in `.npmrc`, run:

   ```bash
   npm config set @acme:registry https://registry.vlt.io/acme/main/ --location=project
   ```

   Then obtain an authentication token for your private scope:

   ```bash
   npm login --registry=https://registry.vlt.io/acme/main/ --scope=@acme
   ```

   Now you can publish and install packages from your private `@acme` scope.

**pnpm**

1. **Set up the vlt.io npm mirror**

   Change your default registry to your vlt.io mirror. This updates your `.npmrc` file to use the mirror for all npm packages in the current project:

   ```bash
   pnpm config set registry https://registry.vlt.io/acme/npm/ --location=project
   ```

   Keep registry settings in `.npmrc`: pnpm before 11.10 ignores `registry` in `pnpm-workspace.yaml` and installs from npmjs.org, even if `pnpm config get registry` shows the mirror; pnpm 10 also logs in to npmjs.org. pnpm 11.10+ reads `registry` from either file. `_authToken` needs `.npmrc`.

   Then log in to obtain an authentication token:

   ```bash
   pnpm login
   ```

   `pnpm login` keeps the token out of the repo. In CI, don't put `${VLT_TOKEN}` in the project `.npmrc` — pnpm 11.5.3+ ignores it. See [pnpm in CI](https://docs.vlt.io/registry/publishing/ci.md#pnpm-needs-a-different-approach).

   Keep your `pnpm-lock.yaml`: it stores no tarball URLs, so a normal install fetches everything from the mirror:

   ```bash
   pnpm install
   ```

2. **Set up your private `@acme` scope**

   Your private scope lives in a separate registry. To set it up in `.npmrc`, run:

   ```bash
   pnpm config set @acme:registry https://registry.vlt.io/acme/main/ --location=project
   ```

   Then obtain an authentication token for your private scope:

   ```bash
   pnpm login --registry=https://registry.vlt.io/acme/main/ --scope=@acme
   ```

   Now you can publish and install packages from your private `@acme` scope.

**yarn**

These instructions are for yarn 2+ ("Berry"), the version you get from `yarn set version berry` or a `packageManager` field in `package.json`.

1. **Set up the vlt.io npm mirror**

   Change your default registry to your vlt.io mirror. This updates your project's `.yarnrc.yml` file to use the mirror for all npm packages:

   ```bash
   yarn config set npmRegistryServer "https://registry.vlt.io/acme/npm/"
   ```

   Then log in to obtain an authentication token:

   ```bash
   yarn npm login --web-login --always-auth
   ```

   Then to switch all your dependencies to the vlt.io mirror, delete your `yarn.lock` and reinstall:

   ```bash
   rm -rf yarn.lock
   yarn install
   ```

2. **Set up your private `@acme` scope**

   Your private scope lives in a separate registry. To set it up in `.yarnrc.yml`, run:

   ```bash
   yarn config set npmScopes.acme.npmRegistryServer "https://registry.vlt.io/acme/main/"
   yarn config set npmScopes.acme.npmPublishRegistry "https://registry.vlt.io/acme/main/"
   ```

   Then obtain an authentication token for your private scope:

   ```bash
   yarn npm login --scope acme --always-auth --web-login
   ```

   Now you can publish and install packages from your private `@acme` scope.

**bun**

1. **Get a token**

   To authenticate Bun with your registries, first create an authentication token from your account's [Tokens page](https://www.vlt.io/tokens/acme) and define an environment variable. If you're using a `.env` file, define the token there:

   ```ini
   VLT_TOKEN=<your token>
   ```

   You can also add it to your `.bashrc` or `.zshrc`, or export it in your current shell for the duration of your session:

   ```bash
   export VLT_TOKEN=<your token>
   ```

   `VLT_TOKEN` is just a name: bun doesn't read it by itself, only through the `$VLT_TOKEN` reference in `bunfig.toml` below.

2. **Set up the vlt.io npm mirror**

   Create (or edit) `bunfig.toml` in your project root and point the default registry at your vlt.io mirror. Use a `$VLT_TOKEN` placeholder for the token instead of a literal value — bun expands `$VAR` references from the environment at request time, so this file is safe to commit:

   ```toml
   [install]
   registry = { url = "https://registry.vlt.io/acme/npm/", token = "$VLT_TOKEN" }
   ```

   Then to switch all your dependencies to the vlt.io mirror, delete your `bun.lock` and `node_modules` folder and reinstall:

   ```bash
   rm -rf bun.lock node_modules
   bun install
   ```

3. **Set up your private `@acme` scope**

   Your private scope lives in a separate registry. Add it under `[install.scopes]` in `bunfig.toml`. vlt.io tokens are scoped to your account rather than to a specific registry, so the same `$VLT_TOKEN` works here too:

   ```toml
   [install.scopes.acme]
   url = "https://registry.vlt.io/acme/main/"
   token = "$VLT_TOKEN"
   ```

   Now you can publish and install packages from your private `@acme` scope — `bun publish` resolves the registry from the package name's scope automatically.

**deno**

1. **Set up the vlt.io npm mirror**

   Create (or edit) `.npmrc` in your project root and point the default registry at your vlt.io mirror. Reference the token via `${VLT_TOKEN}` rather than a literal value — deno expands `${VAR}` references in `.npmrc` from the environment, so this file is safe to commit:

   ```bash
   cat >> .npmrc <<'EOF'
   registry=https://registry.vlt.io/acme/npm/
   //registry.vlt.io/acme/npm/:_authToken=${VLT_TOKEN}
   EOF
   ```

   Since there's no `deno login`, create a token from the vlt.io dashboard instead, then put it in a `.env` file (make sure `.env` is in your `.gitignore`):

   ```bash
   echo "VLT_TOKEN=<your token>" >> .env
   ```

   `VLT_TOKEN` is just a name: deno uses it only through the `${VLT_TOKEN}` lines in `.npmrc`.

   Then to switch all your dependencies to the vlt.io mirror, delete your `deno.lock` and `node_modules` folder and reinstall, passing `--env-file` so the token in `.env` is loaded:

   ```bash
   rm -rf deno.lock node_modules
   deno install --env-file
   ```

2. **Set up your private `@acme` scope**

   Your private scope lives in a separate registry. Add a scope mapping and a matching auth-token line — the token line's host/path must exactly match the scope's registry URL:

   ```bash
   cat >> .npmrc <<'EOF'
   @acme:registry=https://registry.vlt.io/acme/main/
   //registry.vlt.io/acme/main/:_authToken=${VLT_TOKEN}
   EOF
   ```

   vlt.io tokens are scoped to your account rather than to a specific registry, so the same `VLT_TOKEN` works here too. Now you can install packages from your private `@acme` scope with `deno install --env-file`.

   `deno publish` targets [JSR](https://jsr.io/) only, but `deno pack` builds a real npm package from a Deno project, which you then upload with `npm publish`. See [the deno guide](https://docs.vlt.io/registry/publishing/deno.md) for the full workflow — including Deno's 24-hour dependency-age gate, which will otherwise hide a version you just published.

## CI and hosted environments

Only the vlt CLI reads `VLT_TOKEN` / `VLT_TOKEN_*` itself (see [Authentication](https://docs.vlt.io/client/auth.md#ci-and-other-headless-environments)). Other package managers need an auth line in their own config, and Vercel builds use `NPM_RC`. For CI, Vercel and coding-agent sandboxes, see [CI & automation](https://docs.vlt.io/registry/publishing/ci.md#who-reads-what).
