openenv-core
A unified framework for reinforcement learning environments
What it is and what it does
OpenEnv is a framework for building and deploying isolated execution environments that agents can train against using reinforcement learning. It standardizes the agent-environment interaction using Gymnasium-style APIs (`reset`, `step`, `state`) and handles the networking layer via WebSocket and HTTP, allowing agents to interact with environments running in Docker containers or on remote services.
The package provides both server-side components (base classes for implementing environments, FastAPI integration, web UI) and client-side components (async/sync wrappers for connecting to environments, type-safe action/observation handling). It is built on top of fastapi, pydantic, uvicorn, and other production frameworks, and integrates with huggingface_hub and openai. The framework is currently experimental and undergoing active development.
Use it for:
- Train agents to play games or solve tasks by wrapping task logic in an OpenEnv environment and connecting agents via the client API.
- Deploy custom agent execution sandboxes as isolated Docker containers accessible over HTTP, with automatic tool discovery and action routing.
- Build interactive web-based debugging interfaces for environment behavior using the built-in web UI and real-time WebSocket updates.
- Integrate RL training loops with fastapi and uvicorn by using the async client to step environments and collect rewards during training.
- Share reproducible environments across teams or platforms by packaging them as Docker images and hosting on remote services.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
OpenEnv provides a Gymnasium-style framework for creating and deploying isolated execution environments that agents can interact with via standard `reset()`, `step()`, and `state()` APIs over HTTP and WebSocket.
Yes, if you are actively building or training agents against custom environments and can tolerate experimental APIs. The framework is actively maintained and has low install friction, but it is explicitly in early development with expected breaking changes. Verify the license before use. Not recommended for production systems requiring API stability.
Install
openenv-core on PyPI
pip
pip install openenv-coreuv
uv add openenv-corepoetry
poetry add openenv-coreInstalling openenv-core
Before you install
Low install friction with a pure-Python wheel. Active maintenance (latest release 95 days ago). Requires Python 3.10+. The 15 runtime dependencies include heavy frameworks (fastapi, pydantic, uvicorn, huggingface_hub, openai, gradio) that will pull in substantial transitive closure.
License in practice
License treatment is unclear—no SPDX identifier or raw license text in metadata. Verify the actual license before use in proprietary or copyleft-sensitive projects.
Quickstart
pip install openenv-core
import asyncio
from fastapi import FastAPI
from openenv_core import Environment
async def main():
# Connect to environment via client
pass
asyncio.run(main())
Requires Python 3.10+. A running environment server (local Docker or remote service) is needed to connect to. Environment clients must be installed separately.
Verify before relying
- Stability and API surface—marked as experimental with expected bugs and breaking changes; production readiness unclear.
- Whether the framework supports custom environment implementations or only pre-built clients.
- Performance characteristics and scalability limits for concurrent agents or large action/observation spaces.
- Actual license terms—metadata shows no license, so legal status is unknown.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 15 — fastapi, pydantic, uvicorn, requests, typer, rich, pyyaml, huggingface_hub, openai, tomli, tomli-w, websockets, fastmcp, gradio, httpx |
| Maintenance | actively maintained — 95 days since the last release |
| First released | |
| Downloads | 452,791/month — #6,580 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openenv_core-0.3.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
kaggle-environmentsKaggle Environments provides a framework for…
unclear · top 15,000 on PyPI
nemo-gymNeMo Gym provides infrastructure for building,…
permissive · top 5,000 on PyPI
gymnasiumGymnasium provides a standard Python API for…
permissive · top 5,000 on PyPI
nodeenvnodeenv creates isolated Node.js environments…
permissive · top 1,000 on PyPI
pettingzooPettingZoo provides multi-agent reinforcement…
permissive · top 15,000 on PyPI
gym-alohaProvides a Gymnasium environment for the ALOHA…
permissive · top 15,000 on PyPI
gem-llmGEM is a reinforcement learning environment…
permissive · top 15,000 on PyPI
TextArenaTextArena provides a framework of 100+…
permissive · top 15,000 on PyPI
skrlskrl is a modular reinforcement learning…
permissive · top 15,000 on PyPI