# Add an execution environment

> Add an execution environment - Build a custom execution environment when a model, job, application,
> or notebook requires something not contained in one of DataRobot's built-in environments.

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-05-06T18:17:10.041034+00:00` (UTC).

## Primary page

- [Add an execution environment](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-environment-workshop/nxt-add-custom-env.html): Full documentation for this topic (HTML).

## Sections on this page

- [Add an environment version](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-environment-workshop/nxt-add-custom-env.html#add-an-environment-version): In-page section heading.
- [View environment information](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-environment-workshop/nxt-add-custom-env.html#view-environment-information): In-page section heading.
- [Manage environments](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-environment-workshop/nxt-add-custom-env.html#manage-environments): In-page section heading.

## Related documentation

- [NextGen UI documentation](https://docs.datarobot.com/en/docs/workbench/index.html): Linked from this page.
- [Registry](https://docs.datarobot.com/en/docs/workbench/nxt-registry/index.html): Linked from this page.
- [Environments](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-environment-workshop/index.html): Linked from this page.
- [preparing an execution environment folder](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-environment-workshop/nxt-create-custom-env.html#custom-environment-guidelines): Linked from this page.
- [drop-in environment](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-environment-workshop/nxt-drop-in-envs.html): Linked from this page.
- [user](https://docs.datarobot.com/en/docs/platform/admin/manage-entities/manage-users.html#manage-execution-environment-limits): Linked from this page.
- [group](https://docs.datarobot.com/en/docs/platform/admin/manage-entities/manage-groups.html#manage-execution-environment-limits): Linked from this page.
- [organization](https://docs.datarobot.com/en/docs/platform/admin/manage-entities/manage-orgs.html#manage-execution-environment-limits): Linked from this page.
- [creating a model version](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-model-workshop/nxt-custom-model-versions.html): Linked from this page.
- [new environment version](https://docs.datarobot.com/en/docs/classic-ui/mlops/deployment/custom-models/custom-model-environments/custom-environments.html#add-an-environment-version): Linked from this page.
- [implicit sharing](https://docs.datarobot.com/en/docs/classic-ui/modeling/special-workflows/cml/cml-custom-tasks.html#implicit-sharing): Linked from this page.

## Documentation content

To add an execution environment, you must upload a compressed folder in `.tar`, `.tar.gz`, or `.zip` format. Be sure to review the guidelines for [preparing an execution environment folder](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-environment-workshop/nxt-create-custom-env.html#custom-environment-guidelines) before proceeding. You may also consider creating a custom [drop-in environment](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-environment-workshop/nxt-drop-in-envs.html) by adding Scoring Code and a `start_server.sh` file to your environment folder.

**SaaS:**
> [!NOTE] Environment and version limits
> Next to the + Add environment and the + Add version buttons, there is a User-created environments badge indicating how many environments (or environment versions) you've added and how many environments (or environment versions) you can add in total. With the correct permissions, an administrator can set these limits at a [user](https://docs.datarobot.com/en/docs/platform/admin/manage-entities/manage-users.html#manage-execution-environment-limits) or [group](https://docs.datarobot.com/en/docs/platform/admin/manage-entities/manage-groups.html#manage-execution-environment-limits) level. The following status categories are available in this badge.

**Self-Managed:**
> [!NOTE] Environment and version limits
> Next to the + Add environment and the + Add version buttons, there is a User-created environments badge indicating how many environments (or environment versions) you've added and how many environments (or environment versions) you can add in total. With the correct permissions, an administrator can set these limits at a [user](https://docs.datarobot.com/en/docs/platform/admin/manage-entities/manage-users.html#manage-execution-environment-limits), [group](https://docs.datarobot.com/en/docs/platform/admin/manage-entities/manage-groups.html#manage-execution-environment-limits), or [organization](https://docs.datarobot.com/en/docs/platform/admin/manage-entities/manage-orgs.html#manage-execution-environment-limits) level. The following status categories are available in this badge.


Navigate to the Registry and click the Environments tab. Click + Add environment to configure the environment details and add it to the workshop.

In the Add environment panel, under Environment files, select one of the following options:

**Build from source archive:**
[https://docs.datarobot.com/en/docs/images/nxt-add-exe-environment-details.png](https://docs.datarobot.com/en/docs/images/nxt-add-exe-environment-details.png)

**Upload a prebuilt image:**
[https://docs.datarobot.com/en/docs/images/nxt-add-exe-environment-details-2.png](https://docs.datarobot.com/en/docs/images/nxt-add-exe-environment-details-2.png)

**Pull from image URI:**
[https://docs.datarobot.com/en/docs/images/nxt-add-exe-environment-details-3.png](https://docs.datarobot.com/en/docs/images/nxt-add-exe-environment-details-3.png)

Image URI filtering
When adding an environment as an image URI, URI filtering allows only the URIs defined for your organization. If the URI you provide isn't allowed, a warning appears as helper text under the
Image URI
field. Hover over the helper text to view the URI filtering details. URI filtering is not enforced for API administrators.


| Option | Description |
| --- | --- |
| Build from source archive | Provide the archive containing a Dockerfile and any other files needed to build the environment image. |
| Upload a prebuilt image | Provide a prebuilt environment image saved as a tarball using the Docker save command. Optionally, you can also click Include reference source archive to upload the source archive used to build the image for reference purposes. This source archive is not used to build the environment. |
| Pull from image URI | Provide a URI for an environment image published to a container registry. The provided URI must be public or published in a registry accessible to DataRobot. Optionally, you can also click Include reference source archive to upload the source archive used to build the image for reference purposes. This source archive is not used to build the environment. |

> [!NOTE] Context file and environment image upload
> If you upload both a context and an image file, the priority is given to the image file. Even though a context file is not required when you upload an image file, you should still upload the context file, as your workflow flow may include functionality that requires context.

After you provide the environment files, provide the following information under Configuration:

| Field | Description |
| --- | --- |
| Name | The name of the environment. |
| Supports | The DataRobot artifact types supported by the environment: Models and Jobs, Applications, and Notebooks. |
| Programming Language | The language in which the environment was made. |
| Description | (Optional) A description of the execution environment. |
| Version description | (Optional) A description of the first execution environment version. |

When all fields are configured, click Add environment. The execution environment is ready for use. After you upload an environment, it is only available to you unless you [share](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-environment-workshop/nxt-add-custom-env.html#manage-environments) it with other individuals. To make changes to an existing environment, create a new [version](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-environment-workshop/nxt-add-custom-env.html#add-an-environment-version).

## Add an environment version

Troubleshoot or update an execution environment by adding a new version of it to the environment workshop. Navigate to the Registry and click the Environments tab. Click an execution environment, then + Add version to configure the environment details and add it to the workshop.

In the Add environment version panel, select one of the following options:

**Build from source archive:**
[https://docs.datarobot.com/en/docs/images/nxt-add-exe-environment-version-details.png](https://docs.datarobot.com/en/docs/images/nxt-add-exe-environment-version-details.png)

**Upload a prebuilt image:**
[https://docs.datarobot.com/en/docs/images/nxt-add-exe-environment-version-details-2.png](https://docs.datarobot.com/en/docs/images/nxt-add-exe-environment-version-details-2.png)

**Pull from image URI:**
[https://docs.datarobot.com/en/docs/images/nxt-add-exe-environment-version-details-3.png](https://docs.datarobot.com/en/docs/images/nxt-add-exe-environment-version-details-3.png)

Image URI filtering
When adding an environment as an image URI, URI filtering allows only the URIs defined for your organization. If the URI you provide isn't allowed, a warning appears as helper text under the
Image URI
field. Hover over the helper text to view the URI filtering details. URI filtering is not enforced for API administrators.


| Option | Description |
| --- | --- |
| Environment files |  |
| Build from source archive | Provide the archive containing a Dockerfile and any other files needed to build the environment image. |
| Upload a prebuilt image | Provide a prebuilt environment image saved as a tarball using the Docker save command. Optionally, you can also click Include reference source archive to upload the source archive used to build the image for reference purposes. This source archive is not used to build the environment. |
| Pull from image URI | Provide a URI for an environment image published to a container registry. The provided URI must be public or published in a registry accessible to DataRobot. Optionally, you can also click Include reference source archive to upload the source archive used to build the image for reference purposes. This source archive is not used to build the environment. |
| Configuration |  |
| Description | (Optional) A description of the execution environment version. |

> [!NOTE] Context file and environment image upload
> If you upload both a context and an image file, the priority is given to the image file. Even though a context file is not required when you upload an image file, you should still upload the context file, as your workflow flow may include functionality that requires context.

All past environment versions are saved, providing an accessible history of the execution environment. By default, when [creating a model version](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-model-workshop/nxt-custom-model-versions.html), if the selected execution environment does not change, the version of that execution environment persists from the previous custom model version, even if a newer environment version is available. For more information on how to ensure the custom model version uses the latest version of the execution environment, see [Trigger base execution environment update](https://docs.datarobot.com/en/docs/workbench/nxt-registry/nxt-environment-workshop/nxt-add-custom-env.html#trigger-base-execution-environment-update).

**Trigger base execution environment update**

To override the default behavior for execution environment version selection, where the execution environment version persists between custom model versions even when a [new environment version](https://docs.datarobot.com/en/docs/classic-ui/mlops/deployment/custom-models/custom-model-environments/custom-environments.html#add-an-environment-version) is available, you must temporarily change the Base Environment setting. To do this, create a new custom model version using a different Base Environment setting, then create a new custom model version, switching back to the intended Base Environment. After this change, the latest version of the custom model uses the latest version of the execution environment.

## View environment information

There is a variety of information available for each custom and built-in environment. Navigate to the Registry and then click the Environments tab. Click an execution environment, and access the following tabs:

**Image:**
[https://docs.datarobot.com/en/docs/images/nxt-view-exe-environment-details.png](https://docs.datarobot.com/en/docs/images/nxt-view-exe-environment-details.png)

**Image URI:**
[https://docs.datarobot.com/en/docs/images/nxt-view-exe-environment-details-image-uri.png](https://docs.datarobot.com/en/docs/images/nxt-view-exe-environment-details-image-uri.png)

> [!TIP] Access the image URI
> When you provide an image as an image URI, you can view the link to the source files under the Build status. In addition, if you need to download the built image, you can click Prepare image for download to build the image.Then, after the Preparing image step finishes, click Download built image. The Build ID appears after the image build finishes. You don't need to build the image if you don't intend to download it.


| Tab | Description |
| --- | --- |
| Overview | View environment information including:ID (click to copy)LanguageSupportsCreated by View environment version information including:Version ID (click to copy)DescriptionCreatedImage ID (click to copy)Build StatusBuild IDImage URIContent (click Download to download the context file or built image)Logs (click View log to open the Execution environment version log dialog box) |
| Deployments | For environments supporting custom models and jobs, view any associated deployments. |
| Notebooks | For environments supporting notebooks, view any associated notebooks. |

## Manage environments

You can manage execution environments from the Actions menu in the environment list or panel. From the actions menu, you can Share execution environments with anyone in your organization or Delete the execution environment:

> [!NOTE] Implicit sharing of environments
> An environment is not available in the registry for other users unless it was explicitly shared. That does not, however, limit users' ability to use blueprints that include tasks that use that environment. See the description of [implicit sharing](https://docs.datarobot.com/en/docs/classic-ui/modeling/special-workflows/cml/cml-custom-tasks.html#implicit-sharing) for more information.
