alibaba/page-agent

JavaScript in-page GUI agent. Control web interfaces with natural language.

What it solves

Page Agent provides a way to embed an AI agent directly into a web page using a single script. It eliminates the need for complex setups like headless browsers, Python backends, or mandatory browser extensions for simple in-page automation, allowing developers to quickly add AI-driven interaction capabilities to their websites.

How it works

Unlike many web agents that rely on screenshots and multimodal LLMs, Page Agent uses text-based DOM manipulation. It runs as in-page JavaScript, interacting with the page's structure to execute commands. It is compatible with most mainstream LLMs, including locally deployed models, and can be extended via an optional Chrome extension for tasks that span multiple pages or an MCP server for external control.

Who it’s for

  • SaaS Developers: Those wanting to ship an AI copilot within their product without rewriting their backend.
  • Enterprise Users: People using ERP, CRM, or admin systems who want to automate repetitive, multi-click workflows via natural language.
  • Accessibility Specialists: Developers looking to make web apps accessible through voice commands and natural language.
  • Web Automation Engineers: Those needing a client-side agent that can be controlled externally via MCP.

Highlights

  • Easy Integration: Can be added to a page via a single script tag or NPM package.
  • Text-Based Control: Operates on the DOM rather than images, removing the need for multimodal models.
  • B.Y.O. LLM: Supports various mainstream and local LLMs.
  • Client-Side Execution: Everything happens within the web page, avoiding the need for server-side automation tools.

Related

  • Project
  • Project
  • Project
  • Project
  • Project