TopGit
GitHub Repo Review

Page Agent: An In-Page AI GUI Agent for Any Website

alibaba/page-agent
PTopGit review image for alibaba/page-agent
Review by Topgit.dev for alibaba/page-agent, with GitHub repository stats and README context.
Quick verdict

Reach for Page Agent if you want to add a natural-language agent to your own web app without shipping a browser extension or running a headless browser. Skip it if you need to automate third-party sites you don't control, or you want a vision-based agent โ€” Page Agent reads the DOM as text, not screenshots.

Stars
โ˜… 29.1k
Forks
โ‘‚ 2.6k
Contributors
๐Ÿ‘ฅ 32
Language
TypeScript
License
MIT
Topic
AI Tools
Updated
Sep 2026

AI Browser Control Usually Lives Outside the Page

Most 'AI controls the browser' tools live outside the page: a browser extension, a headless Playwright process, or a screenshot-reading multimodal model. That's heavy to ship to your own users, needs extra permissions, and often can't be embedded directly in the product you already run.

An Agent That Lives Inside Your Own Web App

Page Agent is an open-source (MIT) in-page AI GUI agent written in TypeScript, from Alibaba. It runs entirely as in-page JavaScript โ€” no browser extension, no Python, no headless browser. It manipulates the page through a text-based reading of the DOM (no screenshots or multimodal LLMs), and you bring your own LLM, including locally deployed models. An optional Chrome extension and beta MCP server extend it to multi-page tasks.

Reading the DOM as Text, Not Screenshots

  • โœ“In-page JavaScript only โ€” no browser extension, no Python, no headless browser to run
  • โœ“Text-based DOM manipulation instead of screenshots, so no multimodal LLM or special permissions
  • โœ“Bring-your-own-LLM, including locally deployed models, per the README
  • โœ“An optional Chrome extension for multi-page tasks
  • โœ“A beta MCP server for connecting to the wider agent ecosystem
  • โœ“Small footprint you add to an existing page rather than a separate app

An Alibaba Project With No Extension Required

Embedding an agent directly in a webpage โ€” one script, no extension, bring-your-own-model โ€” is a lighter answer to in-product AI than the extension-and-headless-browser stack most tools use. Page Agent comes from Alibaba, carries a Trendshift badge, and got a Hacker News discussion, which together put the 'GUI agent living in your webpage' pitch in front of a lot of developers.

How this repository's GitHub stars have grown over time. Source: star-history.com.View the star history โ†—

Letting Users Complete Forms in Plain Language

  • โ€ขAdding a natural-language assistant that operates your own web app's UI for users
  • โ€ขLetting users complete a multi-step form or flow by describing it in plain language
  • โ€ขEmbedding an agent in a product without shipping and maintaining a browser extension
  • โ€ขDriving an interface with a locally hosted LLM when data can't leave the browser

Adding page-agent From npm

Page Agent is published on npm as `page-agent`. The README's core pitch is that one in-page script gives a web page its own agent, so you add it to your site's JavaScript rather than installing a separate app. For multi-page use there's an optional Chrome extension and a beta MCP server; see the docs at alibaba.github.io/page-agent for setup.

Configuring Your Own LLM, Local or Hosted

You include Page Agent in your web page and configure it with your own LLM (mainstream or local). Users then type what they want in natural language and the agent reads the DOM as text and operates the interface. For tasks spanning multiple pages, the optional Chrome extension or the beta MCP server extend it beyond a single page.

One Script, No Extension, No Headless Browser

  • โœ“Ships as one in-page script โ€” no extension, headless browser, or extra runtime for users
  • โœ“Text-based DOM approach avoids screenshots, multimodal models, and special permissions
  • โœ“Works with your own LLM, including local models, so data can stay in the browser
  • โœ“MIT-licensed and small, easy to embed in an existing product

Only Works on Pages You Control

  • โ–ณIt lives inside your own page, so it's for apps you control โ€” not automating third-party sites
  • โ–ณText-based DOM reading can struggle with canvas, heavy custom widgets, or non-semantic markup
  • โ–ณYou supply and pay for the LLM; quality depends on the model you connect
  • โ–ณMulti-page automation needs the optional Chrome extension or the still-beta MCP server
View on GitHub โ†—Homepage โ†—

Skyvern, CopilotKit, browser-use, Playwright

Who Should Embed Page Agent

Front-end and product teams that want to embed a natural-language agent into their own web app with minimal footprint, using their own LLM. If you need to automate websites you don't own, or you specifically want a screenshot/vision-based agent, a tool like Skyvern fits better than Page Agent's in-page, text-DOM approach.

Page Agent Questions, Answered

What is Page Agent?

Page Agent is an open-source in-page AI GUI agent from Alibaba. One JavaScript script gives a web page its own natural-language agent that operates the interface for users, without an extension or headless browser.

Does Page Agent need a browser extension or Python?

No. The README says it runs as in-page JavaScript with no extension, Python, or headless browser required. An optional Chrome extension exists for multi-page tasks.

Which LLMs does Page Agent work with?

It's bring-your-own-LLM and works with most mainstream models, including locally deployed ones, per the README, since it reads the DOM as text rather than needing a multimodal model.

Can Page Agent automate other websites?

It's designed to live inside your own page, so it fits apps you control. For automating third-party sites, a browser-automation tool like Skyvern is a better fit.

Related repositories

Source & attribution

Based on the official alibaba/page-agent GitHub repository, including its README and project metadata.

GitHub data ยท last synced Jul 11, 2026Reviewed by Henry
โ† Back to TopGit

Curious whether page-agent is right for you?

Let ChatGPT, Claude, or Perplexity look into it โ€” click below and see what AI actually says about page-agent.

GitHub