Skip to main content

Quickstart

Install the public envloop-cli package to use the equivalent envloop / el commands and envloop.Client. Use Python 3.12 or later; no repository checkout is needed.

Pick a path​

This quickstart runs a small task and reads its artifacts. If your goal is model training, go directly to Train, deploy and call. For a browser-first introduction, start with the Console tour. You can return to Core concepts after your first result.

EnvLoop Skill​

EnvLoop Skill helps a coding agent follow the CLI steps in this guide. Run the installer from the agent’s project using Node.js 22.20 or newer:

npx skills@latest add https://docs.envloop.ai --skill envloop
Read the Skill instructions

The Install button copies the command to your clipboard. The installer lets you choose which agent should use the Skill. See Skill installation and updates to verify the installed path, refresh an existing copy or check installation in a temporary project.

1. Install​

Follow Installation to create an isolated Python environment, then install the public package:

python -m pip install --upgrade envloop-cli
el --help

Keep the virtual environment activated while following this guide. el and envloop are equivalent commands.

2. Connect​

On Linux or macOS, prepare a private configuration directory before saving your connection. If you set ENVLOOP_HOME, use an absolute path owned by you:

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

Windows users should follow the environment-variable or explicit SDK setup.

Register or sign in, then verify your email to open your personal workspace and Default project. To work with a team, accept its invitation or ask for project access. Create a Project automation Key under Configure → API Keys → Create API Key and store it securely; see Authentication.

envloop auth config
envloop auth status --check

The wizard hides Key input, verifies it and saves the connection for both CLI and SDK. Read the connection check and any warnings, then run el job list --limit 5 to confirm Job access in the selected project. If you see CONFIG_INSECURE_PATH, check ownership and permissions on the directory and existing files using the credential storage requirements. For an unexpected URL or project, inspect el auth config show --json before submitting a Job.

3. Submit a dataset job​

Choose a small environment Dataset readable in your project. Submitting a Job can allocate billable resources; check the selected Dataset's task count, your project permissions and applicable costs in Console first. Record and trajectory Datasets contain samples rather than executable tasks; use the training workflow for those inputs. Choose DATASET_NAME from the first list and VERSION from its revision list:

el dataset list --content-type environment --limit 10
el dataset list --name DATASET_NAME --limit 10
el job submit --dataset DATASET_NAME@VERSION

The JSON response includes job_id. Replace JOB_ID below with the returned value:

el job get JOB_ID
el job result JOB_ID

The dataset must be available on the target platform. When version, config, and split are omitted, the platform resolves and freezes the default selection. The platform continues running the job after the HTTP submission returns; result does not automatically wait. You can wait using submit --wait. Stop with el job stop JOB_ID.

4. Submit your own task​

Create a directory containing only these two files:

mkdir -p my-task
cat > my-task/runner.toml <<'TOML'
schema_version = "envloop.runner/v1"
[runner]
name = "examples/hello"
[execution]
entrypoint = "main.py"
timeout_sec = 10
outputs = ["result.txt"]
TOML
cat > my-task/main.py <<'PY'
from pathlib import Path

Path("result.txt").write_text("hello\n", encoding="utf-8")
print("hello")
PY
el job submit --source ./my-task --wait

The submission returns a one-member Job. Read trial_id from members[0].attempts[0].trial_id, then run el trial result TRIAL_ID to inspect status, reward and output metadata. Read stdout/stderr in the Trial’s Console Logs tab. The successful Job terminal state is completed; its successful Trial is succeeded. For a benchmark task, also read its verifier score. This example writes hello to the log and result.txt to the artifacts.

5. Use the Python SDK​

Save as quickstart.py and run python quickstart.py in the same virtual environment:

from envloop import Client

with Client.remote() as client:
job = client.jobs.submit(source="./my-task")
final = client.jobs.wait(job["job_id"], timeout=60)
if final["status"] != "completed":
raise RuntimeError(f"Job ended: {final['status']}")
print(client.jobs.result(job["job_id"]))

The SDK reads explicit arguments, system environment and saved user configuration, in that order, and does not automatically read .env.local. Local platform development also uses the same API client; see Python SDK.

Next steps​

After your first run, choose the workflow you need:

Look up concepts and options as needed: Core concepts · CLI reference.