Skip to main content

TimeWarp for BrowserGym

Hello, researcher! We provide instructions to set TimeWarp with BrowserGym.

Setup

Run the following command to install browsergym-timewarp:

pip install browsergym-timewarp
python -c "import nltk; nltk.download('punkt_tab')"

Set the OpenAI API Key:

export OPENAI_API_KEY="your-key"  # For fuzzy evaluation

Usage

import gymnasium as gym
import browsergym.timewarp

env = gym.make("browsergym/timewarp.1")
obs, info = env.reset()

# Run your agent

env.close()

Adding Tasks

⚠️ To add tasks, install both browsergym and browsergym-timewarp in editable mode using pip install -e . ⚠️

  1. Add to src/browsergym/timewarp/data/test.raw.json
  2. Update TASK_IDS in timewarp/config.py
  3. Add to browsergym/experiments/src/browsergym/experiments/benchmark/metadata/timewarp.csv in the original BrowserGym repo.

Sites: ["wiki"], ["webshop"], ["news"] Placeholders: __WIKI__, __WEBSHOP__, __NEWS__

Citation

Don't forget to cite BrowserGym:

@article{
    chezelles2025browsergym,
    title={The BrowserGym Ecosystem for Web Agent Research},
    author={Thibault Le Sellier de Chezelles and Maxime Gasse and Alexandre Lacoste and Massimo Caccia and Alexandre Drouin and L{\'e}o Boisvert and Megh Thakkar and Tom Marty and Rim Assouel and Sahar Omidi Shayegan and Lawrence Keunho Jang and Xing Han L{\`u} and Ori Yoran and Dehan Kong and Frank F. Xu and Siva Reddy and Graham Neubig and Quentin Cappart and Russ Salakhutdinov and Nicolas Chapados},
    journal={Transactions on Machine Learning Research},
    issn={2835-8856},
    year={2025},
    url={https://openreview.net/forum?id=5298fKGmv3},
    note={Expert Certification}
}

Metadata

Release files for browsergym-timewarp 0.2.1

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

Source distribution (sdist)

Source distribution for browsergym-timewarp 0.2.1
File Size Uploaded
browsergym_timewarp-0.2.1.tar.gz 238.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for browsergym-timewarp 0.2.1
File Interpreter ABI Platform
browsergym_timewarp-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 464.5 kB

Release files / browsergym_timewarp-0.2.1.tar.gz

Download URL browsergym_timewarp-0.2.1.tar.gz
Size 238.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c8859883a7b5b98aa9fbe3dcfdba6304c3db9a4568d51bdb275cc0f8ea8f37fb
BLAKE2b-256 checksum
How to use checksums
be2aee05ab45657067b88e38e059b00429cd4a01ee27eace2d445238262deb8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / browsergym_timewarp-0.2.1-py3-none-any.whl

Download URL browsergym_timewarp-0.2.1-py3-none-any.whl
Size 226.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
259361e09a672247c0001c31eac8744e3cde1d80255555f330065a4a77d85bd3
BLAKE2b-256 checksum
How to use checksums
171162f5002093fa7af85397977336909b7660e2c8017e5b2a3f44507b4d2940
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

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