> 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/pipenv.md).

# Configuring Pipenv

Point Pipenv at the Seal Artifact Server using a source in the Pipfile.

Pipenv reads package sources from the `[[source]]` blocks in the `Pipfile`. Replacing the default PyPI source with Seal makes every package resolve from Seal.

## Configuration

Replace the `[[source]]` block in the project's `Pipfile`:

```toml
[[source]]
url = "https://${SEAL_PROJECT}:${SEAL_TOKEN}@pypi.sealsecurity.io/simple"
verify_ssl = true
name = "seal"
```

Set `SEAL_PROJECT` to the Seal [Project ID](https://docs.sealsecurity.io/getting-started/creating-a-seal-project.md#project-id-and-project-name) and `SEAL_TOKEN` to your production token. Pipenv expands the environment variables when it reads the URL, and `Pipfile.lock` keeps the unexpanded placeholders, so the credentials stay out of both files. Commit the change so the configuration is version-controlled with the manifest.

Run `pipenv lock` once after changing the source so `Pipfile.lock` resolves against Seal, then `pipenv sync` installs from it as usual.

## Verify

```bash
pipenv lock --verbose
```

The verbose output shows each index URL. The URLs should start with `https://pypi.sealsecurity.io/simple`.

## Related

* [Configuring pip](https://docs.sealsecurity.io/setup-apps-os/artifact-server/configuring-package-managers/pip.md): the pip equivalent for the same ecosystem.
* [Configuring PDM](https://docs.sealsecurity.io/setup-apps-os/artifact-server/configuring-package-managers/pdm.md): the PDM equivalent for the same ecosystem.
