Profiles
A Profile is a named, immutable partial JobSpec. New Profiles use envloop.profile/v5 for Bench, Sandbox, Train and Inference. Version and visibility are catalog metadata, outside the v5 content. Historical v1–v4 versions keep their stored content and hash.
Use a client and platform that support Profile v5 and JobSpec v2 together. Publishing a Profile stores a template; submitting a Job resolves it into the frozen execution specification. See Jobs.
Create and reuse a Profile in the Console
Open Assets → Profiles in your workspace/project and select Create profile. Choose the Job type inside Basic information. The shared form contains Basic information, Execution definition, Inputs, Params, Resources and Runtime settings. JSON/TOML is an advanced view of the same draft, available for every type. Switching type retains each type's draft in memory; refreshing discards drafts and Secrets.
Profile name and Job type identify the configuration. Version is optional in Console: leaving it blank generates a unique version at publication and retains it for a failed retry. Runner, Recipe, parameters and resources may be omitted to inherit at submission. Use published readable references; resource discovery failures permit manual entry. Runner and Recipe accept namespace/name or namespace/name@latest to follow the latest published version by default. You can still choose an exact version. Profiles retain these selectors; the platform resolves and freezes concrete versions when each Job is submitted.
Inputs are named slots containing an ANS URI and optional manifest digest. Dataset inputs also contain optional config and a required split; Agent Dataset inputs may select task_ids. Params contain typed key/value rows, including image, command, timeout and retries where supported. v5 keys use lowercase snake_case. Values support strings, numbers, booleans, objects, arrays and null. TOML cannot express null; use JSON for those drafts. Resources contain CPU, memory/storage MB, GPU count/type and shared memory MB. Blank fields inherit; explicit zero and false remain values.
Runtime settings include Tags and, where supported, Priority. Agent, Sandbox and Train offer repeat and budget; Train also offers Outputs. Inference offers Scaling and takes its endpoint name from the submitting Job's spec.name, not the Profile. Inference has no explicit timeout/retry controls or queue-priority control; Bench can select a compatible evaluation Recipe. Unsupported values receive validation feedback instead of being silently removed.
Validation highlights the invalid field in red and explains the error beside it. The editor moves focus to the first invalid field and keeps your draft so you can correct it and retry. Profile names use namespace/name.
Select Publish version to create an immutable version. Publication, editing, default changes and forks do not run Jobs. The detail shows grouped readable fields, typed parameters and masked configuration source. Existing Agent v1/v2 forms remain maintainable; Sandbox/Train v3 use grouped fields while preserving pins, input slots, overrides and model service. Historical formats are not silently converted to v4.
Read-only resource references display complete ANS URIs. A fixed Runner selector
such as envloop/bash@0123456789abcdef0123456789abcdef01234567 appears as
envloop://runners/envloop/bash@0123456789abcdef0123456789abcdef01234567.
Runner, Recipe, Dataset and Checkpoint URI links open the corresponding resource
in the current project, and their copy buttons copy the full URI. Incomplete
historical references retain their recorded values. Editing and JSON/TOML source
views preserve the stored selectors.
Publish and update with the CLI
Save this v4 content as profile.json and replace its synthetic Runner with one readable in your project:
{
"schema": "envloop.profile/v5",
"name": "examples/shell",
"type": "sandbox",
"runner": "examples/shell@0123456789abcdef0123456789abcdef01234567",
"params": {"count": 2},
"resources": {"cpus": 2, "memory_mb": 1024}
}
The CLI supplies the version separately:
el profile create --name examples/shell --version 1 --file profile.json
el profile list --job-type sandbox --json
el profile get examples/shell@1
el profile export examples/shell@1 --output exported-profile.json
el profile create --name examples/shell --version 2 --file exported-profile.json
el profile set-default examples/shell@1
The HTTP create request is {"spec": PROFILE_CONTENT, "version": "1", "visibility": "private"}; visibility is optional. Do not add version inside v4 content. Export is masked raw content, importable with the supplied name/version in the same authorized project. Opaque Secret references cannot be restored across projects by ordinary create.
Save {"params":{"count":3}} as changes.json:
el profile update examples/shell@2 --version 3 --patch changes.json
el profile fork examples/shell@2@--name --name examples/copy --version --version 1
el profile set-default examples/shell@3 --expected-version 1
Update merges parameter keys; objects/arrays replace a whole value and null is a value. Omitted fields, Secret markers and visibility remain. Explicit metadata/sections replace that field. Neither update nor fork changes the default. v3/v4 forks use the authorized server copy endpoint, including readable public sources: fork first, then edit the copied identity as another new version. They reject simultaneous patch/Secret replacements in the SDK. A fork defaults to private. Archived versions remain readable but cannot be used for new submissions.
from envloop import Client
with Client.remote() as client:
client.profiles.create({"schema": "envloop.profile/v5", "name": "examples/shell",
"type": "sandbox", "params": {"count": 2}}, version="1")
client.profiles.update("examples/shell@1", version="2", patch={"params": {"count": 3}})
For historical updates, v1 uses literal root params, v2 uses case-insensitive spec.params, and v3 uses parameters. v3 Secrets protect only credential-shaped string values; arbitrary names and nonstring JSON remain ordinary values. v4 secret_params may mark any supported JSON parameter value. Read placeholders preserve Secrets in new versions within their authorized scope.
Reference a v5 Profile from a JobSpec
Save this envelope as job.json:
{
"request_id": "YOUR_UNIQUE_REQUEST_ID",
"spec": {
"schema": "envloop.job/v2",
"type": "sandbox",
"profile": "examples/shell@2"
},
"overrides": {"params": {"count": 4}}
}
el job submit --type sandbox --spec job.json
client.jobs.submit_spec(body) sends this same canonical envelope for all four Job types. Set spec.type to match the Profile; Agent needs a Dataset input, and Inference needs spec.name. The platform checks all effective dependencies and freezes the Profile ID/version/hash. Precedence is overrides > Profile > spec > declaration defaults > platform defaults. Runner defaults are applied before Recipe defaults; Dataset only supplies a default Runner. Inputs replace a whole slot. The final authorized, pinned JobSpec feeds both public specification queries and worker delivery. POST /v1/jobs/resolve accepts {spec, overrides?} to inspect resolution without submitting. Existing jobs.submit, training_jobs and submit_inference requests remain supported. Historical --profile/named Profile requests are separate; use the canonical --spec envelope for v5.
Edit, change the default and archive
Edit as new version preserves the exact source identity/type and publishes a new version. Fork from existing starts another name. The original content/hash remain unchanged. A bare name or @latest selects the newest unarchived published version; explicit @VERSION and IDs select that version exactly. Set as default uses an expected-version check; publication never changes it implicitly. Archive clears an archived default and preserves historical frozen Jobs. Permissions apply equally to imports, forks and edits.
Secret parameters from the CLI
For v3/v4, fork an exact copy first and replace Secrets in a later update; their fork request does not accept Secret changes. v3 has no marker list, so secret_values applies to formats with secret_params.
For create/update and historical v1/v2 forks, give write-only Secret parameters, such as a token your Runner reads, with --secret NAME[=SOURCE] on el profile create, update or fork (el 1.25 or later). SOURCE is prompt (the default; hidden input on a terminal), stdin (one line), env:VARIABLE or file:PATH:
el profile create --name my-team/cu --version 1 --file profile.toml --secret HF_TOKEN=env:HF_TOKEN --secret DB_PASSWORD=file:./db-password.txt
printf '%s\n' "$NEW_TOKEN" | el profile update my-team/cu@1 --version 2 --patch changes.json --secret HF_TOKEN=stdin
- Values never come from the command line:
NAME=VALUEis refused without echoing the value, and at most one Secret can come from stdin. - The name must look like a credential (ending in
API_KEYor_TOKEN, or containingPASSWORD,SECRET,CREDENTIAL,AUTHORIZATION,ACCESS_TOKEN,AUTH_TOKEN,BEARER_TOKENorPRIVATE_KEY) or already be listed insecret_params; otherwise the CLI stops withPROFILE_SECRET_NAME_INVALIDbefore sending anything. The CLI adds each name tosecret_params. - On update and fork, Secrets you do not name are kept and the ones you name are replaced. The source version and the default do not change.
- The SDK takes
secret_values={"HF_TOKEN": value}onclient.profiles.create,put,update,forkandimport_spec.
A Secret in a Profile is the Runner's own credential. For model calls metered to your project, a project Admin can instead grant the Runner model access.
For current Train and Inference Recipes, supply a Hugging Face read token in spec.params.hf_token or overrides.params.hf_token when submitting a Job. This works without a Profile. Generate the request from a private credential source and keep it out of version control and smoke reports. To reuse a credential, save it as the hf_token Secret in a v5 Profile and select that version. Use --secret hf_token=env:HF_TOKEN to read it from your shell when publishing a Profile. Use a token with access to the pinned model and a Recipe you trust with the credential.
A Runner may declare an optional credential-named parameter, such as astra_api_key, with an empty string or null default. Submission accepts that unset default for Runners other than the managed Claude Code Agent; it does not configure or authorize any credential. A populated credential-named value still needs a Profile Secret listed in secret_params, and a value shaped like a read placeholder ({"redacted": true, ...}) is refused with INVALID_PROFILE whether set is true or false. The managed Agent model connection policy is unchanged: it refuses credential-named parameters and takes its key only through the Profile model connection.
Bind a Runner Revision
This v1 binding is distinct from the overridable runner default in v2 Profiles; the v2 default behavior is unchanged.
A v1 named Profile version (envplatform.profile/v1) can include a top-level runner. Copy the immutable name and Revision from
el runner list --json using its name and full revision, for example team/eval@0123456789abcdef0123456789abcdef01234567.
The Revision must already be registered and readable in your project. Branches, tags, abbreviated
commits and Runner defaults are not accepted as Profile bindings.
Save this v1 example as profile.json and replace the Runner selector with a readable full catalog reference:
{"schema_version":"envplatform.profile/v1","name":"team/eval-legacy","version":"1","params":{"seed":42}}
RUNNER="team/eval@0123456789abcdef0123456789abcdef01234567"
el profile create --name team/eval-legacy --version 1 --file profile.json --runner "$RUNNER"
el job submit --dataset DATASET_NAME@VERSION --profile team/eval-legacy@1
You can also declare runner in the Profile JSON, alongside params, or publish it through
client.profiles.create(spec). profile get and exports include the binding. If both the JSON and
--runner specify it, they must agree. profile update preserves an omitted binding; supply a
different Runner and a new Profile version to change it. The Profile SHA-256 covers the binding.
For Agent Dataset Jobs, the platform selects the bound Runner and freezes its full commit, package
and index hashes. A different explicit --runner returns PROFILE_RUNNER_CONFLICT; an equivalent
selector for the same Revision is accepted. Runner access is checked again when admitting a new
Job. Retries retain the original frozen selection. Profiles without a binding keep their existing
Runner selection behavior. A bound Profile with an inline Task source returns
PROFILE_RUNNER_UNSUPPORTED because that path cannot execute a catalog Runner. For training, use the training workflow.
Configure the Harbor Agent model environment
Use these actual values in spec.params and mark MODEL_API_KEY as Secret:
| Key | Meaning |
|---|---|
AGENT_NAME | Harbor Agent: claude-code, codex, terminus-2, computer-1 or single-call |
AGENT_VERSION | Exact X.Y.Z, for example 2.1.208. Required for Agents installed in the sandbox (claude-code, codex); not allowed for terminus-2, computer-1 and single-call |
MODEL_NAME | Provider model ID |
MODEL_PROTOCOL | anthropic, openai (Chat Completions) or openai-responses (Responses API, codex only) |
MODEL_BASE_URL | HTTPS base URL of that protocol, including your own EnvLoop inference endpoint (evaluate a trained model) |
MODEL_API_KEY | Original provider key |
AGENT_KWARGS | Optional JSON object string for terminus-2, computer-1 and single-call only |
Supported combinations:
| Agent | Protocol | Where Harbor runs it |
|---|---|---|
claude-code | anthropic | Inside the Agent sandbox |
codex | openai-responses | Inside the Agent sandbox |
terminus-2, computer-1 | anthropic or openai | Trusted host Runner; commands run in the sandbox |
single-call | openai | Harbor process of the compose Runner VM or the trusted host Runner; one model call, no commands (score a classifier or router) |
For Agents inside the sandbox, the platform maps the model values to the protocol's native variables: ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL, ANTHROPIC_API_BASE and ANTHROPIC_MODEL for anthropic; OPENAI_API_KEY, OPENAI_BASE_URL and OPENAI_API_BASE for the OpenAI protocols. terminus-2, computer-1 and single-call call the model from the host: during the Agent phase only, the platform relays each non-streaming call to MODEL_BASE_URL with your key and records its token usage; the key never enters the sandbox. In both cases the original key does not enter the host Runner environment or Harbor job configuration. The model environment is removed before the verifier runs. Job type, Runner, Agent and model are distinct selections.
AGENT_KWARGS is a flat JSON object. terminus-2 accepts max_turns (integer 1–1000) and temperature (0–2); computer-1 also accepts desktop_width, desktop_height, window_width, window_height (integers 320–7680) and provider (litellm). single-call accepts temperature (0–2, default 0), max_tokens (integer 1–65536), top_logprobs (integer 0–20; 0 requests no logprobs), system (a system message, 1–32768 characters), mode (text or logprob; logprob needs top_logprobs of at least 1), answer_path (absolute path for the answer, default /app/answer.txt, not under /tests, /solution or /logs/verifier), keep_candidates (boolean) and enable_thinking (boolean, sent as vLLM chat_template_kwargs; set it only for vLLM or SGLang endpoints, since hosted APIs may reject the field). The whole AGENT_KWARGS string is limited to 4096 characters. Unknown or duplicate keys are rejected. For example {"max_turns": 50, "temperature": 0.2}.
Copy-paste example: terminus-2 over the openai protocol against an OpenAI-compatible endpoint, here your own EnvLoop inference endpoint (any OpenAI-compatible HTTPS base URL works the same way):
{
"schema_version": "envplatform.profile/v2",
"name": "team/terminus-openai",
"version": "1",
"secret_params": ["MODEL_API_KEY"],
"spec": {
"params": {
"AGENT_NAME": "terminus-2",
"MODEL_PROTOCOL": "openai",
"MODEL_BASE_URL": "https://api.envloop.ai/v1/jobs/YOUR_INFERENCE_JOB_ID/inference",
"MODEL_NAME": "YOUR_INFERENCE_JOB_MODEL",
"MODEL_API_KEY": "YOUR_ENVLOOP_KEY",
"AGENT_KWARGS": "{\"max_turns\": 50, \"temperature\": 0.2}"
}
}
}
el profile create --name team/terminus-openai --version 1 --file terminus-profile.json
el job submit --dataset DATASET_NAME@VERSION --profile team/terminus-openai@1
computer-1 takes the same fields with a computer-use capable model, plus optional screen sizes:
"AGENT_NAME": "computer-1",
"MODEL_PROTOCOL": "anthropic",
"AGENT_KWARGS": "{\"max_turns\": 30, \"desktop_width\": 1280, \"desktop_height\": 800, \"window_width\": 1280, \"window_height\": 800}"
AGENT_KWARGS is a JSON object encoded as a String value. The Runner always runs computer-1 through LiteLLM, so provider may be omitted.
mini-swe-agent is not supported: Harbor installs it with an unpinned LiteLLM that currently fails before the first model call. AGENT_NAME=oracle, or no AGENT_NAME, runs the Task's reference solution without a model.
Captured terminus-2, computer-1 and single-call model calls expose token observations in the Job details. Preserve source and completeness; an absent observation is unavailable.
Optional String values include AGENT_TIMEOUT_SEC and, for claude-code only, CLAUDE_CODE_EFFORT_LEVEL, CLAUDE_CODE_MAX_OUTPUT_TOKENS, MAX_THINKING_TOKENS and CLAUDE_CODE_MAX_TURNS. Numeric settings are positive integer strings; Agent timeout cannot exceed Job timeout. Set Job timeout in spec.execution.timeout_seconds, rather than an execution parameter. Model and Agent versions determine supported effort/token settings.
While you type a new Secret, the mask keeps the first and last four Unicode characters around ********; nonempty strings of eight characters or fewer are fully masked. JSON/TOML previews containing Secrets are read-only; return to key-value editing to change them. Root secret_params lists string keys in spec.params.
Secret values are write-only. After publication, Console, el profile get, el profile export and the Profile API return a placeholder such as {"redacted": true, "set": true, "fingerprint": "hmac-sha256:1a2b3c4d", "profile_id": "…"} instead of the value. The fingerprint is a keyed hash that only helps you recognize which key is stored; it is null when the platform has no fingerprint key. Credential-shaped names (for example *_API_KEY, *_TOKEN, *PASSWORD*) are treated the same way, including v2 spec.env and v3 parameters. A v3 Profile has no secret_params, so in v3 a parameter is Secret only when its name is credential-shaped; this applies to Profile reads, to the effective values returned by Profile resolution, and to Job and Trial reads. To keep a Secret in a new version, send the placeholder back unchanged; el profile update, el profile fork, Edit as new version and Fork from existing do this for you, and a blank Secret field in Console keeps the saved value. To replace it, enter a new value. A placeholder only works for the same key in a version of the same project. Without a fingerprint, the platform checks the source version, destination key and set state; moving a placeholder to another Secret key can only retain that destination key’s own stored value. Storage and execution still use the original value, and the version SHA-256 still hashes the stored content. In public snapshots, Secret values are masked at their own key. Copies of very short values may remain inside other strings, so do not rely on this replacement for general content redaction. General Runner logs are not automatically redacted.
Know the limits. Write-only protects reads only. Anyone who can submit Jobs in the project can run your Profile with their own Task or Runner code, or override MODEL_BASE_URL, and so obtain the value; keep keys out of projects with untrusted Job submitters. Because the version SHA-256 covers the stored value, a reader can verify guesses of a low-entropy Secret offline, so store only high-entropy credentials such as provider API keys, never PINs or short passwords. Values in v2 spec.env are hidden only when their name looks like a credential; put other sensitive values such as GH_PAT or DATABASE_URL in spec.params and mark them Secret. In a v3 Profile, give each sensitive parameter a credential-shaped name such as GH_TOKEN or DATABASE_PASSWORD, because other v3 parameter names are returned in plain text. The trusted Agent path removes injection before verifier execution and redacts captured text artifacts. Replacing a key requires a new version; revoke old credentials with the provider when needed. This mode does not add credential revocation; captured host-driven Agent usage retains its source. Historical structured encrypted model connections retain their existing contract.
Best practice: evaluate one task with a Profile
Start with one task to check model configuration, execution, scoring and artifacts before expanding an evaluation. Pin the Profile version, Dataset version and Runner Revision to make the inputs traceable.
Replace the example resource names and IDs below with resources readable in your project.
1. Prepare access and a model Profile
Complete Quickstart authentication. The platform API Key authenticates el; the model provider Key goes in the Profile's MODEL_API_KEY. Use a project Key with the required catalog, Job, Trial, log and artifact permissions.
In Assets → Profiles, publish examples/model-eval version 1 using the supported Harbor Agent integration:
| Parameter | Value or action |
|---|---|
AGENT_NAME | claude-code |
AGENT_VERSION | Your exact supported Agent version |
MODEL_NAME | Your provider's model ID |
MODEL_PROTOCOL | anthropic |
MODEL_BASE_URL | Your provider's Anthropic-compatible HTTPS base URL |
MODEL_API_KEY | Enter the original model Key and select Secret |
Choose a Runner that supports these parameters. First use a small provider request to confirm the Key can access that exact model and endpoint; keep credentials and responses private. Profile read/export responses show only a Secret fingerprint, never the value. If a key was published before Secrets became write-only, or in a v3 Profile before v3 parameters became write-only, rotate it with the provider.
2. Select a published task and pin inputs
el auth status --check --json
el profile list --name examples/model-eval --json
el dataset list --limit 20 --json
el runner list --limit 20 --json
Use Dataset discovery to choose a published version and one member Task ID. Copy a readable Runner's name and full immutable Revision from the listing. Replace the synthetic selectors below before running. Generate a request ID once, save it and reuse it only when retrying the same submission after an uncertain response.
REQUEST_ID="profile-eval-$(python -c 'import uuid; print(uuid.uuid4().hex)')"
el job submit \
--dataset examples/sample-tasks@1 \
--task-id examples/text-check \
--runner examples/agent-runner@0123456789abcdef0123456789abcdef01234567 \
--profile examples/model-eval@1 \
--timeout-seconds 600 \
--delete-delay-seconds 0 \
--request-id "$REQUEST_ID"
Save the returned job_id immediately. Agent is the default Job type; the Profile supplies model configuration and the platform chooses execution resources. With a v1 Runner binding, the explicit Runner must resolve to the same Revision; v2 Runner defaults can be overridden. See Runner binding.
3. Verify results and download artifacts
Replace YOUR_JOB_ID with the returned ID and YOUR_TRIAL_ID with the Trial ID from trial list. For the download, use the matching asset_id from the artifact list.
el job get YOUR_JOB_ID
el job log YOUR_JOB_ID --source runtime --follow --json
el trial list --job-id YOUR_JOB_ID --json
el trial get YOUR_TRIAL_ID
el trial result YOUR_TRIAL_ID
el job result YOUR_JOB_ID
el trial artifact list --trial-id YOUR_TRIAL_ID --limit 100 --json
el trial artifact download --ref ASSET_ID --output ./evaluation-artifacts
Read the execution state and verifier reward separately. For a binary task, check the expected passing reward and the verifier’s report. Confirm the recorded Agent/model identity and required artifacts. If logs are truncated, inspect the reported dropped bytes; compare downloaded file sizes and hashes with artifact metadata when available.
4. Keep a private record and finish cleanup
Keep resource versions, request/Job/Trial IDs, command arguments, exit codes and verification conclusions in a private run record. Review logs, artifacts and screenshots before sharing; remove credentials, private prompts, task content, signed links and project-specific identifiers. Publish synthetic examples instead of raw run transcripts.
With --delete-delay-seconds 0, check the Trial’s cleanup status after it ends. To cancel an unfinished evaluation, use el job stop YOUR_JOB_ID and read back the Job/Trial outcome. Revoke temporary platform Keys when no longer needed and retain only intended artifacts.
Once this single-task check meets your criteria, expand the evaluation deliberately. Publish a new Profile version to change model parameters; changing a default or a later version does not rewrite a completed Job's frozen inputs.
Inline parameters
--profile selects a published Profile, not a JSON string. One-off SDK parameters use the profile dictionary; API overrides of a named Profile use profile_overrides and cannot be combined with an inline Profile. Inline values have no Secret display metadata.
from envloop import Client
with Client.remote() as client:
job = client.jobs.submit(source="./my-task", profile={"seed": 42})
Legacy Task code reads JSON from ENVLOOP_TASK_PROFILE. Schema-enabled Runner code can read SEED from its environment. Passing a seed only affects code that uses it.
Workspace named profiles
Use el profile list, el profile get NAME@VERSION and el profile export NAME@VERSION --output profile.json to inspect authorized versions. Names, defaults and pagination are scoped to the selected workspace/project. Different content cannot overwrite an existing version. Job submission freezes the selected Profile identity/hash, Runner revision and effective values; later edits or archives cannot change that Job.
CLI complete ProfileSpec
profile create --file accepts complete TOML or JSON. Historical name/version fields must match the command; v4 version is supplied separately. The historical Agent editor keeps basic information outside its configuration sections. Historical envplatform.profile/v1 documents with root params are still accepted without rewriting them.
Defaults and snapshots
A bare Profile name and NAME@latest select the newest unarchived published version by created_at, breaking ties by stable ID descending. This behavior is enabled by default. All-archived names reject new submissions. The separately managed default metadata does not override latest selection; changing it still requires --expected-version. Every accepted Job keeps its resolved Profile, Runner and Recipe versions, including when the same request is retried after a new publication.
Profile SDK methods are listed in Reference.
A legacy v1 Profile that stores only parameters still needs Dataset or Task input at submission. Version selection does not supply missing execution input.
v2 validation diagnostics
INVALID_PROFILE returns bounded details: field is the field path, reason is a stable rule, and hint explains the next step. For example, spec.model and root model are unknown fields. Put model parameters in the corresponding Runner-declared spec.params names, such as a declared MODEL_NAME; do not add a separate model configuration schema. Diagnostics describe the fields actually submitted, without guessing the content of another file or echoing Secrets. Historical v1 content and version digests stay unchanged; Secrets remain write-only.