Overview
Most browser agents sit outside the page: a Chrome extension, a Python driver, a headless browser, a stream of screenshots fed to a multimodal model. Page Agent inverts that. It is a JavaScript library that lives inside the web page itself — you add one script tag or one npm import, and the page gains an agent that can operate its own interface in natural language.
Because it works by text-based DOM manipulation rather than screenshots, it needs no multimodal model and no special browser permissions, and it works with most mainstream LLMs including locally deployed ones. You bring your own model and endpoint: the constructor takes a model name, a base URL and an API key, so a page can be driven by Qwen, a hosted OpenAI-compatible provider, or something running on localhost.
For work that leaves a single page, the project ships an optional Chrome extension that extends an agent across browser tabs, and a beta MCP server so an external agent client can control the browser from outside. Alibaba's own framing of the use cases is product-shaped: ship an AI copilot inside a SaaS product without rewriting the backend, collapse a twenty-click ERP or CRM form into one sentence, or make an existing web app reachable by natural language for accessibility.
It is MIT-licensed TypeScript, published to npm as page-agent, with a live demo, full documentation site and a Chrome Web Store listing for the extension. The demo CDN build is wired to a free testing LLM API and is explicitly for technical evaluation only — real deployments supply their own model credentials.
What it does
- Pure in-page JavaScript — no browser extension, Python runtime or headless browser required for the base case
- Text-based DOM manipulation instead of screenshots, so no multimodal model and no special permissions are needed
- Bring your own LLM: any mainstream model, hosted or local, configured with a base URL and API key
- Optional Chrome extension for tasks that span multiple pages or tabs
- Beta MCP server so an external agent client can drive the browser
- Small bundle, published to npm as page-agent, with a jsDelivr build and a China CDN mirror
Getting started
There are two routes: a single script tag against the demo build to try it, or an npm install for anything real. Both are taken from the project README.
Try it with one script tag
This build uses the project's free testing LLM API and is for technical evaluation only. Add ?autoInit=false to load the script without creating the demo agent automatically.
<script
src="https://cdn.jsdelivr.net/npm/page-agent@1.12.4/dist/iife/page-agent.demo.js"
crossorigin="anonymous"
></script>Install it properly
npm install page-agentPoint it at your own model
The constructor takes any OpenAI-compatible endpoint, including a locally deployed model.
import { PageAgent } from 'page-agent'
const agent = new PageAgent({
model: 'qwen3.5-plus',
baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1',
apiKey: 'YOUR_API_KEY',
language: 'en-US',
})Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Adding an AI copilot to a SaaS product in a few lines, without rewriting the backend
- Turning long form-filling workflows in ERP, CRM or admin systems into a single sentence
- Making an existing web app operable by natural language for accessibility
- Letting an external agent client drive your browser through the beta MCP server
How Page Agent compares
Page Agent alongside other open-source computer & browser use tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Browser Use | ★ 115k | A Python library that lets agents control a real browser to read pages and complete tasks online from natural-language instructions. |
| Open Interpreter | ★ 68.4k | A lightweight coding agent that runs code on your own computer to carry out tasks from natural-language requests. |
| Chrome DevTools MCP | ★ 52.2k | The Chrome team's MCP server that lets a coding agent control and inspect a live Chrome browser — performance traces, network requests, console messages and Puppeteer-backed automation. |
| UI-TARS Desktop | ★ 39k | ByteDance's multimodal agent stack and desktop app that controls a computer's graphical interface using vision-language models. |
| AIHawk | ★ 31.6k | Browser agent on a stealth Firefox that takes plain-language tasks and clicks, types and reads real pages - usable as an MCP server from Claude Code, Codex or Gemini CLI, or via its own web UI. |
| CloakBrowser | ★ 31.5k | Stealth Chromium build with source-level fingerprint patches that drops into Playwright or Puppeteer code, so agents and scrapers browse without tripping bot detection. |
| OpenCLI | ★ 29.4k | Turns websites into deterministic CLI commands and lets agents drive your already-logged-in Chrome through a browser bridge extension, with adapters for sites and local binaries. |
| Page Agent | ★ 29.1k | One script tag gives a web page its own GUI agent — no extension, no headless browser, no screenshots |