Skip to main content

OpenEnv Agent

Python client library for connecting RL agents to OpenEnv servers.

Installation

pip install openenv-agent

Quick Start

from openenv_agent import OpenEnvClient, ModerationAgent

# Connect to an OpenEnv server
client = OpenEnvClient(base_url="http://localhost:8000")

# Reset environment
obs = client.reset()

# Use the moderation agent
agent = ModerationAgent()
action = agent.predict(obs)

# Step the environment
next_obs, reward, done, info = client.step(action)

CLI Usage

# Run agent against a server
openenv-agent run http://localhost:8000

# Interactive mode
openenv-agent interactive http://localhost:8000

# Evaluate on a dataset
openenv-agent eval http://localhost:8000 --dataset ./data.json

Features

  • Async/sync OpenEnv client with Gymnasium-style API
  • Built-in ModerationAgent for content moderation environments
  • Environment loader from openenv.yaml configs
  • CLI tool for easy server interaction

Metadata

Release files for openenv-agent 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openenv-agent 0.2.0
File Size Uploaded
openenv_agent-0.2.0.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openenv-agent 0.2.0
File Interpreter ABI Platform
openenv_agent-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.8 kB

Release files / openenv_agent-0.2.0.tar.gz

Download URL openenv_agent-0.2.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
84b962c1e2161b544df1f5de302f33bb0e3e0d83f9201a3a4fc1daf49eee7819
BLAKE2b-256 checksum
How to use checksums
fd6ce955e2047349e540a58967ba7e06c703380f3d504cbd7f0e8d3637df1541
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / openenv_agent-0.2.0-py3-none-any.whl

Download URL openenv_agent-0.2.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d47db61f6f622e267893a6a60c31d7f1f002e58596d3098afadaaa105f8d62d
BLAKE2b-256 checksum
How to use checksums
7f192bb95d73730e7ef42ce4019012dd6323aadfce095cbe103d13e1e7071d63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page