+ Use the Python client to connect, reset the environment, + and step through the game loop. Works with both local + Docker and this HuggingFace-hosted server. +
+ + + API REFERENCE + +$ pip install openra-rl + +from openra_env.client import OpenRAEnv +from openra_env.models import OpenRAAction + +url = "https://openra-rl-openra-rl.hf.space" + +async with OpenRAEnv(url) as env: + obs = await env.reset() + while not obs.done: + action = your_agent(obs) + obs = await env.step(action)+
A pre-configured LLM agent plays Red Alert against the built-in AI. No setup needed.
+