Webwright Browser Coding Agent
Turn coding models into browser agents that solve and preserve long-horizon web tasks as rerunnable Python.
- Source repo
- microsoft/CUAWright
- Stars
- ★ 6.1k
- Last updated
- 1mo ago
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 53/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code · OpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- An automation engineer needs to turn a multi-page search, filtering, form-filling, or collection workflow into a repeatable Playwright Python program.
- Not a fit if
- Teams needing multi-agent orchestration or enterprise workflow governance
- Users who want a hosted, no-code web automation product
- Environments without Python 3.10+, Chromium, and a writable workspace
- Maintenance
- Commits in the last 6 monthslast commit 2026-10-27+0.7 ★/day over 7 days
- Source review
- 53/100 · Major gaps
What does this agent do, and when should you use it?
Webwright is a lightweight browser-agent framework in which a model writes, executes, and repairs Playwright Python instead of predicting one click or screen coordinate at a time. Its concrete pieces include the agent loop in agents/default.py, a Playwright browser environment, OpenAI/Anthropic/OpenRouter backends, a Typer CLI, and the image_qa and self_reflection tools. Browser sessions are disposable; durable state lives in the local workspace as code, logs, trajectories, and screenshots. Each task is driven toward a rerunnable final_script.py, while the optional Task Showcase configuration can also emit task.json and structured report.json output. Skill Factory can distill successful scripts into parameterized programs that pass an input gate and standalone replay verification before reuse. It is a fit for teams that can supply Python, Chromium, network and filesystem access, and model credentials, and that value inspectable automation over a hosted no-code experience.
A user submits a task, start URL, configuration files, and output directory through python -m webwright.run.cli. The loop in agents/default.py follows a flat prompt-observe-execute-script cycle: the model creates Python in a terminal workspace, the environment starts one or more Playwright/Chromium sessions, and the script queries elements, waits for conditions, fills forms, or traverses multi-page workflows. When execution fails, the agent inspects saved logs, page states, or screenshots and repairs the program until it has a rerunnable final script. A normal run writes trajectory.json and debugging artifacts; adding task_showcase.yaml also produces task.json and report.json. The webwright.skill_factory commands and components—recommend, route, learn, build, and update—reuse, distill, and regression-check prior programs. The repository also supplies plugin or skill paths for Claude Code, Codex, OpenClaw, and Hermes Agent, plus a browser-based viewer for comparing Webwright, Codex, and GitHub Copilot trajectories.
- An automation engineer needs to turn a multi-page search, filtering, form-filling, or collection workflow into a repeatable Playwright Python program.
- A browser-agent research team wants to test a code-as-action approach on long-horizon suites such as Online-Mind2Web or Odysseys and inspect complete trajectories and screenshots.
- A Claude Code or Codex user wants the existing coding agent to operate websites through a documented plugin instead of adding a separate multi-agent orchestrator.
- An operations or data team repeatedly checks deals, inventory, listings, job boards, or weather and wants Task Showcase to render structured results in a small dashboard.
- A team with recurring site workflows wants Skill Factory to convert verified successful runs into parameterized CLI programs that can later execute without a model.
- A framework developer wants a browser-agent starting point whose core loop, browser environment, backends, and CLI are small enough to read and modify directly.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install -e
- Environment variables
OPENAI_API_KEYANTHROPIC_API_KEY- Config files
model_openai.yamlmodel_claude.yamlbase.yamltask_showcase.yaml- Runtime
- Python 3.10+
How do you install or deploy this agent?
The standalone framework requires Python 3.10+, filesystem and network access, Playwright Chromium, and an API key for the selected backend. From the repository root, run:
pip install -e .
playwright install chromiumSet OPENAI_API_KEY when using model_openai.yaml, or ANTHROPIC_API_KEY when using model_claude.yaml. An OpenRouter backend is listed, but the supplied quick start does not name its credential variable. For Claude Code, run /plugin marketplace add microsoft/Webwright, then /plugin install webwright@webwright, and restart the session. For Codex CLI, run codex plugin marketplace add microsoft/Webwright, launch codex, install Webwright through /plugins, and restart Codex.
How do you use this agent?
A first OpenAI-backed invocation is:
python -m webwright.run.cli \
-c base.yaml -c model_openai.yaml \
-t "Search for flights from SEA to JFK on 2026-08-15 to 2026-08-20" \
--start-url https://www.google.com/flights \
--task-id demo_openai \
-o outputs/default-c stacks configuration files from src/webwright/config/; -t supplies the task, --start-url chooses the initial page, --task-id names the output subdirectory, and -o sets the output root. Add -c task_showcase.yaml when renderer-ready structured output is required, then serve it with python assets/task_showcase/app.py --tasks-dir outputs/default/<run>/task_showcase/tasks. In Claude Code, /webwright:run <task> produces a one-shot script, while /webwright:craft <task> creates a reusable CLI with argparse parameters. In a new Codex thread, invoke the bundled skill with @webwright <task>.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Code is the action and the durable artifact: the completed browsing history is a Python program that can be reviewed, edited, shared, and rerun without preserving the original browser session.
- The architecture is deliberately inspectable: the source describes an approximately 450-line core loop, 570-line browser environment, and 150-line CLI without a graph engine or hidden orchestration.
- The standalone harness supports OpenAI, Anthropic, and OpenRouter, while the shared skill is explicitly integrated with Claude Code, Codex, OpenClaw, and Hermes Agent.
- Runs persist trajectories, screenshots, and logs to disk, giving adopters concrete material for debugging failures and comparing execution harnesses.
- Skill Factory turns solved work into parameterized programs with both an input gate and standalone replay verification; the reported WebArena experiment improved held-out accuracy from 55% to 70% with reuse.
- The source reports 86.7% on Online-Mind2Web and 60.1% on Odysseys under a 100-step budget, providing specific evidence for long-horizon performance.
- Self-hosting requires Python 3.10+, Playwright, Chromium, network access, and a writable workspace, creating runtime and browser-maintenance overhead.
- Standalone harness runs require credentials for the chosen model backend and incur that provider's usage cost; only the host-plugin path claims no extra key or model cost beyond the host subscription.
- Generated programs depend on live sites and their dynamic behavior. Waiting and repair logic can improve resilience, but a site redesign may still break an existing workflow.
- Structured
report.jsonoutput is not produced by a default run: adopters must explicitly addtask_showcase.yaml, and the accompanying dashboard separately requires Flask. - The performance figures apply to named models, datasets, and step budgets and do not establish equivalent reliability on every website, permission boundary, or business workflow.
- The framework intentionally omits multi-agent orchestration and graph engines, so teams requiring distributed scheduling, approval flows, or enterprise workflow governance must build those layers themselves.
How does this agent compare with similar options?
Unlike Stagehand, which offers a hybrid of code and natural-language primitives such as act and extract, Webwright lets the model write free-form Playwright Python. Unlike Vercel's agent-browser, it does not center the workflow on one open, click, or snapshot subprocess call per micro-step. Unlike browser-use and its repeated DOM/AX observation followed by indexed actions, Webwright treats local code, screenshots, and logs as state and allows browser sessions to be discarded. The README also reports benchmark comparisons: on Odysseys, GPT-5.4 with Webwright scored 60.1%, versus the listed Opus 4.6 vision/persistent-browser result of 44.5% and a base GPT-5.4 coordinate-prediction result of 33.5%; those figures are limited to the stated evaluation setup.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Webwright Browser Coding Agent This agent | 53 · Major gaps | CLIFree + model costs | ★ 6.1k | 1mo ago | Python | Codex · Claude Code · OpenAI API · Claude API |
| CamoFox Browser Server | 63 · Some gaps | Self-hosted serviceFree | ★ 463 | 27d ago | JavaScript | Claude Code |
| Weaver Agent Platform | 52 · Major gaps | Self-hosted serviceFree + model costs | ★ 183 | 7d ago | Python | OpenAI API · Claude API |
| Giselle | 49 · Major gaps | Self-hosted serviceFreemium | ★ 561 | 5d ago | TypeScript | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The README and skill describe execution in a local browser or Ubuntu VM, with traces, screenshots, and results written to a workspace. Desktop setup tells users to store credentials in a separate mode-0600 file, and supplied tests cover credential leakage and transport errors, supporting scores of 2 for data-flow transparency and sensitive-data handling. Deductions: the skill allows Bash, writing, and editing, and the desktop agent can run commands, so its permissions are broad; there is no general confirmation or rollback mechanism described for submission and other external actions, and the sample provides no dependency lock or vulnerability-handling evidence. NOTICE and desktop license files document imported-runtime attribution, earning source attribution 2.
The supplied desktop test examples cover timeouts, invalid responses, cleanup, and diagnostic errors, supporting a 2 for failure messages. Deductions: the skill prerequisites call for Firefox, while the main quick start and CI use Chromium; package metadata says Python 3.10+ while desktop setup requires 3.12+, so self-consistency and dependency availability each receive 1. Static material cannot establish runtime correctness.
The README separates browser, desktop, plugin, and optional Skill Factory use. The skill defines triggers such as search, filtering, form filling, and data extraction, and describes boundaries including unsupported Hermes commands and desktop files not being copied automatically to the host. Multiple backends, modes, and environments support ordinary adaptation, but audience-selection guidance and evidence for broader environment support are limited, so each criterion scores 2.
The README includes a project map, browser and desktop installation steps, command examples, rename news, and several limitations. Package and plugin metadata plus MIT and Apache-2.0 license files document naming, version, and licensing; the Microsoft organization identity and security-reporting guidance make maintenance responsibility reasonably clear. Deductions: the sample lacks a comprehensive FAQ or detailed changelog, and the migration leaves multiple names in use, so these documentation and naming criteria score 2 rather than full marks.
Browser scripts, desktop traces, manifests, result files, and screenshot conventions make outputs inspectable and reusable, earning output usability 2. Deductions: performance, cost savings, and reusable-skill gains are mainly asserted in the README; the supplied static sample does not include enough benchmark reports or result data to substantiate comparative gains. Running the system also requires model APIs, a browser or Docker/VM, and gated data, while cost-benefit is not independently established, so marginal value and cost-benefit each score 1.
The README's architecture description is corroborated by package structure, plugin manifests, the skill instructions, CI workflows, and desktop test examples, supporting cross-source corroboration 2. Deductions: performance figures, paper results, and some feature claims lack matching benchmark reports or result data in the supplied sample, limiting claim traceability; facts, inferences, and author claims are not systematically separated, so the other two criteria each score 1.
- The desktop agent can run terminal commands, and the browser skill allows Bash and file writes; review tasks and inspect generated scripts, traces, and results.
- Performance and cost improvements in the README are project claims; this static review did not execute code or independently verify them.
- The supplied skill calls for Firefox while the quick start and CI use Chromium; check browser installation requirements for the workflow you choose.
FAQ
Is OpenAI required?
image_qa and self_reflection by default and does not require an OpenAI key.Does every run produce a structured report?
base.yaml run produces trajectory.json and debugging artifacts but not report.json. Stack task_showcase.yaml to generate the task and report files consumed by the dashboard.Can a successful workflow run again without a model?
Do plugin users still need a separate model API key?
What local permissions does it need?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.