---
sidebar_label: "Installation"
title: "Install and connect the CLI"
description: "Install envloop-cli from PyPI with CLI, SDK and Train Job commands included, then sign in and verify project access."
last_update:
  date: 2026-11-18
---

<span id="pip-el-cli" className="legacy-anchor" />

Install [envloop-cli from PyPI](https://pypi.org/project/envloop-cli/) with Python 3.12 or later. One package provides the `el` / `envloop` commands, the Python `envloop` SDK and Train Job client.

<span id="_1" className="legacy-anchor" />

## Install in a virtual environment

On Linux or macOS, create and activate an isolated environment:

```bash
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade envloop-cli
el --help
envloop --help
el checkpoint --help
el job --help
```

The CLI requires its configuration directory to be private. These commands use the default `~/.envloop` when `ENVLOOP_HOME` is unset:

```bash
mkdir -p "${ENVLOOP_HOME:-$HOME/.envloop}"
chmod 700 "${ENVLOOP_HOME:-$HOME/.envloop}"
```

An existing directory that is readable by other users causes every `el` command to fail with `CONFIG_INSECURE_PATH`.

On Windows, use your Python launcher to create the environment and activate `.venv\Scripts\Activate.ps1` in PowerShell. See the platform support note below before saving credentials. If you use uv for standalone tools, `uv tool install envloop-cli` is another installation option. That tool environment does not install the SDK into a separate Python project; install `envloop-cli` in the environment that runs your Python scripts.

The installation above includes the Train Job and checkpoint commands (`el job`, `el checkpoint`). The public interactive training service is retired. Use [Train Jobs](training/quickstart.md). Verify the supported SDK entrypoint in that same Python environment:

```bash
python -c 'from envloop import Client; print("SDK import ready")'
```

This import check runs locally. Activate the environment again in a new terminal so both `el` and `python` use the intended installation.


<span id="modular-source-candidate-not-published" className="legacy-anchor" />

## Add chat dependencies {#chat-extra}

Chat uses the independent optional `chat` module. Bare installation does not add `openai`; a chat command without its dependency gives installation guidance. Requests use the EnvLoop URL and Key, without an OpenAI account.

```bash
python -m pip install --upgrade "envloop-cli[chat]"
el job chat JOB_ID "Hello"
```

## Add Assets and checkpoint dependencies {#asset-extra}

Every installation contains all `el` command groups, including `el checkpoint`, `el dataset`, `el recipe`, `el runner` and `el profile`. Extras only add dependencies. Install the `asset` extra when you work with `envloop://` references or verified directory downloads:

```bash
python -m pip install --upgrade "envloop-cli[asset]"
el checkpoint --help
```

| Installation group | Additional dependencies |
| --- | --- |
| Bare / `default` | None; all client feature code and commands are included |
| `asset` | `envloop-envhub` for ANS parsing and verified downloads, plus `boto3` for direct object storage transfers |
| `experiment` | None; Job, Trial, Train and Inference code is already included |
| `rsi-loop` | None; the `loop` commands are already included |
| `chat` | Official `openai` Python SDK for Job-bound chat and streamed responses |

Feature modules load on use. Authentication, help and Job operations do not import EnvHub. An ANS operation without its dependency fails with `FEATURE_NOT_INSTALLED` and names `pip install "envloop-cli[asset]"`. Other Assets API operations use the bundled implementation. All groups use the same `el` / `envloop` commands and `from envloop import Client` SDK entrypoint. Internal registration, storage and authoring implementations belong to the private EnvHub package, which the public client does not install. Installation or URI parsing does not grant access or submit a Job.

envloop-cli 1.23.0 and 1.24.0 on PyPI depend on feature packages that were never published. Their `data` extra cannot be installed, and `el --help` shows an empty ASSETS group. Those versions also install a separate `envloop-cli-experiment` package that shares files with later releases. Remove both packages before you install a later release:

```bash
python -m pip uninstall -y envloop-cli envloop-cli-experiment
python -m pip install "envloop-cli[asset]"
el checkpoint --help
```

Uninstalling `envloop-cli-experiment` after an upgrade deletes files that the newer `envloop-cli` needs. If `el job` then reports `FEATURE_NOT_INSTALLED`, run the same two commands.

## Upgrade an existing installation

```bash
python -m pip install --upgrade envloop-cli
```

Use `python -m pip show envloop-cli` to inspect the installed package and location, then check `el --help`. Runner get/create/update/delete require 1.33.0 or later. Explicit `--json` for those commands, Harbor upload `--update-digests` and artifact download `--output` require 1.34.0 or later. If the required release is not available on PyPI yet, upgrading cannot install its options; check the [release history](https://pypi.org/project/envloop-cli/#history) and your command help. See [Client versions and platform requirements](reference/cli.md#client-versions): installing a new CLI does not update the platform or enable Profile v4 and v6 Runner Sandbox execution on an older server.

The current command tree includes `auth`, `trial`, `loop`, root `checkpoint`, and `job` (including `job adapter`). If another installation shadows `el`, activate the intended environment or use its executable directly.

## Install or update EnvLoop Skill {#envloop-skill}

The Skill gives your coding agent EnvLoop instructions; it is installed separately from the Python package. With Node.js 22.20 or later, run these commands from the project where the agent works:

```bash
npx skills@latest add https://docs.envloop.ai --skill envloop --agent codex
npx skills@latest list --agent codex
```

Replace `codex` with `claude-code` for Claude Code, or omit `--agent` to choose interactively. Check the installer output and the installed path from `list`; the `SKILL.md` file must be readable by the selected agent. The website's Install button only copies the command.

To refresh only this Skill in the current project:

```bash
npx skills@latest update envloop --project
npx skills@latest list --agent codex
```

For a global installation, inspect `npx skills@latest list --global --agent codex` and use `npx skills@latest update envloop --global` instead. Use the scope where it was installed. If the Skill is missing or its installed path is broken, review any local edits and reinstall from the original `add` command in that scope (`--global` only for a global installation). Updating the Skill does not upgrade `envloop-cli`.

To check a fresh project installation without changing an existing project's Skill, use a temporary directory on Linux or macOS:

```bash
SKILL_CHECK_DIR="$(mktemp -d)"
(
  cd "$SKILL_CHECK_DIR"
  npx skills@latest add https://docs.envloop.ai --skill envloop --agent codex --yes
  npx skills@latest list --agent codex
)
```

Keep this check at project scope; do not add `--global`. Confirm that `envloop` is listed and that its installed instructions name `https://docs.envloop.ai/skill.md` as the canonical entry. This checks Skill discovery and installation only; it does not authenticate or execute an EnvLoop Job.

<span id="dashboard-key" className="legacy-anchor" />

## Connect to a project {#get-a-key-from-the-dashboard}

Choose one method.

**Browser authorization** opens the normal sign-in page. Choose the workspace and project, enter the confirmation code displayed by your terminal, and approve the login you initiated:

```bash
el auth login
el auth status --check
```

**Existing project Key** uses the one-time secret created on Console's **API Keys** page. Input is masked and verified before saving:

```bash
el auth config set base-url https://api.envloop.ai
el auth config
el auth status --check
```

Both methods save the connection for CLI and SDK. Use an EnvLoop project Key; a browser cookie or another service's Key is not interchangeable. See [Authentication](guides/authentication.md) for scope, expiration and rotation. Never paste a Key into command arguments, screenshots or a public issue.

The CLI keeps its settings and Key in `~/.envloop`, or in the absolute directory named by `ENVLOOP_HOME`. On Linux and macOS that directory must be owned by you with mode `700`; otherwise every `el` command fails with `CONFIG_INSECURE_PATH`. Use the directory setup commands above before running `el auth login` or `el auth config`.

<span id="_2" className="legacy-anchor" />

## Verify without submitting work

```bash
el auth config show --json
el dataset list --limit 5
el job list --limit 5
el job list --type train --limit 5
el checkpoint list --limit 5
```

The first command shows effective configuration and Key presence without showing the secret. Successful lists confirm access to those resources; empty lists can be valid for a new project. These commands are read-only. Use `el job list` to browse Jobs and the Console Dashboard to view the project overview.

Lists normally use tables. Add `--json` for scripts, and follow `next_cursor` or the printed next-page command for pagination. A training Job uses the same value for `job_id` and the protocol `session_id`; historical train IDs remain aliases. A training Run/model is inside that Job and has its own ID, so do not substitute a Run ID for a Job ID.

<span id="_3" className="legacy-anchor" />

## Recover from common setup problems

- **Missing command:** activate the intended environment, upgrade `envloop-cli`, and inspect `el --help`.
- **Python import failure:** confirm your interpreter meets the package's current requirements and that `python` uses the environment where you installed `envloop-cli`. The standard installation includes the Train Job client.
- **Unexpected project or URL:** inspect `el auth config show --json`; environment values can override saved configuration.
- **ACCESS_DENIED:** check project role, Key purpose and resource scope. Ask your project administrator to adjust access if needed.

The private on-disk credential workflow supports POSIX. On Windows use system environment credentials or explicit SDK values with `config=False`; do not assume POSIX permission checks protect Windows files. See [Configuration](reference/configuration.md).

<span id="_4" className="legacy-anchor" />

Continue with [Quickstart](guides/quickstart.md), [Console](guides/console.md), [CLI workflows](guides/cli.md) or [Training](training/overview.md).
