Skip to content

Package installation

1. Access Latent AI's container repository

In order to pull containers or install packages from Latent AI, you'll need to create a personal access token. To do so, follow these steps:

  • Login to the Latent AI Repository

    • Click the Sign in link in the upper right.
    • Select Sign In with SSO.
    • Enter your access credentials.
  • Create your Personal Access Token

    • Click on your profile in the upper right.
    • Select User Token on the left navigation.
    • Select the Access user token button.
    • View your user token name and user token pass code.

You can export the token name and token pass code as environment variables:

export REPOSITORY_TOKEN_NAME=<user_token_name>
export REPOSITORY_TOKEN_PASSCODE=<user_token_pass_code>

2. Export license key

After your receive your license key via email, place it in the following location: ~/.leip/license.key.

If you'd like, you can replace <your-license-key> and run the following command:

mkdir -p ~/.leip && echo "<your-license-key>" > ~/.leip/license.key

Alternative license key configurations

If you prefer, you can simply set LEIP_LICENSE_KEY as an environment variable. You can also place the key in a .leip/license.key file in your project directory: $PWD/.leip/license.key.

3. Install package

Create and activate a Python virtual environment

We recommend creating and activating a Python virtual environment using uv with a Python version 3.11 or higher. For example:

uv venv --python 3.11 --seed && source .venv/bin/activate

Install the latent-label package with the following command:

pip install --extra-index-url https://${REPOSITORY_TOKEN_NAME}:${REPOSITORY_TOKEN_PASSCODE}@repository.latentai.com/repository/pypi/simple latent-label

4. Quick start

Start with default settings (preserves existing datasets):

latent-label start

Start with a specific dataset:

latent-label start --dataset my_dataset

For a complete list of latent-label command options, consult the reference page.