Code librariesReviewed · alibaba

Page Agent

Page Agent is an open-source JavaScript/TypeScript library from Alibaba for web developers who want to embed an AI agent in their own web page. Its main catch is that you must supply your own LLM access, because the free demo model is for technical evaluation only. It reads the page as text instead of screenshots and takes plain-language instructions through agent.execute(...). The README says it works with most mainstream models, including locally deployed ones. An optional Chrome extension and a beta MCP server extend it beyond a single page.

Researched 13 Nov 2026

In short.

Page Agent is an open-source library from Alibaba for web developers who want to add an in-page AI agent that operates their own web UI from plain-language commands. Its main catch is that you supply your own LLM access, because the free demo model is for technical evaluation only. What that LLM access costs depends on the provider or local deployment you choose, and the captured evidence does not say. It runs as JavaScript inside the page and works from a text representation of the DOM instead of screenshots. You can install it from npm (package page-agent) or load it from a CDN script. The README names version 1.12.4 and an MIT licence. This report is based only on the README and LICENSE. Nothing was run, so behaviour, reliability, security and model quality are not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

The reviewed scope is the single README.md at [https://github.com/alibaba/page-agent/blob/main/README.md], read at revision 9eb6b6646500264d9034dd466a4270cb9fc1ef1e, together with the MIT LICENSE file at the same revision as its licence notice. Not covered: the source code, the documentation site, the Chrome extension, the MCP server, the terms and privacy file, the maintainer's note, issues, releases and any linked page. Nothing was installed, executed or tested. Statements about behaviour therefore come from the README's own descriptions or are marked as inferences, and quality, security, the cost of LLM use and compatibility are unknown.

The overview

What this is

Page Agent is a JavaScript/TypeScript library published by the alibaba organisation on GitHub (repository alibaba/page-agent) and distributed on npm as page-agent. The README calls it the GUI agent living in your webpage and says one script gives any web page its own AI agent. The README badges point to a CI workflow, an npm package, a TypeScript codebase, an MIT licence and a Chrome Web Store extension called Page Agent Ext.

The README says its DOM processing components and prompt are derived from the browser-use project (Copyright 2024 Gregor Zunic, MIT). It also states that Page Agent is designed for client-side web enhancement, not server-side automation. The reviewed file is the README at revision 9eb6b6646500264d9034dd466a4270cb9fc1ef1e. Its CDN example references version 1.12.4.

Overall assessment

Going by the README, Page Agent is a focused library with one job: it lets your own web page carry an LLM agent that clicks and fills in the page's elements from a natural-language instruction. It is appealing if you control the web app's front end and want an assistant without building a backend or a browser-automation stack.

The README gives no benchmarks, success rates, security model or limits on task complexity, so this evidence does not show how well it works on real pages. Treat it as a promising integration option to evaluate in a sandbox, not as a proven product. The best sign of its maturity in the README is the set of supporting pieces it links to: docs, a demo, a Chrome extension, a beta MCP server and contribution guidelines.

Who it is for

The README's use cases point to web developers and product teams. They are: adding an AI copilot to a SaaS product, smart form filling for ERP, CRM and admin systems, accessibility through natural-language or voice control, and a multi-page agent through the Chrome extension. A fifth use case is letting agent clients control your browser through the MCP server.

It suits people who are comfortable with JavaScript, npm or script tags, and with getting an API key from an LLM provider. It suits non-developers who want a ready-made assistant less well, because the main path is adding a library to a page you can edit. If you need server-side or headless automation of sites you do not own, note that the README says the project is for client-side web enhancement, not server-side automation.

What it can do

According to the README, it embeds an agent in a web page using only in-page JavaScript. It works on the page through a text-based DOM approach, with no screenshots, multi-modal LLMs or special permissions. You bring your own LLM, and the README says it works with most mainstream models, including locally deployed ones (it links a supported-models page). An optional Chrome extension handles tasks that span multiple pages or tabs, and an MCP Server, labelled Beta, lets outside clients control it.

The programmatic interface shown is a PageAgent class, constructed with model, baseURL, apiKey and language options, and an execute method that takes a natural-language task. This README does not describe other options, methods, events, UI components or customisation hooks, so they are not assessed here. For more programmatic usage, the README links to external documentation.

Using it

What you need

For the demo you need a web page where you can add a script tag, and a browser that can reach the jsDelivr CDN. The README also offers an npmmirror copy of the script for people who cannot access jsDelivr.

To use your own model you need a web page or app you can modify and access to an LLM endpoint. The README describes two ways to integrate it. In the first, you load the CDN script with ?autoInit=false so that it does not create the demo agent, then create your own agent with new window.PageAgent(...) and your own LLMs. In the second, you install the package with npm install page-agent and import PageAgent as an ES module. The README does not say whether either route needs a particular build setup, so build requirements are unknown. The npm example sets a model name (qwen3.5-plus), a DashScope compatible-mode base URL [https://dashscope.aliyuncs.com/compatible-mode/v1] and an API key.

A badge's hover text calls Zod a peer dependency, so a project that installs the npm package probably needs Zod available. The README does not state minimum browser versions, Node version, framework compatibility or the licence terms of LLM providers. These are unknown.

How it works

The README says the agent lives inside the web page and that everything happens there, with no browser extension, Python or headless browser. It works by reading and acting on the page's DOM as text instead of screenshots, so the model does not have to be multi-modal. The README does not spell this out, but the design implies that a text description of the page is sent to whichever LLM you configure, and that the LLM's decisions are turned into actions on page elements.

The README states that the DOM processing components and the prompt come from browser-use. This file does not describe the agent loop, how elements are indexed, how actions are checked, or exactly what is sent to the model, and none of that was inspected. The optional Chrome extension is the route for multi-page tasks, and the MCP server (Beta) lets other agent clients control it from outside.

Setup

The README gives two routes. The fastest is a single script tag whose source address is [https://cdn.jsdelivr.net/npm/page-agent@1.12.4/dist/iife/page-agent.demo.js], with the crossorigin attribute set to anonymous. This uses the project's free demo LLM, which the README labels for technical evaluation only, and using it means agreeing to that API's terms. For people who cannot reach jsDelivr, a China mirror of the same script is listed at [https://registry.npmmirror.com/page-agent/1.12.4/files/dist/iife/page-agent.demo.js]. The README adds that putting ?autoInit=false on the script address loads the script without creating the demo agent. You can then create an agent with new window.PageAgent(...) and your own LLMs.

The second route: run npm install page-agent, import PageAgent from the page-agent package, create it with the model, baseURL, apiKey and language options, and await agent.execute with a plain-language instruction. Setting up the Chrome extension or the MCP server is covered on linked pages that were not captured, so those steps are unknown here.

Worked example from the README

In the README's own example, you import PageAgent from the page-agent package and create an agent with four options: model set to qwen3.5-plus, baseURL set to the address [https://dashscope.aliyuncs.com/compatible-mode/v1], apiKey set to the placeholder YOUR_API_KEY, and language set to en-US. You then await agent.execute with the instruction Click the login button. Put simply, you point the library at an LLM service, give it a key and a language, and then give it an everyday-language instruction to carry out on the current page.

This is only the README's illustration. It was not run for this report, and what it would do on any specific page is unknown. The example puts the API key in code that runs in the browser, and the quick start does not explain how to keep a real key private (for example through a proxy). Check the full documentation before using a key you care about.

Assessment & evidence

Limitations and cautions

Limits of the evidence: only the README and LICENSE were read. The source code, docs site, Chrome extension, MCP server, terms and privacy file, and the maintainer's note on principles and current state (linked as issue 349) were not captured. Nothing was run, so reliability, accuracy on complex pages, performance and security are not assessed, and the README publishes no benchmarks.

Some practical cautions follow from the described design. The agent acts on a live page, so an LLM mistake could cause real clicks and form submissions, and the README does not describe confirmation steps, permission limits or guardrails. Because the agent runs inside the page, anyone who can inspect the page can see an API key passed in the page script, and the README does not address this. Using the free demo model means page content goes to a separate testing API under terms that were not read, so it should not be used on sensitive pages. The MCP server is labelled Beta. The README does not say how it handles iframes, shadow DOM, canvas-heavy pages or highly dynamic pages. Because the approach is text-based, content that appears only in images is probably out of reach, though the README does not say so.

Why this assessment

The assessment rests on what the README states directly: its purpose, its in-page design with no extension and no screenshots, the bring-your-own-LLM approach, concrete install steps with a pinned CDN version, and a standard MIT licence text. These are specific enough to describe the resource with confidence.

Quality, real-world safety and fit for a given site are left unknown because no code, tests, issues or documentation pages were read. Points that come only from reasoning about the design, such as page text reaching the LLM, key exposure in client-side code and the risk of wrong actions, are marked as inferences, not documented behaviour. Marketing phrases in the README, such as perfect for ERP, CRM and admin systems and zero barrier, are the authors' claims and were not checked.

Alternatives and related options

The README names one related project, browser-use, which Page Agent's DOM processing components and prompt are derived from. The README says Page Agent itself is designed for client-side web enhancement, not server-side automation. It does not describe how browser-use works or compare the two, so how they differ in practice is unknown from this evidence. Page Agent's feature list implicitly contrasts it with approaches that need a browser extension, Python, a headless browser, screenshots or a multi-modal model, but it names no such tools.

If you need to automate sites you do not control, run unattended server-side jobs, or rely on visual understanding of pages, Page Agent's stated client-side focus suggests it may not fit, and you could look at other browser-automation agents. The README compares no such tools, so which suits you better, and how they compare on cost, reliability or accuracy, is unknown. If you only need a fixed scripted workflow in your own app, ordinary front-end code or test automation may be simpler and more predictable than an LLM-driven agent.

Evidence used

Two captured files were read in full: the README at the pinned revision (6,585 bytes) and the LICENSE at the same revision (1,119 bytes). The README is the source for the purpose, features, use cases, quick start, code example, demo-API warning, contribution policy and browser-use acknowledgement. The LICENSE is the source for the MIT terms and the copyright holders.

Links in the README were not followed or captured. These include the docs, the models page, the Chrome extension and MCP server pages, the terms and privacy file, the maintainer's note, the Show and Tell discussions, and the npm and CI badges. As a result, badge values such as download counts, CI status and the extension's rating are unknown. The Chrome Web Store link points to an extension named Page Agent Ext, but its listing was not captured.

Access & freshness

Costs

The MIT licence lets you use the library itself free of charge. The README says the demo CDN uses a free testing LLM API, labels it for technical evaluation only, and says that using it means agreeing to separate terms (docs/terms-and-privacy.md). Those terms were not captured, so usage limits, data handling and how long the API will stay free are unknown.

For production use you bring your own LLM. Its cost depends on the provider and model you choose, and the README does not state it. The README says locally deployed models are supported, in which case the cost would be your own hardware and running costs, but it gives no figures. It also does not say whether the Chrome extension or running the MCP server costs anything, so treat that as unknown. No hosting or subscription fee for Page Agent itself is mentioned.

Licence and rights

The LICENSE file is the standard MIT licence with two copyright lines: 2026 SimonLuvRamen and 2026 Alibaba Group Holding Limited. It allows you to use, copy, modify, merge, publish, distribute, sublicense and sell copies, provided the copyright notice and permission notice are included in all copies or substantial portions. The software is provided as is, without warranty. The README confirms that the project uses the MIT licence.

The README separately reproduces a notice that the DOM processing components and prompt are derived from browser-use (Copyright 2024 Gregor Zunic, MIT). The captured LICENSE does not list that copyright itself, so anyone redistributing the code should also keep the README's attribution notice. The free demo LLM API is covered by separate terms that were not captured. The licences and terms of any LLM provider or model you connect are separate from this licence and are not covered here. The README also says it will not accept contributions generated entirely by bots or AI without substantial human involvement.

Freshness

The evidence was captured on 13 November 2026 from revision 9eb6b6646500264d9034dd466a4270cb9fc1ef1e. The README's CDN example references package version 1.12.4. The LICENSE has two copyright notices dated 2026, one for SimonLuvRamen and one for Alibaba Group Holding Limited. The browser-use attribution quoted in the README is dated 2024. The captured evidence does not give the release date of version 1.12.4, the latest version on npm, the date of the last commit or how often releases come out. These are unknown.

The README pins the CDN example to a specific version and says the MCP server is in beta, so details such as options, supported models and extension features may change. Check the linked documentation for the current state before relying on any of this.

Suggested next steps

If you are a web developer, read the free testing API's terms before you load the demo script at all. The README links them at [https://github.com/alibaba/page-agent/blob/main/docs/terms-and-privacy.md], says that using the demo means agreeing to them, and limits the demo to technical evaluation. The terms were not captured, so what they say about usage, data handling and duration is unknown. Only if you accept them, use the demo for technical evaluation on a non-sensitive test page or a staging copy of your app to see how the agent handles your UI. Then switch to your own model endpoint, through either the npm package or the CDN script with ?autoInit=false. Read the linked docs on supported models, the Chrome extension and the MCP server before depending on them.

Before any production use, decide how you will protect the API key, since a client-side key is visible to page visitors. Limit which actions and pages the agent can reach, and test failure cases such as wrong clicks and forms with side effects. If you redistribute or modify the code, keep the MIT notice and the browser-use attribution. For more confidence, inspect the source code, the issues and the maintainer's note on current state, none of which were reviewed here.

Evidence for this report

LICENSEnotice · checked 2026-11-13
README.mdselected · checked 2026-11-13