browsergym-core
BrowserGym: a gym environment for web task automation in the Chromium browser
What it is and what it does
BrowserGym is a gymnasium-based framework for building and evaluating web automation agents. It wraps Chromium via Playwright and provides a standardized interface for agents to interact with websites—observing page state, taking actions, and receiving rewards. The core package registers open-ended web tasks as gym environments, allowing you to implement custom agents that navigate, click, type, and reason about web content using HTML parsing (beautifulsoup4, lxml) and visual features (pillow, numpy).
The package is designed for research into web agent capabilities rather than production automation. It integrates with gymnasium's standard environment loop, making it straightforward to plug in your own agent logic—whether rule-based, learning-based, or LLM-driven. The framework is extensible: you can define new tasks by inheriting from AbstractBrowserTask. While the core package provides the foundation, additional benchmark packages (miniwob, webarena, workarena, etc.) add pre-built task suites; the core alone supports open-ended tasks and custom benchmarks.
Use it for:
- Research and development of web automation agents using reinforcement learning or LLM-based reasoning.
- Benchmarking agent performance on standardized web tasks like form filling, navigation, and information retrieval.
- Building custom web task evaluation suites by extending the AbstractBrowserTask class.
- Testing agent behavior on interactive, open-ended web scenarios with real Chromium rendering.
- Prototyping multi-step web workflows that require visual understanding and DOM interaction.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
BrowserGym provides a gymnasium environment for automating web tasks in Chromium, letting you build and test agents that interact with websites through a standardized interface.
Yes, if you are building or researching web automation agents. The low install friction, active maintenance, permissive license, and gymnasium integration make it a solid foundation. Not recommended for production web scraping or automation—it is explicitly a research tool. No known security vulnerabilities.
Install
browsergym-core on PyPI
pip
pip install browsergym-coreuv
uv add browsergym-corepoetry
poetry add browsergym-coreInstalling browsergym-core
Before you install
Low friction installation with a pure Python wheel. The package is actively maintained with recent commits and has 1315 repository stars, indicating active development and community use.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions—just retain attribution and license notices.
Quickstart
pip install browsergym-core
import gymnasium as gym
import browsergym.core
env = gym.make("browsergym/openended", task_kwargs={"start_url": "https://www.google.com/"})
obs, info = env.reset()
action = ... # your agent logic
obs, reward, terminated, truncated, info = env.step(action)
env.close()
Requires Python >3.9 and Playwright browser installation (run `playwright install chromium` after pip install).
Verify before relying
- Whether browsergym-core alone is sufficient for typical use cases or if additional benchmark packages are typically required.
- Performance characteristics and resource requirements when running agents on complex web tasks.
- Compatibility and integration details with specific LLM backends beyond the demo agent examples.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — beautifulsoup4, gymnasium, lxml, mcp, numpy, pillow, playwright, pyparsing |
| Maintenance | actively maintained — 206 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,548,879/month — #3,776 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: browsergym_core-0.14.3-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
gymnasiumGymnasium provides a standard Python API for…
permissive · top 5,000 on PyPI
robotframework-browserBrowser automation library for Robot Framework…
permissive · top 5,000 on PyPI
seleniumbaseSeleniumBase is a browser automation framework…
permissive · top 5,000 on PyPI
nemo-gymNeMo Gym provides infrastructure for building,…
permissive · top 5,000 on PyPI
browser-useBrowser Use is a Python library that lets AI…
permissive · top 1,000 on PyPI
cloakbrowserLaunches a stealth Chromium browser that evades…
permissive · top 15,000 on PyPI
terminal-benchTerminal-Bench provides a benchmark suite and…
unclear · top 15,000 on PyPI
playwrightAutomate Chromium, Firefox, and WebKit browsers…
permissive · top 1,000 on PyPI
robocorp-browserA wrapper around Playwright that automates…
permissive · top 15,000 on PyPI
pytest-playwrightA pytest plugin that integrates Playwright…
permissive · top 5,000 on PyPI