WebAnything Enables Fully Automated, Reproducible Web Environments for AI Agents
Researchers released WebAnything, a framework that auto‑creates source‑grounded web replicas for training agents.

WebAnything, a new framework announced on arXiv, automatically rebuilds real‑world websites into reusable, resettable environments that AI agents can interact with for training and evaluation. By removing the need for per‑site engineering, it promises faster, more reliable development of web‑based agents—an essential step as such agents move from research labs to production.
What is WebAnything and why does it matter?
WebAnything tackles a long‑standing bottleneck for web agents: the scarcity of diverse, executable, and resettable website environments that faithfully reflect the live web. Traditional approaches fall into two camps. Human‑assisted mirrors, such as the WebHarbor project, require engineers to manually script each site, which does not scale. Generative methods synthesize mock sites but often diverge from the real pages agents will encounter, limiting ecological validity. Capture‑and‑replay techniques preserve observations but are constrained by the captured content and cannot guarantee full interaction coverage.
WebAnything proposes a third way: a fully automated pipeline that takes any public URL, crawls the site, records browser‑observable structures, resources, and interaction outcomes, and then freezes a reproducible replica. The resulting environment is source‑grounded—its HTML, CSS, JavaScript, and assets match the original site—yet it can be reset to a clean state for every training episode. According to the paper, this eliminates the need for post‑deployment repairs, dramatically lowering maintenance overhead for large‑scale agent programs.
How does the Explorer‑Builder and verifier work?
The system consists of two main components. First, the Explorer‑Builder launches a headless browser against a target URL, systematically interacting with page elements (clicks, form submissions, scrolls) while logging the DOM tree, network requests, and resulting state changes. It stores each observed resource in a local cache and records the outcome of every interaction, creating a comprehensive snapshot of the site’s functional surface.
Second, an independent verifier runs a separate pass over the frozen snapshot. It attempts to replay the recorded interactions and checks whether the outcomes match the original observations. When mismatches appear—due to dynamic content, third‑party scripts, or anti‑scraping measures—the verifier flags the problematic sections and either triggers a local repair (e.g., stubbing out a failing API call) or prompts a targeted recrawl of the source. This two‑stage design ensures that the final artifact is both faithful to the live site and reliably executable.
How does WebAnything compare to existing approaches?
The authors benchmarked WebAnything against the human‑assisted WebHarbor system using three fidelity metrics: structural similarity, interaction correctness, and task‑level success. In a blind audit, WebAnything achieved 12 wins, 2 ties, and no losses across the metrics, indicating higher overall fidelity. Moreover, because WebAnything’s pipeline is fully automated, the time required to create a new site artifact is measured in minutes rather than hours or days of manual scripting.
Beyond fidelity, the framework scales across domains. The researchers built 244 website artifacts covering 14 application domains and 53 categories, supporting 12,984 executed and accepted tasks. This breadth demonstrates that the method works not only on simple e‑commerce pages but also on complex portals such as travel booking sites, forums, and government services.
What were the experimental results?
To evaluate downstream impact, the team fine‑tuned the Qwen3.5‑9B language model on 5,856 interaction trajectories harvested from the WebAnything environments. When tested on a fixed evaluation harness, the fine‑tuned model showed measurable gains:
- REAL success increased by 9.9 percentage points.
- Odysseys‑Easy Rubric Avg and Task Avg rose by 6.25 and 6.32 percentage points, respectively.
- WebArena‑Verified Overall success improved by 13.33 percentage points.
These improvements suggest that training on high‑fidelity, source‑grounded replicas yields agents that generalize better to real‑world web tasks. The authors attribute the gains to richer interaction data and fewer discrepancies between training and evaluation environments.
How can developers use WebAnything in practice?
WebAnything is released as open‑source code (the repository URL is provided in the paper). Developers can integrate the pipeline into existing agent training workflows as follows:
- Select target URLs that represent the task distribution of interest.
- Run the Explorer‑Builder to collect a full interaction log. The process is parallelizable, enabling batch creation of dozens of sites.
- Validate with the verifier and let it automatically repair or flag problematic assets.
- Export the frozen environments as Docker containers or static file bundles, which can be mounted into reinforcement‑learning loops.
- Fine‑tune language or multimodal models on the captured trajectories, using frameworks such as Hugging Face Transformers or Grafy’s Code studio (Grafy Code) for custom data pipelines.
Because the artifacts are self‑contained, they can be version‑controlled alongside model checkpoints, ensuring reproducibility across research teams. The authors also provide a simple CLI to query the catalog of generated sites, making it straightforward to sample environments for curriculum learning.
Relevance to Grafy users
Grafy’s Operator app (Operator) lets creators build autonomous browsing agents that perform web‑based tasks. However, testing such agents against live sites is fraught with variability—pages change, CAPTCHAs appear, and rate limits can block repeated queries. By importing WebAnything’s frozen replicas into Operator, developers can run deterministic simulations, benchmark performance, and iterate rapidly without risking bans or corrupting live services.
For researchers who want to study web interaction data, Grafy’s Reader (Reader) offers a convenient way to ingest the PDF, ask questions, and extract tables or figures directly in the workspace. Combining Reader with Operator enables a closed‑loop workflow: read the methodology, generate a replica, and immediately test a new agent—all within Grafy’s multimodal environment.
Frequently asked questions
How does WebAnything handle dynamic content such as ads or personalized recommendations?
The verifier detects mismatches caused by dynamic elements. WebAnything can stub out third‑party scripts or replace them with static placeholders, ensuring that the replica remains functional while removing nondeterministic behavior that would otherwise break reproducibility.
Can the framework be used for sites that require authentication?
Yes. The Explorer‑Builder supports authenticated sessions by allowing users to supply cookies or login credentials before crawling. Once authenticated, the captured resources are stored locally, and the verifier replays interactions using the same session data.
Is WebAnything compatible with non‑HTML resources like PDFs or embedded media?
The primary focus is on browser‑observable HTML, CSS, JavaScript, and media assets (images, video). While PDFs linked from a page are downloaded and cached, the framework does not recreate interactive PDF viewers. However, static PDFs can still be served from the replica for downstream tasks.
Source: arXiv AI — WebAnything: From the Wild Web to Scalable Agent Environments


