huggingface/OpenEnv
An interface library for RL post training with environments.
What it solves
OpenEnv provides a standardized way to create, deploy, and interact with isolated execution environments for agentic reinforcement learning (RL) training. It removes the friction of setting up secure, sandboxed containers for agents to act within, while providing a consistent API for RL frameworks to communicate with these environments.
How it works
OpenEnv uses a client-server architecture where environments are hosted in isolated Docker containers (deployed via providers like LocalDocker, Docker Swarm, or Hugging Face Spaces).
- Server-Side: Environment creators implement a base class with
reset(),step(), andstate()methods to define the logic and rewards. - Client-Side: Users interact with these environments via an
EnvClientusing a Gymnasium-style API, communicating over WebSockets. - Tooling: A CLI (
openenv) allows users to scaffold new environments, build Docker images, and push them to Hugging Face Spaces for easy deployment.
Who it’s for
- RL Researchers: Those training LLMs or other agents to perform tasks in a simulated or sandboxed environment.
- Environment Creators: Developers building specialized simulators or sandboxes (e.g., coding, chess, financial markets) that need to be securely deployed and easily accessible.
Highlights
- Gymnasium-style API: Uses familiar
step()andreset()patterns for seamless RL integration. - Sandeoxed Execution: Ensures agents operate in isolated containers for security.
- Integrated Web Interface: Includes a built-in UI for real-time debugging and interactive exploration of agent-environment interactions.
- Flexible Deployment: Supports multiple container providers and easy deployment to Hugging Face Spaces.
- Broad Ecosystem: Integrates with RL frameworks like TRL, torchforge, SkyRL, and Oumi.
Related
- Dispatch
- Dispatch
- Dispatch
- Project
- Project