From 3e244f137e479f8932cff1225dae4073736d845f Mon Sep 17 00:00:00 2001 From: sergiopaniego Date: Wed, 25 Nov 2026 16:22:10 +0100 Subject: [PATCH 1/2] Point docs links to the GitHub Pages site The docs moved to https://openenv.github.io/OpenEnv/ and the huggingface.co copy no longer updates. Links in the README, examples, environment READMEs (and their synced doc pages) and src/ now point to the new site. Also fixes links that were already broken on huggingface.co: CLI and core reference anchors (doc-builder names those headings after the autodoc object), a relative link out of the docs to the runtime lab, and a Hub URL in AutoEnv/AutoAction docstrings that the autolinker extended with the closing quote. --- README.md | 42 ++++++++++---------- docs/source/environments/browsergym.md | 2 +- docs/source/environments/grid_world.md | 2 +- docs/source/environments/maze.md | 2 +- docs/source/environments/openspiel.md | 2 +- docs/source/environments/reasoning_gym.md | 2 +- docs/source/environments/repl.md | 2 +- docs/source/environments/spatial_gym.md | 2 +- docs/source/environments/tau2.md | 2 +- docs/source/environments/textarena.md | 6 +-- docs/source/environments/websearch.md | 2 +- docs/source/guides/first-environment.md | 2 +- docs/source/guides/runtime-providers.md | 2 +- docs/source/reference/cli.md | 2 +- envs/browsergym_env/README.md | 2 +- envs/grid_world_env/README.md | 2 +- envs/maze_env/README.md | 2 +- envs/openapp_env/example_usage.py | 2 +- envs/openspiel_env/README.md | 2 +- envs/reasoning_gym_env/README.md | 2 +- envs/repl_env/README.md | 2 +- envs/spatial_gym_env/README.md | 2 +- envs/tau2_env/README.md | 2 +- envs/textarena_env/README.md | 6 +-- envs/websearch_env/README.md | 2 +- examples/OpenEnv_Tutorial.ipynb | 14 +++---- examples/claude_code_harness_eval/README.md | 4 +- examples/end_to_end_walkthrough.ipynb | 6 +-- examples/evaluation_inspect.ipynb | 2 +- examples/rubrics.ipynb | 2 +- examples/sft_warmup.ipynb | 4 +- examples/wordle/README.md | 2 +- examples/wordle/wordle.ipynb | 2 +- src/openenv/auto/auto_action.py | 2 +- src/openenv/auto/auto_env.py | 2 +- src/openenv/cli/commands/skills.py | 2 +- src/openenv/core/env_server/interfaces.py | 2 +- src/openenv/core/env_server/web_interface.py | 2 +- src/openenv/harbor/ui_pages.py | 2 +- 39 files changed, 73 insertions(+), 73 deletions(-) diff --git a/README.md b/README.md index cea0addcc6..adc01e3731 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ An end-to-end framework for creating, deploying and using isolated execution env

