> For the complete documentation index, see [llms.txt](https://docs.sealsecurity.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sealsecurity.io/setup-apps-os/artifact-server/configuring-package-managers/uv.md).

# Configuring uv

Point uv at the Seal Artifact Server using an index in pyproject.toml.

uv reads package indexes from the `[[tool.uv.index]]` table in `pyproject.toml`. An index marked `default = true` replaces PyPI, so every package resolves from Seal.

## Configuration

Add the index to the project's `pyproject.toml`:

```toml
[[tool.uv.index]]
name = "seal"
url = "https://pypi.sealsecurity.io/simple"
default = true
```

Pass the credentials through environment variables named after the index:

```bash
export UV_INDEX_SEAL_USERNAME=<project-id>
export UV_INDEX_SEAL_PASSWORD=<token>
```

Replace `<project-id>` with the Seal [Project ID](https://docs.sealsecurity.io/getting-started/creating-a-seal-project.md#project-id-and-project-name) and `<token>` with your production token. The credentials stay out of `pyproject.toml` and `uv.lock`. Commit the `pyproject.toml` change so the configuration is version-controlled with the manifest.

`uv.lock` records the index URL with each package. Run `uv lock` once after adding the index so the lock file resolves against Seal, then `uv sync` installs from it as usual.

## Verify

```bash
grep -m1 "registry" uv.lock
```

The output should show `https://pypi.sealsecurity.io/simple` as the registry.

## Related

* [Editing dependency files manually](https://docs.sealsecurity.io/using-platform/working-with-seal-apps/artifact-server/poetry.md): pinning sealed versions in `pyproject.toml`.
* [Configuring PDM](https://docs.sealsecurity.io/setup-apps-os/artifact-server/configuring-package-managers/pdm.md): the PDM equivalent for the same ecosystem.
