Skip to main content
CustomEnv is the bridge between the CLI and your own code. It loads a project’s env.json and exposes the standard Gym 5-tuple loop, so you can run the exact same phase-aware mission with your own policy or VLA and emit the same fine-tune records the CLI does. It lives in the CLI package:

Drive a mission

Constructor

Methods

The info dict from reset() / step() carries the current goal_prompt, phase index, and predicate state: everything your policy needs to act per phase.
Build and iterate on missions with the CLI, then bring the finished env.json here to evaluate a real policy against it, with no re-authoring required.
Related config types in cadenzalabs.customenv: EnvConfig, Phase, FineTuneConfig, and EnvConfigError (raised on an invalid env.json).