PAGENT is a Page Agent that acts on real web pages. YAML-based UI testing, Chrome extension bridge, and MCP support for AI assistants.
# Install globally
npm install -g @devload/pagent
# Start browser bridge
pagent bridge start
# Run YAML scenarios
pagent run scenarios/*.yaml
Everything you need for browser automation and testing
Write test scenarios in simple, readable YAML. No coding required for basic automation tasks.
Built on Playwright for fast, reliable cross-browser testing with automatic waiting and retries.
Control your real Chrome browser via WebSocket bridge. Perfect for testing with real extensions.
Connect with Claude Desktop or Claude Code. Let AI assistants control your browser directly.
Collect screenshots, HTML, console logs, network requests, HAR files, and Playwright traces.
Run multiple scenarios concurrently with configurable workers. CI-friendly with JSON output.
How PAGENT connects everything together
┌─────────────────────────────────────────────────────────┐
│ Chrome Browser │
│ ┌─────────────────────────────────────────────────────┐│
│ │ PAGENT Extension ││
│ │ (WebSocket Client) ││
│ └──────────────────────┬──────────────────────────────┘│
└─────────────────────────┼───────────────────────────────┘
│ ws://localhost:9222
▼
┌─────────────────────────────────────────────────────────┐
│ PAGENT Bridge Server │
│ (WebSocket Server) │
└─────────────────────────┬───────────────────────────────┘
│
┌───────────────┼───────────────┐
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ CLI │ │ MCP │ │ Your │
│ Commands │ │ Server │ │ Code │
└──────────┘ └──────────┘ └──────────┘
PAGENT works as an MCP server, allowing AI assistants like Claude to control your browser directly. Ask Claude to navigate, click, fill forms, and capture screenshots.
# Claude Code (CLI) - One command setup claude mcp add pagent -s user -- npx -y @devload/pagent # Claude Desktop - Add to config { "mcpServers": { "pagent": { "command": "npx", "args": ["-y", "@devload/pagent"], "env": { "BROWSER_BRIDGE_URL": "ws://localhost:9222" } } } }