Skip to content
Sandworld

Search the docs and guides

    Environments

    OpenEnv, Verifiers, Inspect, Gymnasium and Harbor: environment formats compared

    Gymnasium is an API, OpenEnv a containerised server, Verifiers Prime Intellect’s library, Inspect an eval framework, Harbor a task layout. How to choose.

    By the Sandworld teamUpdated 7 min read

    OpenEnv, Verifiers, Inspect, Gymnasium and Harbor all let a harness drive an environment and get a score, but they sit at different layers. Gymnasium is a Python API for the reset-and-step loop. OpenEnv serves an environment from a container over WebSocket. Verifiers packages tasks, tools and rewards for Prime Intellect’s training stack. Inspect is an evaluation framework built from datasets, solvers and scorers. Harbor packages each task as a directory an agent works in. ATIF isn’t an environment format at all: it records the trajectories that come out. Pick the one your trainer or eval harness already speaks; a well-built environment can ship in all of them, with the same verifier as the reward.

    How do the formats compare at a glance?

    FormatMaintained byWhat you getReward comes fromTypical use
    GymnasiumFarama FoundationA Python environment with reset() and step()The value step() returnsRL libraries and custom training loops
    OpenEnvAn open project with a technical committee that includes Meta-PyTorch and Hugging FaceA Docker container serving reset, step and state over WebSocket, with MCP toolsThe observation after each stepRL training with TRL, Unsloth, SkyRL and others
    VerifiersPrime Intellect (MIT licence)A Python package: tasks, tools as MCP toolsets, rewardsReward functions in the packageThe Environments Hub, prime-rl and Prime’s hosted training
    InspectUK AI Security Institute and Meridian LabsA task: dataset, solver and scorerThe scorerCapability and safety evaluations
    HarborThe creators of Terminal-BenchA task directory: instruction, environment, solution and testsA reward file the tests writeEvaluating agent harnesses such as Claude Code or Codex CLI
    ATIFHarbor (an RFC)One JSON document per episodeThe recorded outcomeSharing trajectories for analysis and fine-tuning

    Gymnasium: the reset-and-step API

    Gymnasium’s Env API is the contract most RL code assumes: reset(seed) returns an observation and an info dictionary, and step(action) returns the next observation, a reward, whether the episode terminated or was truncated, and info. For language agents the observation and action are text, so the spaces are text spaces holding JSON or prose. Gymnasium says nothing about tools, sandboxes or multi-turn chat, which is both its strength (anything fits) and its limit (every environment invents its own conventions for them).

    OpenEnv: environments as servers

    OpenEnv packages each environment as a Docker container that runs locally, on a cloud sandbox or as a Hugging Face Space. Clients call reset(), step() and state(), sync or async, over a WebSocket. MCP environments also expose their tools to agents at /mcp, while training continues through step() and rewards. Its integrations include TRL, whose GRPOTrainer accepts an environment factory, plus Unsloth, SkyRL, ART and Oumi. A technical committee governs it, with members including Meta-PyTorch, Hugging Face, Prime Intellect, Nvidia, Mercor and Microsoft. The README warns that it’s in early development and its APIs may still change, so pin a version.

    Verifiers: Prime Intellect’s environment library

    verifiers is an MIT-licensed library “for creating environments to train and evaluate LLMs”, tightly integrated with Prime Intellect’s Environments Hub, its prime-rl trainer and its hosted training. In its current design an environment defines the control flow among agents in an episode (a single agent, retries, or an agent paired with a judge or a simulated user); a harness is the program the model runs in, such as Claude Code or Codex; and a taskset’s tools are installed into the harness as MCP servers (verifiers docs). The Hub lists more than 2,500 community environments (Prime Intellect). Choose it when you train or evaluate on Prime’s stack, or want to publish to the Hub.

    Inspect: an evaluation framework

    Inspect, from the UK AI Security Institute and Meridian Labs, defines an evaluation as a task that brings together a dataset, a solver that produces an answer (from a single model call to a full agent) and a scorer that grades it. It has built-in tool calling, agents, support for external agents such as Claude Code, sandboxes on Docker, Kubernetes, Modal and others, and a log viewer. Choose it for evaluations you want to inspect step by step and share with safety and policy teams, rather than for rollouts at training volume.

    Harbor: task directories for agent harnesses

    Harbor comes from the creators of Terminal-Bench and is the official harness for Terminal-Bench 2.0. Each task is a directory with an instruction, an environment, an oracle solution and tests; the tests write a reward file, and the verifier runs in its own sandbox by default (Harbor verifier docs). Harbor runs agents such as Claude Code, OpenHands and Codex CLI in Docker locally or on cloud sandboxes such as Daytona and Modal. Choose it to evaluate whole agent harnesses rather than bare models. Several vendors exchange tasks in it: HUD imports and exports Harbor tasks, and Turing exports them.

    ATIF: a format for what happened

    The Agent Trajectory Interchange Format is a Harbor RFC for recording an episode as JSON: the steps, tool calls, observations and final metrics. It isn’t runnable. Use it to share agent runs and expert demonstrations for analysis, debugging and supervised fine-tuning, and validate files with Harbor’s trajectory validator before you rely on them.

    Which format should you choose?

    • Training with TRL, Unsloth or SkyRL: OpenEnv.
    • Training or evaluating on Prime Intellect: Verifiers.
    • Safety or capability evaluations you’ll review in detail: Inspect.
    • Your own RL loop or a classic RL library: Gymnasium.
    • Comparing agent harnesses, or running tasks in a container with a CLI agent: Harbor.
    • Sharing or training on recorded episodes: ATIF.

    If you’re buying environments, ask for more than one. Your stack will change faster than the tasks do.

    What should stay the same in every format?

    • The reward. It should be the environment’s own verifier, identical in every package, so a score in Inspect and a reward in OpenEnv mean the same thing.
    • What the agent can see. Tools and observations only. Reference solutions and verifiers stay on the evaluator’s side.
    • The validation. Run every package through its framework’s own validator with two policies: the reference solution must score 1 and a do-nothing policy must score 0, on every task.
    • Versions. Pin the environment version and the framework version in anything you report.

    What goes wrong in practice?

    • Dependency conflicts. When we validated Sandworld’s packages, verifiers 0.4 pinned mcp==2.2.0 while openenv 0.14 needed mcp<2, so the two had to be installed in separate environments.
    • Reward timing. Some formats expect a reward per step, others one at the end. Decide whether intermediate steps score 0 and the verdict arrives on submit, or whether partial credit is reported, and document it.
    • Reachability. On hosted runtimes, the evaluator must reach the environment server. Run it as a service next to the trainer or give it a public URL.
    • Moving APIs. OpenEnv and Verifiers are both young and changing; pin versions and rerun validation on upgrade.

    How does Sandworld ship one world in all of them?

    Each Sandworld world builds into a versioned Docker image that speaks OpenEnv’s protocol and Sandworld’s REST API, with no account and no outbound network. On top of it, an exporter writes OpenEnv, Verifiers, Inspect and Gymnasium packages and ATIF trajectories, and every task also exports as a Harbor package. On 22 November 2026 each package was checked with its framework’s own tools, with the reference solution scoring 1 and a do-nothing policy 0. The exports are in beta and not yet published to a registry or hub, so we build the images and packages you need on request; the exports docs list the exact checks and limits.

    Frequently asked questions

    What is OpenEnv?

    An open project for serving RL environments as Docker containers that clients drive with reset, step and state calls over WebSocket, with MCP tools for agents. It integrates with TRL, Unsloth, SkyRL and others, and its maintainers warn that the APIs may still change.

    What is the difference between OpenEnv and Gymnasium?

    Gymnasium is an in-process Python API: reset and step return observations and rewards. OpenEnv runs the environment as a separate server in a container and adds a network protocol, packaging and MCP tools, which suits language-model training at scale.

    What is Prime Intellect’s verifiers library?

    An MIT-licensed Python library for building environments to train and evaluate LLMs, integrated with Prime Intellect’s Environments Hub, its prime-rl trainer and its hosted training.

    Is ATIF an environment format?

    No. ATIF, the Agent Trajectory Interchange Format, records what happened in an episode as JSON: steps, tool calls, observations and metrics. It’s for sharing and training on trajectories, not for running tasks.

    Can one environment support several formats?

    Yes, if the verifier is the reward in every package. Sandworld builds each world into one Docker image and exports OpenEnv, Verifiers, Inspect, Gymnasium and Harbor packages from it, in beta. None is in a public registry yet, so we build them for you on request.

    Try it

    See every idea here in a working environment.

    The examples come from real Sandworld tasks. Play one in your browser — every tap is the tool call an agent would make — then read the verifier’s check-by-check verdict.