Skip to main content
Glama

hwatu

Latest Release License: MIT CI

A headless browser that runs on the user's machine and is driven by agents through a CLI and MCP. Target platforms: Linux, macOS, Windows.

Install

Linux is supported today. macOS and Windows are targets and are not yet supported.

curl -fsSL https://raw.githubusercontent.com/hongnoul/hwatu/main/scripts/install.sh | bash

The installer places one binary and checks for webkitgtk-6.0. On Arch: yay -S hwatu. From source: cargo build --release.

hwatu doctor            # check the install
hwatu setup             # detect Claude Code, Cursor, Jcode, or MCP clients

hwatu setup --dry-run previews changes and --undo reverts them. Manual MCP configuration is one entry:

{ "mcpServers": { "hwatu": { "command": "hwatu", "args": ["mcp"] } } }

Related MCP server: visual-qa-mcp

Quick start

hwatu localhost:3000                # open a headless window, prints its id
hwatu snapshot                      # page state as data, with interactable refs
hwatu click --ref 3
hwatu type --ref 5 "Test User"
hwatu expect '.status' --text Saved # assertion with polling
hwatu shot /tmp/after.png
hwatu show 1                        # make window 1 visible to a person

A sequence runs in one call. batch waits on page state instead of fixed delays and returns a result per step:

hwatu batch --stdin < steps.json

The full command set is in docs/agents.md.

Skills

Skills live in the agent harness. A skill is a SKILL.md in the harness's skills folder that calls hwatu commands. This project has no skill library, registry, or file format. See docs/agents.md.

Human involvement

The browser is headless and becomes visible only through show. When a person is needed, a command returns a structured stop and the agent relays it.

  • Login walls are reported as login_required. The agent asks the user and enters the value once. The session persists.

  • Irreversible actions (pay, place order, send, delete) return a stop with reason: "irreversible_action" and are not performed until the agent retries with --confirm after the user confirms in the current session.

  • CAPTCHAs and anti-bot challenges are handled by the agent with challenge, shot, snapshot, click --trusted, and type. If the challenge cannot be cleared, challenge returns a structured block and the agent can hand off through show.

Documents

License

MIT. See LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI coding agents to see, measure, and verify web pages through a real Chrome browser, including screenshots, responsive layout and accessibility audits, pixel diffing against baselines, secure logins, and deployed-fix verification.
      27
      1
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Zero-dependency MCP server that lets an AI agent drive the system's own Chrome or Edge over the DevTools Protocol — auto-detecting and sandboxing the browser, then taking full-viewport or pixel-perfect CSS-selector-clipped screenshots, filling React/Vue controlled form fields, clicking, and inspecting element bounds. It also reports on-page geometry and visibility so agents can verify visual layout and catch UI regressions.
      3
      Apache 2.0