Rate this Page

Quick Start#

Get up and running with OpenEnv in under 5 minutes.

Install#

pip install openenv-core

Try an Environment#

from openenv import AutoEnv, AutoAction

# Load the echo environment
env = AutoEnv.from_env("echo")
EchoAction = AutoAction.from_env("echo")

# Use it
with env.sync() as client:
    result = client.reset()
    print(result.observation.echoed_message)  # "Echo environment ready!"

    result = client.step(EchoAction(message="Hello, OpenEnv!"))
    print(result.observation.echoed_message)  # "Hello, OpenEnv!"

What’s Next?#