PyPI License - Docs + Docs Hugging Face Discord Open In Colab @@ -16,12 +16,12 @@ An end-to-end framework for creating, deploying and using isolated execution env ## What you get - **One API for every environment.** `reset()`, `step()` and `state()`, sync or async, over a WebSocket. -- **Isolated, deployable environments.** Each environment is a Docker image that runs locally, on a cloud sandbox, or as a [Hugging Face Space](https://huggingface.co/docs/openenv/getting_started/contributing-envs). -- **40+ ready-to-use environments**, from games and coding sandboxes to browsers, finance and simulators, in the [environment catalog](https://huggingface.co/docs/openenv/environments). +- **Isolated, deployable environments.** Each environment is a Docker image that runs locally, on a cloud sandbox, or as a [Hugging Face Space](https://openenv.github.io/OpenEnv/main/getting_started/contributing-envs). +- **40+ ready-to-use environments**, from games and coding sandboxes to browsers, finance and simulators, in the [environment catalog](https://openenv.github.io/OpenEnv/main/environments). - **Train with your framework.** TRL, Unsloth, SkyRL, ART, Oumi, torchforge, Miles and more (see [Integrations](#integrations)). -- **Train real coding agents.** The [Harbor integration](https://huggingface.co/docs/openenv/environments/harbor) runs Claude Code, Codex, OpenCode, mini-swe-agent and other harnesses on Harbor tasks, and captures the exact tokens for RL. -- **Serve tools to agents.** MCP environments expose their tools to agents over `/mcp` in [production mode](https://huggingface.co/docs/openenv/guides/simulation-vs-production), while training keeps using `step()` and rewards. -- **Rewards and evals built in.** Compose rewards with [rubrics](https://huggingface.co/docs/openenv/guides/rewards) and evaluate with [Inspect AI](https://huggingface.co/docs/openenv/tutorials/evaluation-inspect). +- **Train real coding agents.** The [Harbor integration](https://openenv.github.io/OpenEnv/main/environments/harbor) runs Claude Code, Codex, OpenCode, mini-swe-agent and other harnesses on Harbor tasks, and captures the exact tokens for RL. +- **Serve tools to agents.** MCP environments expose their tools to agents over `/mcp` in [production mode](https://openenv.github.io/OpenEnv/main/guides/simulation-vs-production), while training keeps using `step()` and rewards. +- **Rewards and evals built in.** Compose rewards with [rubrics](https://openenv.github.io/OpenEnv/main/guides/rewards) and evaluate with [Inspect AI](https://openenv.github.io/OpenEnv/main/tutorials/evaluation-inspect). ## Quick Start @@ -80,14 +80,14 @@ with EchoEnv(base_url="https://openenv-echo-env.hf.space").sync() as client: print(result.observation.result["data"]) ``` -For a detailed quick start, check out the [docs page](https://huggingface.co/docs/openenv/getting-started). +For a detailed quick start, check out the [docs page](https://openenv.github.io/OpenEnv/main/getting-started). ## Train an agent -Any training framework that can call an environment can train on it. [Training with OpenEnv](https://huggingface.co/docs/openenv/guides/training) maps the ways to train and the frameworks that support each one. +Any training framework that can call an environment can train on it. [Training with OpenEnv](https://openenv.github.io/OpenEnv/main/guides/training) maps the ways to train and the frameworks that support each one. -- **Environments as tools (white-box).** The trainer runs the multi-turn tool loop and the environment supplies the tools and the reward. Each framework under [Integrations](#integrations) has its own example. With TRL, `GRPOTrainer` takes an `environment_factory`: start with the [Wordle GRPO tutorial](https://huggingface.co/docs/openenv/tutorials/wordle-grpo) or [TRL's OpenEnv guide](https://huggingface.co/docs/trl/openenv). -- **Real agent harnesses (loop-owning).** The agent runs its own loop, and OpenEnv's [Harbor integration](https://huggingface.co/docs/openenv/environments/harbor) captures every model call as a framework-neutral `TrainingTrace`. TRL's `AsyncGRPOTrainer` trains on those captures today: see [`examples/async_grpo_harbor`](https://github.com/huggingface/trl/tree/main/examples/async_grpo_harbor) and [The ultimate guide to multi-harness RL](https://huggingface.co/spaces/FineEnvs/multi-harness-rl). +- **Environments as tools (white-box).** The trainer runs the multi-turn tool loop and the environment supplies the tools and the reward. Each framework under [Integrations](#integrations) has its own example. With TRL, `GRPOTrainer` takes an `environment_factory`: start with the [Wordle GRPO tutorial](https://openenv.github.io/OpenEnv/main/tutorials/wordle-grpo) or [TRL's OpenEnv guide](https://huggingface.co/docs/trl/openenv). +- **Real agent harnesses (loop-owning).** The agent runs its own loop, and OpenEnv's [Harbor integration](https://openenv.github.io/OpenEnv/main/environments/harbor) captures every model call as a framework-neutral `TrainingTrace`. TRL's `AsyncGRPOTrainer` trains on those captures today: see [`examples/async_grpo_harbor`](https://github.com/huggingface/trl/tree/main/examples/async_grpo_harbor) and [The ultimate guide to multi-harness RL](https://huggingface.co/spaces/FineEnvs/multi-harness-rl). ## Build your own environment @@ -99,7 +99,7 @@ openenv push my_env # deploy it to Hugging Face Spaces For local development, run `openenv serve my_env` after installing its dependencies. This runs on the host and binds to `127.0.0.1`; use Docker or Spaces for isolated training and deployment. -See [Your First Environment](https://huggingface.co/docs/openenv/guides/first-environment) and [Deploying an Environment](https://huggingface.co/docs/openenv/getting_started/environment-builder). `openenv import` wraps an existing environment from ORS/OpenReward or Verifiers, or an AgentEnv bundle. +See [Your First Environment](https://openenv.github.io/OpenEnv/main/guides/first-environment) and [Deploying an Environment](https://openenv.github.io/OpenEnv/main/getting_started/environment-builder). `openenv import` wraps an existing environment from ORS/OpenReward or Verifiers, or an AgentEnv bundle. ## Environments @@ -107,14 +107,14 @@ A few to start with: | Environment | What it is | |---|---| -| [Echo](https://huggingface.co/docs/openenv/environments/echo) | Minimal MCP environment, for learning the API and testing a deployment | -| [Coding](https://huggingface.co/docs/openenv/environments/coding) | Sandboxed Python execution with stdout, stderr and exit codes | -| [TextArena (Wordle and more)](https://huggingface.co/docs/openenv/environments/textarena) | Text games for multi-turn RL | -| [OpenSpiel](https://huggingface.co/docs/openenv/environments/openspiel) | Board and card games from DeepMind's OpenSpiel | -| [BrowserGym](https://huggingface.co/docs/openenv/environments/browsergym) | Web navigation tasks (MiniWoB++, WebArena, ...) | -| [Harbor](https://huggingface.co/docs/openenv/environments/harbor) | Harbor task datasets through coding-agent harnesses, with token capture for training | +| [Echo](https://openenv.github.io/OpenEnv/main/environments/echo) | Minimal MCP environment, for learning the API and testing a deployment | +| [Coding](https://openenv.github.io/OpenEnv/main/environments/coding) | Sandboxed Python execution with stdout, stderr and exit codes | +| [TextArena (Wordle and more)](https://openenv.github.io/OpenEnv/main/environments/textarena) | Text games for multi-turn RL | +| [OpenSpiel](https://openenv.github.io/OpenEnv/main/environments/openspiel) | Board and card games from DeepMind's OpenSpiel | +| [BrowserGym](https://openenv.github.io/OpenEnv/main/environments/browsergym) | Web navigation tasks (MiniWoB++, WebArena, ...) | +| [Harbor](https://openenv.github.io/OpenEnv/main/environments/harbor) | Harbor task datasets through coding-agent harnesses, with token capture for training | -Browse all of them in the [environment catalog](https://huggingface.co/docs/openenv/environments), or on the [OpenEnv Hub organization](https://huggingface.co/openenv). +Browse all of them in the [environment catalog](https://openenv.github.io/OpenEnv/main/environments), or on the [OpenEnv Hub organization](https://huggingface.co/openenv). ## Integrations @@ -134,9 +134,9 @@ OpenEnv works with a growing ecosystem of RL frameworks and platforms. If your p ## Learn more -- [Documentation](https://huggingface.co/docs/openenv): concepts, guides and tutorials -- [Core Concepts](https://huggingface.co/docs/openenv/guides/concepts) and the [CLI reference](https://huggingface.co/docs/openenv/reference/cli) -- [Tutorials](https://huggingface.co/docs/openenv/tutorials/index), and the [Zero to Hero tutorial](https://github.com/openenv/OpenEnv/tree/main/tutorial) from our GPU Mode lecture +- [Documentation](https://openenv.github.io/OpenEnv/): concepts, guides and tutorials +- [Core Concepts](https://openenv.github.io/OpenEnv/main/guides/concepts) and the [CLI reference](https://openenv.github.io/OpenEnv/main/reference/cli) +- [Tutorials](https://openenv.github.io/OpenEnv/main/tutorials/index), and the [Zero to Hero tutorial](https://github.com/openenv/OpenEnv/tree/main/tutorial) from our GPU Mode lecture - [FineEnvs](https://github.com/adithya-s-k/FineEnvs): end-to-end projects that build, deploy and train against OpenEnv environments - [RFCs](https://github.com/openenv/OpenEnv/tree/main/rfcs), the proposals behind major changes - [Contributing](https://github.com/openenv/OpenEnv/blob/main/CONTRIBUTING.md): development setup, tests and the PR process diff --git a/docs/source/environments/browsergym.md b/docs/source/environments/browsergym.md index 1b44662d60..fc7702ef67 100644 --- a/docs/source/environments/browsergym.md +++ b/docs/source/environments/browsergym.md @@ -66,7 +66,7 @@ env.close() ## Training with TRL -To train a model on BrowserGym, pass a small environment class to TRL's `GRPOTrainer` through `environment_factory`. Its methods (`click`, `fill`, `send_keys`, `scroll`, `noop`) become the model's tools, and TRL runs the multi-turn loop. The [BrowserGym tutorial](https://huggingface.co/docs/openenv/tutorials/browsergym-harness) walks through it, and TRL's [`examples/grpo_browsergym`](https://github.com/huggingface/trl/tree/main/examples/grpo_browsergym) is the full script, with screenshots for vision-language models. +To train a model on BrowserGym, pass a small environment class to TRL's `GRPOTrainer` through `environment_factory`. Its methods (`click`, `fill`, `send_keys`, `scroll`, `noop`) become the model's tools, and TRL runs the multi-turn loop. The [BrowserGym tutorial](https://openenv.github.io/OpenEnv/main/tutorials/browsergym-harness) walks through it, and TRL's [`examples/grpo_browsergym`](https://github.com/huggingface/trl/tree/main/examples/grpo_browsergym) is the full script, with screenshots for vision-language models. `browsergym_env.harness.BrowserGymSessionFactory` exposes the same tools to OpenEnv's session runtime, which [`examples/browsergym_harness_eval.py`](https://github.com/openenv/OpenEnv/blob/main/examples/browsergym_harness_eval.py) uses to evaluate a chat model on BrowserGym. diff --git a/docs/source/environments/grid_world.md b/docs/source/environments/grid_world.md index 11876d5ad2..019c97c5e7 100644 --- a/docs/source/environments/grid_world.md +++ b/docs/source/environments/grid_world.md @@ -75,4 +75,4 @@ There is no step limit: the episode only ends at the goal. - `server/app.py`: the server, built with `create_app` - `client.py`: `GridWorldEnv`, with a `step_move(MoveAction.UP)` helper -To build your own environment, see [Your First Environment](https://huggingface.co/docs/openenv/guides/first-environment). +To build your own environment, see [Your First Environment](https://openenv.github.io/OpenEnv/main/guides/first-environment). diff --git a/docs/source/environments/maze.md b/docs/source/environments/maze.md index 993bcea04b..f0ea86b9c3 100644 --- a/docs/source/environments/maze.md +++ b/docs/source/environments/maze.md @@ -68,7 +68,7 @@ docker build -t maze_env-env:latest -f server/Dockerfile . ## Deploying to Hugging Face Spaces -From `envs/maze_env/`, run `openenv push` (or `openenv push --repo-id my-org/maze-env`). See the [`openenv push` reference](https://huggingface.co/docs/openenv/reference/cli#openenv-push) for all options. +From `envs/maze_env/`, run `openenv push` (or `openenv push --repo-id my-org/maze-env`). See the [`openenv push` reference](https://openenv.github.io/OpenEnv/main/reference/cli#openenv.cli.commands.push) for all options. ## Running the Default Maze diff --git a/docs/source/environments/openspiel.md b/docs/source/environments/openspiel.md index d626278558..a92d9516b8 100644 --- a/docs/source/environments/openspiel.md +++ b/docs/source/environments/openspiel.md @@ -112,7 +112,7 @@ From `envs/openspiel_env/`: openenv push --repo-id my-org/openspiel-env -e OPENSPIEL_GAME=tic_tac_toe ``` -`-e` sets the variables above on the Space. See the [`openenv push` reference](https://huggingface.co/docs/openenv/reference/cli#openenv-push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs` and a health check at `/health`. The default Dockerfile uses the pre-built OpenSpiel base image, so it runs on standard CPU hardware. +`-e` sets the variables above on the Space. See the [`openenv push` reference](https://openenv.github.io/OpenEnv/main/reference/cli#openenv.cli.commands.push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs` and a health check at `/health`. The default Dockerfile uses the pre-built OpenSpiel base image, so it runs on standard CPU hardware. ## Environment Details diff --git a/docs/source/environments/reasoning_gym.md b/docs/source/environments/reasoning_gym.md index 53c9b6eea5..13d648efea 100644 --- a/docs/source/environments/reasoning_gym.md +++ b/docs/source/environments/reasoning_gym.md @@ -64,7 +64,7 @@ docker build -t reasoning_gym-env:latest -f server/Dockerfile . ## Deploying to Hugging Face Spaces -From `envs/reasoning_gym_env/`, run `openenv push` (or `openenv push --repo-id my-org/reasoning-gym-env`). See the [`openenv push` reference](https://huggingface.co/docs/openenv/reference/cli#openenv-push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs`, a health check at `/health` and the WebSocket session endpoint at `/ws`. +From `envs/reasoning_gym_env/`, run `openenv push` (or `openenv push --repo-id my-org/reasoning-gym-env`). See the [`openenv push` reference](https://openenv.github.io/OpenEnv/main/reference/cli#openenv.cli.commands.push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs`, a health check at `/health` and the WebSocket session endpoint at `/ws`. ## Environment Details diff --git a/docs/source/environments/repl.md b/docs/source/environments/repl.md index 3e11bbdac0..6ba9c5c753 100644 --- a/docs/source/environments/repl.md +++ b/docs/source/environments/repl.md @@ -106,7 +106,7 @@ with LocalREPLEnv() as env: Customize `LocalREPLEnv(rubric=...)` with the match, partial-credit, custom-metric, or execution rubrics in [`rubrics.py`](https://github.com/openenv/OpenEnv/blob/main/envs/repl_env/rubrics.py). See the -[rubric guide](https://huggingface.co/docs/openenv/guides/rewards) for composition. +[rubric guide](https://openenv.github.io/OpenEnv/main/guides/rewards) for composition. ## Running an RLM Locally diff --git a/docs/source/environments/spatial_gym.md b/docs/source/environments/spatial_gym.md index 5445680715..b83d9de8c6 100644 --- a/docs/source/environments/spatial_gym.md +++ b/docs/source/environments/spatial_gym.md @@ -82,7 +82,7 @@ with SpatialGymEnv(base_url="http://localhost:8000").sync() as env: ## Run it yourself -From `envs/spatial_gym_env/`, start the server with `uv run --project . server` (port 8000; set `ENABLE_WEB_INTERFACE=true` for the playground at `/web`). Build the image with `openenv build`, and deploy a Space with `openenv push` (or `openenv push --repo-id my-org/spatial-gym-env`). See the [`openenv push` reference](https://huggingface.co/docs/openenv/reference/cli#openenv-push) for all options. +From `envs/spatial_gym_env/`, start the server with `uv run --project . server` (port 8000; set `ENABLE_WEB_INTERFACE=true` for the playground at `/web`). Build the image with `openenv build`, and deploy a Space with `openenv push` (or `openenv push --repo-id my-org/spatial-gym-env`). See the [`openenv push` reference](https://openenv.github.io/OpenEnv/main/reference/cli#openenv.cli.commands.push) for all options. The tests download the SPaRC dataset and skip themselves when Spatial-Gym is not installed. From the repository root: diff --git a/docs/source/environments/tau2.md b/docs/source/environments/tau2.md index dee30b1bc0..a0b488e22e 100644 --- a/docs/source/environments/tau2.md +++ b/docs/source/environments/tau2.md @@ -114,6 +114,6 @@ The image starts from a Python 3.12 base rather than `openenv-base`, because τ ## Notes - τ²-bench is installed from GitHub, pinned to a commit. The `tau2` package on PyPI is an unrelated project. -- To evaluate Claude Code on τ²-bench, see [Evaluate Claude Code in an Environment](https://huggingface.co/docs/openenv/tutorials/claude-code-harness). +- To evaluate Claude Code on τ²-bench, see [Evaluate Claude Code in an Environment](https://openenv.github.io/OpenEnv/main/tutorials/claude-code-harness). - Train on the `train` split and evaluate on `test`, so training does not leak into the benchmark. - litellm has no prices for Inference Providers models, so τ²-bench reports the cost of those runs as $0. diff --git a/docs/source/environments/textarena.md b/docs/source/environments/textarena.md index edfe7b9dc8..e3bfda9e64 100644 --- a/docs/source/environments/textarena.md +++ b/docs/source/environments/textarena.md @@ -11,7 +11,7 @@ An OpenEnv wrapper for [TextArena](https://github.com/textarena/textarena) game > Generic wrapper for any [TextArena](https://www.textarena.ai/docs/overview) game inside OpenEnv. This module exposes the TextArena `Env` interface through the standard HTTP server/client APIs used by other OpenEnv environments, enabling quick experimentation with the full suite of word, reasoning, and multi-agent games. Try Wordle on the [`openenv/wordle`](https://huggingface.co/spaces/openenv/wordle) Space, or connect a client to `https://openenv-wordle.hf.space`. -To train a model on it, follow the [Wordle tutorial](https://huggingface.co/docs/openenv/tutorials/wordle-grpo): an SFT warmup, then GRPO with TRL. +To train a model on it, follow the [Wordle tutorial](https://openenv.github.io/OpenEnv/main/tutorials/wordle-grpo): an SFT warmup, then GRPO with TRL. ## Quick Start @@ -67,7 +67,7 @@ docker build -t textarena-env:latest -f server/Dockerfile . ## Testing the Gradio UI locally -With the web interface enabled, the server serves a **Gradio UI** at `/web`. If your `openenv` supports `gradio_builder`, you get two tabs (see [Customizing the Web UI](https://huggingface.co/docs/openenv/guides/customizing-web-ui)): +With the web interface enabled, the server serves a **Gradio UI** at `/web`. If your `openenv` supports `gradio_builder`, you get two tabs (see [Customizing the Web UI](https://openenv.github.io/OpenEnv/main/guides/customizing-web-ui)): - **Playground** – default OpenEnv UI (Reset, Step, Episode, Quick Start, README). - **Custom** – Wordle-style HTML block (see `server/gradio_ui.py`; uses [Gradio 6 `gr.HTML`](https://gradio.app/docs/gradio/html) to render the block). @@ -104,7 +104,7 @@ From `envs/textarena_env/`: openenv push --repo-id my-org/textarena-env -e TEXTARENA_ENV_ID=Wordle-v0 ``` -`-e` sets the [configuration variables](#environment-configuration) on the Space. See the [`openenv push` reference](https://huggingface.co/docs/openenv/reference/cli#openenv-push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs` and a health check at `/health`. +`-e` sets the [configuration variables](#environment-configuration) on the Space. See the [`openenv push` reference](https://openenv.github.io/OpenEnv/main/reference/cli#openenv.cli.commands.push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs` and a health check at `/health`. ## Environment Details diff --git a/docs/source/environments/websearch.md b/docs/source/environments/websearch.md index a3a53dbb0e..5d833f26d5 100644 --- a/docs/source/environments/websearch.md +++ b/docs/source/environments/websearch.md @@ -81,7 +81,7 @@ From `envs/websearch_env/`: openenv push --repo-id my-org/websearch-env --secret SERPER_API_KEY=your-api-key-here ``` -The environment doesn't work without `SERPER_API_KEY`. `--secret` stores it as a Space secret and never logs it. See the [`openenv push` reference](https://huggingface.co/docs/openenv/reference/cli#openenv-push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs` and a health check at `/health`. +The environment doesn't work without `SERPER_API_KEY`. `--secret` stores it as a Space secret and never logs it. See the [`openenv push` reference](https://openenv.github.io/OpenEnv/main/reference/cli#openenv.cli.commands.push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs` and a health check at `/health`. ## Environment Details diff --git a/docs/source/guides/first-environment.md b/docs/source/guides/first-environment.md index f8d8f71b42..ac39ccb5ca 100644 --- a/docs/source/guides/first-environment.md +++ b/docs/source/guides/first-environment.md @@ -35,7 +35,7 @@ my_env/ Class names come from the environment name, with a trailing `_env` dropped: `my_env` gives `MyAction`, `MyObservation`, `MyEnvironment` and `MyEnv`. The steps below go through each file. Edit them to replace the echo logic with yours. If you're working inside the OpenEnv repo, move the folder under `envs/`. > [!TIP] -> If you already have an ORS/OpenReward or Prime Intellect Verifiers environment, or an AgentEnv bundle, run `openenv import SOURCE --name my_env --output-dir DIR` instead. It detects the source type and vendors non-secret data files and portable dependencies into the generated package. ORS/OpenReward and Verifiers use generated wrappers; AgentEnv delegates serving to `agent_env.openenv.build_app` and vendors only the selected bundle. AgentEnv requires local Docker, and the generated Dockerfile alone cannot provide a working deployment. Its generated client is an `MCPToolClient`. See the generated README and [CLI reference](../reference/cli#openenv-import) for prerequisites. +> If you already have an ORS/OpenReward or Prime Intellect Verifiers environment, or an AgentEnv bundle, run `openenv import SOURCE --name my_env --output-dir DIR` instead. It detects the source type and vendors non-secret data files and portable dependencies into the generated package. ORS/OpenReward and Verifiers use generated wrappers; AgentEnv delegates serving to `agent_env.openenv.build_app` and vendors only the selected bundle. AgentEnv requires local Docker, and the generated Dockerfile alone cannot provide a working deployment. Its generated client is an `MCPToolClient`. See the generated README and [CLI reference](../reference/cli#openenv.cli.commands.import_env) for prerequisites. ## 2. Define the models diff --git a/docs/source/guides/runtime-providers.md b/docs/source/guides/runtime-providers.md index fae7da3bfc..5258d51730 100644 --- a/docs/source/guides/runtime-providers.md +++ b/docs/source/guides/runtime-providers.md @@ -73,7 +73,7 @@ from openenv.core.containers.runtime import LocalDockerProvider # core from openenv.core.containers.runtime.daytona_provider import DaytonaProvider # cloud ``` -See the [Core API reference](../reference/core.md#container-providers) for each +See the [Core API reference](../reference/core#openenv.core.containers.runtime.ContainerProvider) for each provider's full API. ### Lifecycle diff --git a/docs/source/reference/cli.md b/docs/source/reference/cli.md index 2a6600f163..3c1e743e37 100644 --- a/docs/source/reference/cli.md +++ b/docs/source/reference/cli.md @@ -359,7 +359,7 @@ coverage inventory, provider settings, cleanup outcome and checksums. Treat thes as author-validation evidence; this command does not issue certification. For a pinned, installed-wheel reproduction of the shared fixture and its fault -cases, follow [the runtime lab](../../../tests/validation_runtime/README.md). +cases, follow [the runtime lab](https://github.com/openenv/OpenEnv/blob/main/tests/validation_runtime/README.md). The implementation and remaining check inventory are tracked in [the Level 2 umbrella](https://github.com/openenv/OpenEnv/issues/1177). diff --git a/envs/browsergym_env/README.md b/envs/browsergym_env/README.md index f6aafc75b1..2c50955c88 100644 --- a/envs/browsergym_env/README.md +++ b/envs/browsergym_env/README.md @@ -81,7 +81,7 @@ env.close() ## Training with TRL -To train a model on BrowserGym, pass a small environment class to TRL's `GRPOTrainer` through `environment_factory`. Its methods (`click`, `fill`, `send_keys`, `scroll`, `noop`) become the model's tools, and TRL runs the multi-turn loop. The [BrowserGym tutorial](https://huggingface.co/docs/openenv/tutorials/browsergym-harness) walks through it, and TRL's [`examples/grpo_browsergym`](https://github.com/huggingface/trl/tree/main/examples/grpo_browsergym) is the full script, with screenshots for vision-language models. +To train a model on BrowserGym, pass a small environment class to TRL's `GRPOTrainer` through `environment_factory`. Its methods (`click`, `fill`, `send_keys`, `scroll`, `noop`) become the model's tools, and TRL runs the multi-turn loop. The [BrowserGym tutorial](https://openenv.github.io/OpenEnv/main/tutorials/browsergym-harness) walks through it, and TRL's [`examples/grpo_browsergym`](https://github.com/huggingface/trl/tree/main/examples/grpo_browsergym) is the full script, with screenshots for vision-language models. `browsergym_env.harness.BrowserGymSessionFactory` exposes the same tools to OpenEnv's session runtime, which [`examples/browsergym_harness_eval.py`](https://github.com/openenv/OpenEnv/blob/main/examples/browsergym_harness_eval.py) uses to evaluate a chat model on BrowserGym. diff --git a/envs/grid_world_env/README.md b/envs/grid_world_env/README.md index fb32462099..6cd45bf61a 100644 --- a/envs/grid_world_env/README.md +++ b/envs/grid_world_env/README.md @@ -86,4 +86,4 @@ There is no step limit: the episode only ends at the goal. - `server/app.py`: the server, built with `create_app` - `client.py`: `GridWorldEnv`, with a `step_move(MoveAction.UP)` helper -To build your own environment, see [Your First Environment](https://huggingface.co/docs/openenv/guides/first-environment). +To build your own environment, see [Your First Environment](https://openenv.github.io/OpenEnv/main/guides/first-environment). diff --git a/envs/maze_env/README.md b/envs/maze_env/README.md index 8b268ab8a6..d89d6cc7f0 100644 --- a/envs/maze_env/README.md +++ b/envs/maze_env/README.md @@ -80,7 +80,7 @@ docker build -t maze_env-env:latest -f server/Dockerfile . ## Deploying to Hugging Face Spaces -From `envs/maze_env/`, run `openenv push` (or `openenv push --repo-id my-org/maze-env`). See the [`openenv push` reference](https://huggingface.co/docs/openenv/reference/cli#openenv-push) for all options. +From `envs/maze_env/`, run `openenv push` (or `openenv push --repo-id my-org/maze-env`). See the [`openenv push` reference](https://openenv.github.io/OpenEnv/main/reference/cli#openenv.cli.commands.push) for all options. ## Running the Default Maze diff --git a/envs/openapp_env/example_usage.py b/envs/openapp_env/example_usage.py index e5926e7df1..3575d99c85 100644 --- a/envs/openapp_env/example_usage.py +++ b/envs/openapp_env/example_usage.py @@ -271,7 +271,7 @@ def main(): print("\nFor more information, see:") print("- README.md in this directory") print("- OpenApps docs: https://facebookresearch.github.io/OpenApps/") - print("- OpenEnv docs: https://huggingface.co/docs/openenv") + print("- OpenEnv docs: https://openenv.github.io/OpenEnv/") print("=" * 60) diff --git a/envs/openspiel_env/README.md b/envs/openspiel_env/README.md index 63f990d9e6..9e4b95c4f5 100644 --- a/envs/openspiel_env/README.md +++ b/envs/openspiel_env/README.md @@ -124,7 +124,7 @@ From `envs/openspiel_env/`: openenv push --repo-id my-org/openspiel-env -e OPENSPIEL_GAME=tic_tac_toe ``` -`-e` sets the variables above on the Space. See the [`openenv push` reference](https://huggingface.co/docs/openenv/reference/cli#openenv-push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs` and a health check at `/health`. The default Dockerfile uses the pre-built OpenSpiel base image, so it runs on standard CPU hardware. +`-e` sets the variables above on the Space. See the [`openenv push` reference](https://openenv.github.io/OpenEnv/main/reference/cli#openenv.cli.commands.push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs` and a health check at `/health`. The default Dockerfile uses the pre-built OpenSpiel base image, so it runs on standard CPU hardware. ## Environment Details diff --git a/envs/reasoning_gym_env/README.md b/envs/reasoning_gym_env/README.md index 6720c5242c..83e7492c8e 100644 --- a/envs/reasoning_gym_env/README.md +++ b/envs/reasoning_gym_env/README.md @@ -78,7 +78,7 @@ docker build -t reasoning_gym-env:latest -f server/Dockerfile . ## Deploying to Hugging Face Spaces -From `envs/reasoning_gym_env/`, run `openenv push` (or `openenv push --repo-id my-org/reasoning-gym-env`). See the [`openenv push` reference](https://huggingface.co/docs/openenv/reference/cli#openenv-push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs`, a health check at `/health` and the WebSocket session endpoint at `/ws`. +From `envs/reasoning_gym_env/`, run `openenv push` (or `openenv push --repo-id my-org/reasoning-gym-env`). See the [`openenv push` reference](https://openenv.github.io/OpenEnv/main/reference/cli#openenv.cli.commands.push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs`, a health check at `/health` and the WebSocket session endpoint at `/ws`. ## Environment Details diff --git a/envs/repl_env/README.md b/envs/repl_env/README.md index 5900d85cba..814671ab25 100644 --- a/envs/repl_env/README.md +++ b/envs/repl_env/README.md @@ -118,7 +118,7 @@ with LocalREPLEnv() as env: Customize `LocalREPLEnv(rubric=...)` with the match, partial-credit, custom-metric, or execution rubrics in [`rubrics.py`](rubrics.py). See the -[rubric guide](https://huggingface.co/docs/openenv/guides/rewards) for composition. +[rubric guide](https://openenv.github.io/OpenEnv/main/guides/rewards) for composition. ## Running an RLM Locally diff --git a/envs/spatial_gym_env/README.md b/envs/spatial_gym_env/README.md index 490e851dfd..4d592f56b9 100644 --- a/envs/spatial_gym_env/README.md +++ b/envs/spatial_gym_env/README.md @@ -98,7 +98,7 @@ with SpatialGymEnv(base_url="http://localhost:8000").sync() as env: ## Run it yourself -From `envs/spatial_gym_env/`, start the server with `uv run --project . server` (port 8000; set `ENABLE_WEB_INTERFACE=true` for the playground at `/web`). Build the image with `openenv build`, and deploy a Space with `openenv push` (or `openenv push --repo-id my-org/spatial-gym-env`). See the [`openenv push` reference](https://huggingface.co/docs/openenv/reference/cli#openenv-push) for all options. +From `envs/spatial_gym_env/`, start the server with `uv run --project . server` (port 8000; set `ENABLE_WEB_INTERFACE=true` for the playground at `/web`). Build the image with `openenv build`, and deploy a Space with `openenv push` (or `openenv push --repo-id my-org/spatial-gym-env`). See the [`openenv push` reference](https://openenv.github.io/OpenEnv/main/reference/cli#openenv.cli.commands.push) for all options. The tests download the SPaRC dataset and skip themselves when Spatial-Gym is not installed. From the repository root: diff --git a/envs/tau2_env/README.md b/envs/tau2_env/README.md index 6bb7f4ac2d..6ce8ecd245 100644 --- a/envs/tau2_env/README.md +++ b/envs/tau2_env/README.md @@ -129,6 +129,6 @@ The image starts from a Python 3.12 base rather than `openenv-base`, because τ ## Notes - τ²-bench is installed from GitHub, pinned to a commit. The `tau2` package on PyPI is an unrelated project. -- To evaluate Claude Code on τ²-bench, see [Evaluate Claude Code in an Environment](https://huggingface.co/docs/openenv/tutorials/claude-code-harness). +- To evaluate Claude Code on τ²-bench, see [Evaluate Claude Code in an Environment](https://openenv.github.io/OpenEnv/main/tutorials/claude-code-harness). - Train on the `train` split and evaluate on `test`, so training does not leak into the benchmark. - litellm has no prices for Inference Providers models, so τ²-bench reports the cost of those runs as $0. diff --git a/envs/textarena_env/README.md b/envs/textarena_env/README.md index 71859af4bb..1286602377 100644 --- a/envs/textarena_env/README.md +++ b/envs/textarena_env/README.md @@ -23,7 +23,7 @@ An OpenEnv wrapper for [TextArena](https://github.com/textarena/textarena) game > Generic wrapper for any [TextArena](https://www.textarena.ai/docs/overview) game inside OpenEnv. This module exposes the TextArena `Env` interface through the standard HTTP server/client APIs used by other OpenEnv environments, enabling quick experimentation with the full suite of word, reasoning, and multi-agent games. Try Wordle on the [`openenv/wordle`](https://huggingface.co/spaces/openenv/wordle) Space, or connect a client to `https://openenv-wordle.hf.space`. -To train a model on it, follow the [Wordle tutorial](https://huggingface.co/docs/openenv/tutorials/wordle-grpo): an SFT warmup, then GRPO with TRL. +To train a model on it, follow the [Wordle tutorial](https://openenv.github.io/OpenEnv/main/tutorials/wordle-grpo): an SFT warmup, then GRPO with TRL. ## Quick Start @@ -79,7 +79,7 @@ docker build -t textarena-env:latest -f server/Dockerfile . ## Testing the Gradio UI locally -With the web interface enabled, the server serves a **Gradio UI** at `/web`. If your `openenv` supports `gradio_builder`, you get two tabs (see [Customizing the Web UI](https://huggingface.co/docs/openenv/guides/customizing-web-ui)): +With the web interface enabled, the server serves a **Gradio UI** at `/web`. If your `openenv` supports `gradio_builder`, you get two tabs (see [Customizing the Web UI](https://openenv.github.io/OpenEnv/main/guides/customizing-web-ui)): - **Playground** – default OpenEnv UI (Reset, Step, Episode, Quick Start, README). - **Custom** – Wordle-style HTML block (see `server/gradio_ui.py`; uses [Gradio 6 `gr.HTML`](https://gradio.app/docs/gradio/html) to render the block). @@ -116,7 +116,7 @@ From `envs/textarena_env/`: openenv push --repo-id my-org/textarena-env -e TEXTARENA_ENV_ID=Wordle-v0 ``` -`-e` sets the [configuration variables](#environment-configuration) on the Space. See the [`openenv push` reference](https://huggingface.co/docs/openenv/reference/cli#openenv-push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs` and a health check at `/health`. +`-e` sets the [configuration variables](#environment-configuration) on the Space. See the [`openenv push` reference](https://openenv.github.io/OpenEnv/main/reference/cli#openenv.cli.commands.push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs` and a health check at `/health`. ## Environment Details diff --git a/envs/websearch_env/README.md b/envs/websearch_env/README.md index 9c34648a59..f1ee2b6130 100644 --- a/envs/websearch_env/README.md +++ b/envs/websearch_env/README.md @@ -93,7 +93,7 @@ From `envs/websearch_env/`: openenv push --repo-id my-org/websearch-env --secret SERPER_API_KEY=your-api-key-here ``` -The environment doesn't work without `SERPER_API_KEY`. `--secret` stores it as a Space secret and never logs it. See the [`openenv push` reference](https://huggingface.co/docs/openenv/reference/cli#openenv-push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs` and a health check at `/health`. +The environment doesn't work without `SERPER_API_KEY`. `--secret` stores it as a Space secret and never logs it. See the [`openenv push` reference](https://openenv.github.io/OpenEnv/main/reference/cli#openenv.cli.commands.push) for all options. The Space serves the web UI at `/web`, the API docs at `/docs` and a health check at `/health`. ## Environment Details diff --git a/examples/OpenEnv_Tutorial.ipynb b/examples/OpenEnv_Tutorial.ipynb index a1457fba86..38caaa0efc 100644 --- a/examples/OpenEnv_Tutorial.ipynb +++ b/examples/OpenEnv_Tutorial.ipynb @@ -32,7 +32,7 @@ "- `step(action)` applies an action and returns the next observation, with its `reward` and a `done` flag.\n", "- `state()` returns episode metadata, such as the episode id and the step count.\n", "\n", - "Actions, observations and state are Pydantic models, so both sides agree on their fields. [Core Concepts](https://huggingface.co/docs/openenv/guides/concepts) covers the design in more detail.\n", + "Actions, observations and state are Pydantic models, so both sides agree on their fields. [Core Concepts](https://openenv.github.io/OpenEnv/main/guides/concepts) covers the design in more detail.\n", "\n", "## Setup\n", "\n", @@ -165,7 +165,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "The same client connects to the hosted Echo Space with `base_url=\"https://openenv-echo-env.hf.space\"`, and `AutoEnv.from_env()` loads any environment by name. [Getting Started](https://huggingface.co/docs/openenv/getting-started) shows both, and [Environments](https://huggingface.co/docs/openenv/environments) lists the environments you can use.\n", + "The same client connects to the hosted Echo Space with `base_url=\"https://openenv-echo-env.hf.space\"`, and `AutoEnv.from_env()` loads any environment by name. [Getting Started](https://openenv.github.io/OpenEnv/main/getting-started) shows both, and [Environments](https://openenv.github.io/OpenEnv/main/environments) lists the environments you can use.\n", "\n", "## The environment skeleton\n", "\n", @@ -456,11 +456,11 @@ "\n", "## Next steps\n", "\n", - "- [Your First Environment](https://huggingface.co/docs/openenv/guides/first-environment) and [Deploying an Environment](https://huggingface.co/docs/openenv/getting_started/environment-builder) take this skeleton to a packaged environment: `openenv init`, Docker, `openenv validate` and `openenv push`.\n", - "- [Environments](https://huggingface.co/docs/openenv/environments) lists the environments you can use today.\n", - "- [MCP Environments](https://huggingface.co/docs/openenv/tutorials/mcp-environment) covers tool-based environments like Echo.\n", - "- [Rewards](https://huggingface.co/docs/openenv/guides/rewards) and [Rubrics](https://huggingface.co/docs/openenv/tutorials/rubrics) cover how environments compute rewards.\n", - "- [Training with OpenEnv](https://huggingface.co/docs/openenv/guides/training) lists every training framework that works with OpenEnv environments, with an example for each.\n", + "- [Your First Environment](https://openenv.github.io/OpenEnv/main/guides/first-environment) and [Deploying an Environment](https://openenv.github.io/OpenEnv/main/getting_started/environment-builder) take this skeleton to a packaged environment: `openenv init`, Docker, `openenv validate` and `openenv push`.\n", + "- [Environments](https://openenv.github.io/OpenEnv/main/environments) lists the environments you can use today.\n", + "- [MCP Environments](https://openenv.github.io/OpenEnv/main/tutorials/mcp-environment) covers tool-based environments like Echo.\n", + "- [Rewards](https://openenv.github.io/OpenEnv/main/guides/rewards) and [Rubrics](https://openenv.github.io/OpenEnv/main/tutorials/rubrics) cover how environments compute rewards.\n", + "- [Training with OpenEnv](https://openenv.github.io/OpenEnv/main/guides/training) lists every training framework that works with OpenEnv environments, with an example for each.\n", "\n", "OpenEnv is openly governed. See [GOVERNANCE.md](https://github.com/openenv/OpenEnv/blob/main/GOVERNANCE.md) for how decisions are made." ], diff --git a/examples/claude_code_harness_eval/README.md b/examples/claude_code_harness_eval/README.md index 040745e750..a29cf9d3a8 100644 --- a/examples/claude_code_harness_eval/README.md +++ b/examples/claude_code_harness_eval/README.md @@ -2,9 +2,9 @@ This recipe runs [Claude Code](https://docs.anthropic.com/en/docs/claude-code) *inside* an OpenEnv environment with [`HarnessEnvironment`](../../src/openenv/core/harness/environment.py), the agentic harness wrapper from [RFC 005](../../rfcs/005-agentic-harnesses.md), and evaluates it on [τ²-bench](https://github.com/sierra-research/tau2-bench) through [`tau2_env`](../../envs/tau2_env/README.md). Claude Code is the customer service agent: it gets the domain's tools and policy over MCP, τ²-bench's simulated customer talks to it over several turns, and τ²-bench scores the conversation. -The walkthrough is in the docs: [Evaluate Claude Code in an Environment](https://huggingface.co/docs/openenv/tutorials/claude-code-harness). +The walkthrough is in the docs: [Evaluate Claude Code in an Environment](https://openenv.github.io/OpenEnv/main/tutorials/claude-code-harness). -It is an evaluation recipe. RFC 005 does not capture token ids, so this is not a training path. To train a harness's policy on task-and-verifier episodes, use [Harbor](https://huggingface.co/docs/openenv/environments/harbor). +It is an evaluation recipe. RFC 005 does not capture token ids, so this is not a training path. To train a harness's policy on task-and-verifier episodes, use [Harbor](https://openenv.github.io/OpenEnv/main/environments/harbor). | File | | |---|---| diff --git a/examples/end_to_end_walkthrough.ipynb b/examples/end_to_end_walkthrough.ipynb index 0d93ba627c..b8fae36b5d 100644 --- a/examples/end_to_end_walkthrough.ipynb +++ b/examples/end_to_end_walkthrough.ipynb @@ -247,7 +247,7 @@ "\n", "## 6. Set the GRPO config\n", "\n", - "These settings mirror the [Wordle GRPO tutorial](https://huggingface.co/docs/openenv/tutorials/wordle-grpo) and are tuned for a single A100 (40 GB). Bigger GPUs can raise `per_device_train_batch_size` and `num_generations`; smaller GPUs should drop to Qwen3-0.6B and shrink `max_completion_length`." + "These settings mirror the [Wordle GRPO tutorial](https://openenv.github.io/OpenEnv/main/tutorials/wordle-grpo) and are tuned for a single A100 (40 GB). Bigger GPUs can raise `per_device_train_batch_size` and `num_generations`; smaller GPUs should drop to Qwen3-0.6B and shrink `max_completion_length`." ] }, { @@ -412,8 +412,8 @@ "## 10. Where to go next\n", "\n", "- **Swap the dataset.** `chain_sum` is one of ~100 datasets in [Reasoning Gym](https://github.com/open-thought/reasoning-gym) — try `simple_equations`, `letter_counting`, or `propositional_logic` by changing `DATASET_NAME` and re-running the same recipe.\n", - "- **Try a different environment.** The same `environment_factory` shape works for any OpenEnv environment with a small tool surface — browse the [environment catalog](https://huggingface.co/docs/openenv/environments) for ideas.\n", - "- **Read the other tutorials.** [Wordle GRPO](https://huggingface.co/docs/openenv/tutorials/wordle-grpo) covers the multi-step variant; the full list is in the [tutorials index](https://huggingface.co/docs/openenv/tutorials/index)." + "- **Try a different environment.** The same `environment_factory` shape works for any OpenEnv environment with a small tool surface — browse the [environment catalog](https://openenv.github.io/OpenEnv/main/environments) for ideas.\n", + "- **Read the other tutorials.** [Wordle GRPO](https://openenv.github.io/OpenEnv/main/tutorials/wordle-grpo) covers the multi-step variant; the full list is in the [tutorials index](https://openenv.github.io/OpenEnv/main/tutorials/index)." ] } ], diff --git a/examples/evaluation_inspect.ipynb b/examples/evaluation_inspect.ipynb index 2c7d52cf1f..7ac3435d05 100644 --- a/examples/evaluation_inspect.ipynb +++ b/examples/evaluation_inspect.ipynb @@ -332,7 +332,7 @@ "id": "d6e7f8a9-b0c1-2345-defa-456789012345", "metadata": {}, "source": [ - "---\n\n## Next steps\n\n- **[Wordle GRPO tutorial](https://huggingface.co/docs/openenv/tutorials/wordle-grpo)** — train a model you can then evaluate with this notebook\n- **[Rubrics tutorial](https://huggingface.co/docs/openenv/tutorials/rubrics)** — define composable reward functions inside the environment\n- **[Inspect AI documentation](https://inspect.aisi.org.uk/)** — full reference for tasks, solvers, scorers, and the log viewer" + "---\n\n## Next steps\n\n- **[Wordle GRPO tutorial](https://openenv.github.io/OpenEnv/main/tutorials/wordle-grpo)** — train a model you can then evaluate with this notebook\n- **[Rubrics tutorial](https://openenv.github.io/OpenEnv/main/tutorials/rubrics)** — define composable reward functions inside the environment\n- **[Inspect AI documentation](https://inspect.aisi.org.uk/)** — full reference for tasks, solvers, scorers, and the log viewer" ] } ], diff --git a/examples/rubrics.ipynb b/examples/rubrics.ipynb index 5844f1097d..3b180252e7 100644 --- a/examples/rubrics.ipynb +++ b/examples/rubrics.ipynb @@ -441,7 +441,7 @@ "cell_type": "markdown", "id": "765896d7-09ea-4a31-a560-a362cd17faeb", "metadata": {}, - "source": "## Next Steps\n\n- **Real-world trajectory example** \u2014 walk through `envs/chess_env/server/rubrics.py` and `chess_environment.py` to see `ExponentialDiscountingTrajectoryRubric` wired into a game environment.\n- **Design details** \u2014 [RFC 004](https://github.com/openenv/OpenEnv/blob/main/rfcs/004-rubrics.md) covers the rationale for the composable API and the \"rewards inside the environment\" invariant.\n- **Reward design basics** \u2014 the [Reward Design](https://huggingface.co/docs/openenv/guides/rewards) guide covers sparse-vs-dense signals and common pitfalls that still apply on top of any rubric composition.\n- **Training loop integration** \u2014 see the [Training with OpenEnv](https://huggingface.co/docs/openenv/guides/training) guide and the [TRL OpenEnv integration guide](https://huggingface.co/docs/trl/main/en/openenv) for the recommended `environment_factory` pattern." } + "source": "## Next Steps\n\n- **Real-world trajectory example** \u2014 walk through `envs/chess_env/server/rubrics.py` and `chess_environment.py` to see `ExponentialDiscountingTrajectoryRubric` wired into a game environment.\n- **Design details** \u2014 [RFC 004](https://github.com/openenv/OpenEnv/blob/main/rfcs/004-rubrics.md) covers the rationale for the composable API and the \"rewards inside the environment\" invariant.\n- **Reward design basics** \u2014 the [Reward Design](https://openenv.github.io/OpenEnv/main/guides/rewards) guide covers sparse-vs-dense signals and common pitfalls that still apply on top of any rubric composition.\n- **Training loop integration** \u2014 see the [Training with OpenEnv](https://openenv.github.io/OpenEnv/main/guides/training) guide and the [TRL OpenEnv integration guide](https://huggingface.co/docs/trl/main/en/openenv) for the recommended `environment_factory` pattern." } ], "metadata": { "kernelspec": { diff --git a/examples/sft_warmup.ipynb b/examples/sft_warmup.ipynb index 8c242559e8..08599ea851 100644 --- a/examples/sft_warmup.ipynb +++ b/examples/sft_warmup.ipynb @@ -3,7 +3,7 @@ { "cell_type": "markdown", "metadata": {}, - "source": "# Collecting rollouts with OpenEnv for supervised training\n\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/openenv/OpenEnv/blob/main/examples/sft_warmup.ipynb)\n\nOpenEnv environments are not only useful for RL training — they are also a natural tool for **collecting rollouts that become supervised training data**. The environment handles episode management, automatic scoring, and reproducibility, so you get a reward-labeled dataset without writing any of that infrastructure yourself.\n\n**What you'll build:**\n- ~300 rollouts collected from `gpt-5-mini` running inside `reasoning_gym_env`, scored automatically by the environment\n- A filtered, inspected SFT dataset with token-length analysis\n- A fine-tuned `Qwen/Qwen3-1.7B` checkpoint trained on the collected rollouts\n- A before/after eval table showing the improvement from training on environment-collected data\n\n**Next step:** use the checkpoint as a warm-start for GRPO in the [End-to-end walkthrough](https://huggingface.co/docs/openenv/tutorials/end-to-end-walkthrough)." }, + "source": "# Collecting rollouts with OpenEnv for supervised training\n\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/openenv/OpenEnv/blob/main/examples/sft_warmup.ipynb)\n\nOpenEnv environments are not only useful for RL training — they are also a natural tool for **collecting rollouts that become supervised training data**. The environment handles episode management, automatic scoring, and reproducibility, so you get a reward-labeled dataset without writing any of that infrastructure yourself.\n\n**What you'll build:**\n- ~300 rollouts collected from `gpt-5-mini` running inside `reasoning_gym_env`, scored automatically by the environment\n- A filtered, inspected SFT dataset with token-length analysis\n- A fine-tuned `Qwen/Qwen3-1.7B` checkpoint trained on the collected rollouts\n- A before/after eval table showing the improvement from training on environment-collected data\n\n**Next step:** use the checkpoint as a warm-start for GRPO in the [End-to-end walkthrough](https://openenv.github.io/OpenEnv/main/tutorials/end-to-end-walkthrough)." }, { "cell_type": "markdown", "metadata": {}, @@ -153,7 +153,7 @@ { "cell_type": "markdown", "metadata": {}, - "source": "---\n\n## 11. Where to go next: GRPO\n\nThe SFT checkpoint is ready to use as the warm-start for GRPO. In the\n[end-to-end walkthrough](https://huggingface.co/docs/openenv/tutorials/end-to-end-walkthrough),\nchange one line in the trainer setup:\n\n```python\n# Before (cold-start from the base model):\nMODEL_NAME = \"Qwen/Qwen3-1.7B\"\n\n# After (warm-start from your SFT checkpoint):\nMODEL_NAME = f\"{YOUR_HF_USERNAME}/reasoning-gym-chain-sum-Qwen3-1.7B-sft\"\n```\n\nWith most completions already in the right format, GRPO's `reward_std` will be non-zero from the first batch\nand the reward curve will climb immediately." + "source": "---\n\n## 11. Where to go next: GRPO\n\nThe SFT checkpoint is ready to use as the warm-start for GRPO. In the\n[end-to-end walkthrough](https://openenv.github.io/OpenEnv/main/tutorials/end-to-end-walkthrough),\nchange one line in the trainer setup:\n\n```python\n# Before (cold-start from the base model):\nMODEL_NAME = \"Qwen/Qwen3-1.7B\"\n\n# After (warm-start from your SFT checkpoint):\nMODEL_NAME = f\"{YOUR_HF_USERNAME}/reasoning-gym-chain-sum-Qwen3-1.7B-sft\"\n```\n\nWith most completions already in the right format, GRPO's `reward_std` will be non-zero from the first batch\nand the reward curve will climb immediately." } ], "metadata": { diff --git a/examples/wordle/README.md b/examples/wordle/README.md index 3837961da9..026f225b6e 100644 --- a/examples/wordle/README.md +++ b/examples/wordle/README.md @@ -1,6 +1,6 @@ # Wordle: SFT, then GRPO -Train Qwen3-1.7B to play Wordle against the [`openenv/wordle`](https://huggingface.co/spaces/openenv/wordle) environment. The [tutorial](https://huggingface.co/docs/openenv/tutorials/wordle-grpo) walks through each step, with results, hardware and costs. +Train Qwen3-1.7B to play Wordle against the [`openenv/wordle`](https://huggingface.co/spaces/openenv/wordle) environment. The [tutorial](https://openenv.github.io/OpenEnv/main/tutorials/wordle-grpo) walks through each step, with results, hardware and costs. | Script | What it does | Where it runs | |---|---|---| diff --git a/examples/wordle/wordle.ipynb b/examples/wordle/wordle.ipynb index a26f246672..e1157ab897 100644 --- a/examples/wordle/wordle.ipynb +++ b/examples/wordle/wordle.ipynb @@ -8,7 +8,7 @@ "\n", "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/openenv/OpenEnv/blob/main/examples/wordle/wordle.ipynb)\n", "\n", - "This notebook follows the [OpenEnv Wordle tutorial](https://huggingface.co/docs/openenv/tutorials/wordle-grpo). Qwen3-1.7B can't win a game of Wordle. A short SFT warmup teaches it the game, and GRPO against the [`openenv/wordle`](https://huggingface.co/spaces/openenv/wordle) environment cuts its mistakes.\n", + "This notebook follows the [OpenEnv Wordle tutorial](https://openenv.github.io/OpenEnv/main/tutorials/wordle-grpo). Qwen3-1.7B can't win a game of Wordle. A short SFT warmup teaches it the game, and GRPO against the [`openenv/wordle`](https://huggingface.co/spaces/openenv/wordle) environment cuts its mistakes.\n", "\n", "- **On a free T4** you can play the environment, generate the SFT data, launch SFT and GRPO on [Hugging Face Jobs](https://huggingface.co/docs/huggingface_hub/guides/jobs) and compare the published models.\n", "- **On an A100 (Colab Pro)** you can also run SFT and GRPO in the notebook itself." diff --git a/src/openenv/auto/auto_action.py b/src/openenv/auto/auto_action.py index d093d796ea..ec14cd6b01 100644 --- a/src/openenv/auto/auto_action.py +++ b/src/openenv/auto/auto_action.py @@ -91,7 +91,7 @@ def from_env(cls, name: str, skip_install: bool = False) -> Type: Examples: - "coding" / "coding-env" / "coding_env" - "openenv/coding_env" (Hub repo ID) - - "https://huggingface.co/openenv/coding_env" (Hub URL) + - `"https://huggingface.co/openenv/coding_env"` (Hub URL) skip_install: If True, skip package installation and return GenericAction class instead. Use this when working with GenericEnvClient to avoid installing remote packages. diff --git a/src/openenv/auto/auto_env.py b/src/openenv/auto/auto_env.py index 467af30c9c..4a82121c41 100644 --- a/src/openenv/auto/auto_env.py +++ b/src/openenv/auto/auto_env.py @@ -520,7 +520,7 @@ def from_env( Examples: - "coding" / "coding-env" / "coding_env" - "openenv/coding_env" (Hub repo ID) - - "https://huggingface.co/openenv/coding_env" (Hub URL) + - `"https://huggingface.co/openenv/coding_env"` (Hub URL) base_url: Optional base URL for HTTP connection docker_image: Optional Docker image name (overrides default) container_provider: Optional container provider diff --git a/src/openenv/cli/commands/skills.py b/src/openenv/cli/commands/skills.py index 3c1c66930f..8bb7fcd06a 100644 --- a/src/openenv/cli/commands/skills.py +++ b/src/openenv/cli/commands/skills.py @@ -38,7 +38,7 @@ Use `openenv --help` for full flag reference. -Full CLI reference: https://huggingface.co/docs/openenv/reference/cli +Full CLI reference: https://openenv.github.io/OpenEnv/main/reference/cli """ CENTRAL_LOCAL = Path(".agents/skills") diff --git a/src/openenv/core/env_server/interfaces.py b/src/openenv/core/env_server/interfaces.py index 82bffefcfd..8cd15ed7a8 100644 --- a/src/openenv/core/env_server/interfaces.py +++ b/src/openenv/core/env_server/interfaces.py @@ -105,7 +105,7 @@ class TaskProvider(Protocol): Selecting a task is not part of this protocol — pass the chosen split and index to `reset()` instead. See the - [Task API guide](https://huggingface.co/docs/openenv/guides/task-api). + [Task API guide](https://openenv.github.io/OpenEnv/main/guides/task-api). Examples: diff --git a/src/openenv/core/env_server/web_interface.py b/src/openenv/core/env_server/web_interface.py index 592c300d4a..449b90f99d 100644 --- a/src/openenv/core/env_server/web_interface.py +++ b/src/openenv/core/env_server/web_interface.py @@ -169,7 +169,7 @@ def get_quick_start_markdown( lines += ["", after] lines += [ "", - "More in the [OpenEnv documentation](https://huggingface.co/docs/openenv).", + "More in the [OpenEnv documentation](https://openenv.github.io/OpenEnv/).", ] return "\n".join(lines) diff --git a/src/openenv/harbor/ui_pages.py b/src/openenv/harbor/ui_pages.py index 69bdcc7697..bad6cb755f 100644 --- a/src/openenv/harbor/ui_pages.py +++ b/src/openenv/harbor/ui_pages.py @@ -128,7 +128,7 @@ def granted(token: str) -> str | None: # ── header ─────────────────────────────────────────────────────────────────────────────────────── -DOCS_URL = "https://huggingface.co/docs/openenv/environments/harbor" +DOCS_URL = "https://openenv.github.io/OpenEnv/main/environments/harbor" def header_html( From de4b6232407a6488b7414649de6bde4eb212a4f2 Mon Sep 17 00:00:00 2001 From: sergiopaniego Date: Wed, 25 Nov 2026 16:31:05 +0100 Subject: [PATCH 2/2] Format all AutoEnv and AutoAction name examples as code --- src/openenv/auto/auto_action.py | 4 ++-- src/openenv/auto/auto_env.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openenv/auto/auto_action.py b/src/openenv/auto/auto_action.py index ec14cd6b01..8b9a86b74c 100644 --- a/src/openenv/auto/auto_action.py +++ b/src/openenv/auto/auto_action.py @@ -89,8 +89,8 @@ def from_env(cls, name: str, skip_install: bool = False) -> Type: Args: name: Environment name or HuggingFace Hub repo ID Examples: - - "coding" / "coding-env" / "coding_env" - - "openenv/coding_env" (Hub repo ID) + - `"coding"` / `"coding-env"` / `"coding_env"` + - `"openenv/coding_env"` (Hub repo ID) - `"https://huggingface.co/openenv/coding_env"` (Hub URL) skip_install: If True, skip package installation and return GenericAction class instead. Use this when working with diff --git a/src/openenv/auto/auto_env.py b/src/openenv/auto/auto_env.py index 4a82121c41..954e0d7f4a 100644 --- a/src/openenv/auto/auto_env.py +++ b/src/openenv/auto/auto_env.py @@ -518,8 +518,8 @@ def from_env( Args: name: Environment name or HuggingFace Hub repo ID Examples: - - "coding" / "coding-env" / "coding_env" - - "openenv/coding_env" (Hub repo ID) + - `"coding"` / `"coding-env"` / `"coding_env"` + - `"openenv/coding_env"` (Hub repo ID) - `"https://huggingface.co/openenv/coding_env"` (Hub URL) base_url: Optional base URL for HTTP connection docker_image: Optional Docker image name (overrides default)