---
title: "Named Registries"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/concepts/named-registries"
image: "https://docs.vlt.io/og/concepts/named-registries"
lang: "en"
---

# Named Registries

A **named registry** is an alias you assign to a registry URL, so you can refer to it by a short name instead of the full URL.

For example, instead of writing `https://registry.example.com/` every time, you can configure an alias:

```bash
vlt config set registries=myreg=https://registry.example.com/
```

Now you can use `myreg:` as a prefix to explicitly specify that a package should come from that registry:

```bash
vlt install myreg:my-package@1.0.0
```

Or in `package.json`:

```json
{
  "dependencies": {
    "my-package": "myreg:my-package@1.0.0"
  }
}
```

## Why use named registries?

- **Multi-registry workflows** — Configure different registries for different scopes or purposes (e.g., `npm:` for public packages, `internal:` for private company packages)
- **Explicit resolution** — Ensure a specific package comes from a specific registry, avoiding ambiguity
- **Portability** — Share configuration via `vlt.json` so team members use the same registry aliases

## Built-in aliases

vlt provides these built-in registry aliases:

| Alias  | Registry                                | Notes                                                        |
| ------ | --------------------------------------- | ------------------------------------------------------------ |
| `npm:` | `https://registry.vlt.io/upstream/npm/` | Default for bare specs; vlt's public npm mirror, overridable |
| `jsr:` | `https://npm.jsr.io/`                   | JavaScript Registry                                          |
| `gh:`  | `https://npm.pkg.github.com/`           | GitHub Packages                                              |

## See also

- [Registry Aliases](https://docs.vlt.io/client/registries.md#registry-aliases) — Full configuration details
- [Scoped Registries](https://docs.vlt.io/client/registries.md#named-scope-registries-npm-compatibility) — Map scopes like `@mycompany/` to specific registries
- [Registry URL Specifiers](https://docs.vlt.io/client/registries.md#registry-url-specifiers) — Inline `registry:https://...` syntax
