Learning resourcesReviewed · E2B

NVIDIA NeMo Gym E2B setup guide

This guide helps AI agent developers run NVIDIA NeMo Gym tasks in E2B sandboxes, but the documented provider requires installation from the repository. It explains configuration, image-to-template mapping, sandbox cleanup and security settings. NeMo Gym continues running on the user's own machine or cluster.

Researched 25 Nov 2026

In short.

This guide is for developers evaluating or training AI agents with NVIDIA NeMo Gym on E2B, but the documented provider requires a repository installation. NeMo Gym stays on the user's machine or cluster while task commands, file transfers and verification use individual E2B sandboxes. The page provides installation and configuration examples, explicit template provisioning, lifecycle details and security defaults. It identifies nemo-gym 0.5.0 as lacking the provider and requires e2b>=2.36.0,<3.0.0. Costs, licensing, performance and runtime reliability are not established.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete page at [https://docs.e2b.dev/agents/nemo-gym.md], including the repository-installation notice, provider restrictions, configuration and template examples, lifecycle details and security notes. Linked pages, repository files, package metadata, pricing and licensing terms are outside this scope. No commands were executed, and runtime behavior, performance, security effectiveness and training outcomes were not assessed.

The overview

Identity

E2B's NVIDIA NeMo Gym documentation page explains how to connect NeMo Gym to the e2b sandbox provider. NeMo Gym is described as a library for evaluating and training models and agents against environments containing tasks, an agent harness, a verifier and per-task execution state.

