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.
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 | bashThe 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 clientshwatu setup --dry-run previews changes and --undo reverts them. Manual
MCP configuration is one entry:
{ "mcpServers": { "hwatu": { "command": "hwatu", "args": ["mcp"] } } }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 personA sequence runs in one call. batch waits on page state instead of fixed
delays and returns a result per step:
hwatu batch --stdin < steps.jsonThe full command set is in docs/agents.md.
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.
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--confirmafter the user confirms in the current session. - CAPTCHAs and anti-bot challenges are handled by the agent with
challenge,shot,snapshot,click --trusted, andtype. If the challenge cannot be cleared,challengereturns a structured block and the agent can hand off throughshow.
MIT. See LICENSE.