The guide is available at [https://docs.e2b.dev/agents/nemo-gym.md]. It links to the NVIDIA NeMo Gym repository at [https://github.com/NVIDIA-NeMo/Gym].

Assessment

The guide is useful for developers who already have, or are preparing, a NeMo Gym environment and want task execution in E2B. It gives concrete configuration paths, launch commands and compatibility restrictions that help identify integration work before a run.

Its scope is the sandbox connection. Dataset preparation, full model configuration, training outcomes and comparative performance remain outside the documented walkthrough.

Users

The main audience is developers and researchers operating NeMo Gym agent evaluation or training environments. It is especially relevant when a harness needs shell commands and verification scripts to execute in separate task sandboxes.

Beginners need familiarity with command-line installation, environment variables and YAML configuration. Experienced developers receive details about provider options, image mapping, timeout settings and gateway endpoints.

Capabilities

The documented provider creates an E2B sandbox for each task and handles task commands, file transfers and verification there. It supports template selection and mappings from OCI container image references to previously built E2B templates.

The configuration supports the hosted E2B service or an E2B-compatible gateway. A gateway requires both api_url and sandbox_url from its operator; compatibility with particular gateways is not assessed.

Using it

Requirements

The page requires a NeMo Gym repository checkout with the sandbox extra, an E2B API key and e2b>=2.36.0,<3.0.0. It states that the cited PyPI release, nemo-gym 0.5.0, does not contain this provider.

NeMo Gym runs on the user's machine or cluster and needs compatible agent and model configuration. Harnesses supplying OCI image references require corresponding create.template_map entries. Minimum Python version, host hardware requirements and model access requirements are not specified.

Mechanism

For each task, NeMo Gym resolves a template, creates an E2B sandbox and sends task execution through it. Provider configurations share the instance name sandbox, allowing a compatible harness using sandbox_provider: sandbox to change backends by swapping the provider configuration path.

Cleanup is best-effort and runs outside the critical path. The sandbox lifetime is the fallback for reclaiming orphaned sandboxes: create.timeout_s applies unless the harness overrides it through sandbox_spec.ttl_s.

NeMo Gym appends nemo-gym/<version> to the E2B SDK User-Agent through set_integration. An explicit custom User-Agent overrides that attribution.

Setup

From a repository checkout, the documented installation command is uv sync --extra sandbox. Set E2B_API_KEY in the environment, then layer nemo_gym/sandbox/providers/e2b/configs/e2b.yaml alongside the agent and model configurations. Leave api_url and sandbox_url unset for hosted E2B.

The supplied configuration sets a 120-second request timeout, a 3,600-second sandbox lifetime, a 180-second default execution timeout, background execution and two reconnect attempts. It also sets secure: true, allow_internet_access: true and strict_resources: false. These are configuration values; observed behavior is unassessed.

OCI images require advance template provisioning. The build command generates a mapping to place under sandbox.e2b.create.template_map. Matching image, CPU and memory inputs produce deterministic template names so an existing matching template can be reused.

Example

The documented launch example is gym env start --config responses_api_agents/mini_swe_agent_2/configs/mini_swe_agent_2.yaml --config nemo_gym/sandbox/providers/e2b/configs/e2b.yaml --config responses_api_models/vllm_model/configs/vllm_model.yaml. It combines the mini_swe_agent_2 harness, E2B provider and vLLM model configuration.

The template-building example is python -m nemo_gym.sandbox.providers.e2b.build --image ghcr.io/acme/task:1.0 --cpu-count 8 --memory-mb 16384 --output template_map.yaml. It illustrates preparing a template with eight CPUs and 16,384 MB of memory, then adding the resulting image-to-template mapping to the provider configuration. The example does not establish that the illustrative image is available.

Assessment & evidence

Limitations

The provider accepts only template under provider_options and rejects other options before allocating a sandbox. It also rejects OCI image references without a create.template_map entry. Existing harness configurations may therefore need adjustment.

Template builds are explicit operations and never happen automatically during sandbox creation. Cleanup is best-effort, so lifetime settings remain necessary for reclaiming orphaned resources.

The page provides no benchmark results, successful execution records, isolation assessment or measured reliability. Model quality and training improvement are not established.

Reasoning

The integration fits work that needs task execution separated from the machine coordinating NeMo Gym. That separation adds operational responsibilities: maintaining templates, supplying E2B credentials and choosing sandbox lifetimes. Deterministic template reuse can reduce repeated provisioning for matching image and resource inputs.

The security defaults require an access token for the sandbox envd service while allowing outbound internet. The page documents disabling internet access through create.allow_internet_access: false or restricting traffic through network rules.

The page says mini_swe_agent_2 removes e2b.connection.api_key, headers and api_headers from serialized worker configuration and passes them through the worker environment. That statement applies to the named harness; equivalent handling by other harnesses is unknown.

Alternatives

The page describes switching sandbox backends by replacing the provider configuration while retaining the shared sandbox instance name and a compatible harness. It does not identify or compare the other backends.

It also describes task execution on the NeMo Gym host as the execution location that E2B replaces. Comparative cost, speed, compatibility and isolation strength are unknown.

Evidence

The sole source is the complete E2B documentation page at [https://docs.e2b.dev/agents/nemo-gym.md]. It contains installation instructions, provider configuration, launch and provisioning examples, lifecycle notes and security guidance.

The linked NVIDIA reference [https://docs.nvidia.com/nemo/gym/latest/infrastructure/sandbox/e2b], repository, documentation index and outbound network documentation were not assessed. No commands were executed, and the guide's examples were not run.

Access & freshness

Costs

Cost is unknown. The page supplies no E2B execution rates, template-build prices, quotas, trial terms or model compute prices.

Template builds can create E2B resources, and sandbox lifetime determines how long orphaned sandboxes may remain before reclamation. These details matter for budgeting, but the page provides no basis for calculating a total.

Rights

The page provides no license text or redistribution terms for NeMo Gym, the E2B provider or the documentation. Its repository link alone does not establish those rights.

Rights to the OCI images and their contents are also unknown from this evidence. Reuse and redistribution permissions require separate verification.

Freshness

The page was captured on 25 November 2026. It describes the provider as absent from the cited latest PyPI release, nemo-gym 0.5.0, and presents pip install "nemo-gym[sandbox]" as an option after a release includes it.

No page publication date, update date or NeMo Gym repository commit is provided. Later release availability and compatibility beyond the stated E2B SDK range are unknown.

Actions

For adoption, identify a repository revision containing the provider, install the sandbox extra and configure E2B_API_KEY. Check that the intended harness supplies only supported provider options and that every OCI image reference has a prepared template mapping.

Choose network access and sandbox lifetime settings for the workload, and establish current pricing and applicable licenses. A future small trial should verify command execution, file transfers, verifier completion and cleanup with the intended harness; none of those behaviors has been tested here.

Evidence for this report

selected-page.txtselected · checked 2026-11-25