CDN 一行接入用的是官方免费测试 LLM,README 标注仅供技术评估,正式使用需换成自己的模型和 API Key;多页面任务需额外安装 Chrome 扩展,MCP Server 仍为 Beta;国内访问 jsDelivr 可能失败,需改用 npmmirror 镜像地址
page-agent
alibabaMIT活跃维护用自然语言直接操控网页界面的 JavaScript 页面内 GUI 智能体,把浏览器自动化从写选择器变成说人话,适合做网页操作助手和自动化流程。
JavaScript in-page GUI agent. Control web interfaces with natural language.
npm install page-agent
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' })
await agent.execute('Click the login button')README 未说明显存或 GPU 要求;模型可本地部署,但未给出具体硬件规格
在网页里跑的 JS GUI Agent,用自然语言直接操控页面交互
用自然语言直接操控网页界面的 JavaScript 页面内 GUI 智能体,把浏览器自动化从写选择器变成说人话,适合做网页操作助手和自动化流程。
核心能力
- 纯页面内 JavaScript 注入,无需浏览器扩展或 Python
- 基于文本 DOM 操作,不依赖截图和多模态模型
- 支持自带主流及本地部署 LLM,可配 baseURL 和 apiKey
- 可选 Chrome 扩展支持跨标签页多页面任务
- 提供 Beta 版 MCP Server 供外部客户端控制浏览器
容易踩的坑
- v1.12.4🌟v1.12.4最新正式版2026-09-06 · 2026-09-06 07:46 UTC
What's Changed
- feat: update models by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/713
- chore: fix size badge by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/714
Full Changelog: https://github.com/alibaba/page-agent/compare/v1.12.3...v1.12.4
- v1.12.3🌟v1.12.32026-09-05 · 2026-09-05 17:47 UTC
查看更新说明
What's Changed
- chore: add a skill to auto maintain the model list by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/624
- feat(llms): add Kimi K3 support by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/625
- chore(deps): bump actions/setup-node from 6 to 7 in the github-actions group by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/627
- chore(deps): bump ws from 8.21.0 to 8.21.1 in the production-dependencies group by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/628
- chore(deps-dev): bump the development-dependencies group with 16 updates by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/629
- chore(deps): bump body-parser from 2.2.2 to 2.3.0 by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/630
- chore(deps): bump fast-uri from 3.1.2 to 3.1.4 by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/632
- chore(deps): bump @modelcontextprotocol/sdk from 1.29.0 to 1.30.0 in the production-dependencies group by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/635
- chore(deps): bump chalk from 5.6.2 to 6.0.0 by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/637
- chore(deps): bump hono from 4.12.27 to 4.13.1 by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/663
- chore(deps): bump fast-uri from 3.1.4 to 3.1.5 by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/659
- chore(deps): bump qs from 6.15.2 to 6.16.0 by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/693
- chore(deps): bump fast-uri from 3.1.5 to 3.1.7 by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/692
- chore(deps): bump the production-dependencies group across 1 directory with 2 updates by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/690
- chore(deps): bump @hono/node-server from 1.19.14 to 2.1.0 by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/672
- chore(deps): bump ip-address from 10.2.0 to 10.5.0 by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/668
- chore(deps-dev): bump js-yaml from 4.3.0 to 4.3.1 by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/666
- chore(deps): bump postcss from 8.5.20 to 8.5.26 by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/667
- fix(extension): restore Zod 3/4 peer range by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/705
- chore(ext): upgrade wxt by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/709
- chore(deps): bump brace-expansion by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/695
- fix(llms): make debug logs removable by consumer bundles by @FayezBast in https://github.com/alibaba/page-agent/pull/623
- chore: add
agentic-testingby @gaomeng1900 in https://github.com/alibaba/page-agent/pull/710 - fix(page-controller): preserve input focus by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/712
New Contributors
- @FayezBast made their first contribution in https://github.com/alibaba/page-agent/pull/623
Full Changelog: https://github.com/alibaba/page-agent/compare/v1.12.2...v1.12.3
- v1.12.2🌟v1.12.22026-07-16 · 2026-07-16 07:41 UTC
查看更新说明
What's Changed
- chore(deps): bump root, website, and extension dependencies by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/612
- chore(deps-dev): bump the development-dependencies group with 4 updates by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/615
- docs: CDN quick start in README and website by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/617
- feat(extension): honor AbortSignal in tab tools and tab-load wait by @Mordris in https://github.com/alibaba/page-agent/pull/590
New Contributors
- @Mordris made their first contribution in https://github.com/alibaba/page-agent/pull/590
Full Changelog: https://github.com/alibaba/page-agent/compare/v1.12.1...v1.12.2
- v1.12.1🌟v1.12.12026-07-10 · 2026-07-10 09:13 UTC
查看更新说明
What's Changed
- chore(ci): remove workflow_dispatch from main workflows by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/605
- fix(ci): pin release workflow to npm 11 by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/609
- chore(llms): gate live model tests behind test:live by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/610
- feat(llms): update model list and patches by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/611
Full Changelog: https://github.com/alibaba/page-agent/compare/v1.12.0...v1.12.1
- v1.12.0🌟v1.12.02026-07-09 · 2026-07-09 07:54 UTC
查看更新说明
What's Changed
Stateless extension tab sync - TabsController pulls tab state on demand instead of long-lived ports, so the MV3 service worker stays stateless and survives idle kills without stalling the side panel.
Tab status in agent context - Tab summaries now include each tab's loading status for the LLM.
- docs: improve README copy and quick start by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/592
- fix(ci): format README and align markdown tooling with Prettier by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/593
- chore(deps-dev): bump the development-dependencies group with 8 updates by @dependabot[bot] in https://github.com/alibaba/page-agent/pull/595
- fix(extension): stateless SW, pull tab state instead of ports by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/596
- feat(extension): add tab status to context by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/599
- chore: add self-hosted runners by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/602
- docs: point CI badge at main-ci.yml by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/603
- chore(llms): limit live test concurrency by @gaomeng1900 in https://github.com/alibaba/page-agent/pull/604
Full Changelog: https://github.com/alibaba/page-agent/compare/v1.11.0...v1.12.0
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Page Agent
The GUI Agent Living in Your Webpage. One script gives any web page its own AI agent.
🌐 English | 中文
🚀 Demo | 📖 Docs | 📢 HN Discussion | 𝕏 Follow on X
✨ Features
- 🎯 Easy integration
- No need for
browser extension/python/headless browser. - Just in-page javascript. Everything happens in your web page.
- No need for
- 📖 Text-based DOM manipulation
- No screenshots. No multi-modal LLMs or special permissions needed.
- 🧠 Bring your own LLMs
- Works with most mainstream models, including locally deployed ones. See supported models.
- 🐙 Optional chrome extension for multi-page tasks.
- And an MCP Server (Beta) to control it from outside
💡 Use Cases
- SaaS AI Copilot — Ship an AI copilot in your product in lines of code. No backend rewrite.
- Smart Form Filling — Turn 20-click workflows into one sentence. Perfect for ERP, CRM, and admin systems.
- Accessibility — Make any web app accessible through natural language. Voice commands, screen readers, zero barrier.
- Multi-page Agent — Extend your own web agent's reach across browser tabs via the Chrome extension.
- MCP - Allow your agent clients to control your browser.
🚀 Quick Start
One-line integration
Fastest way to try PageAgent with our free Demo LLM:
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/iife/page-agent.demo.js"
crossorigin="anonymous"
></script>
<!-- China CDN mirror if you can't access jsDelivr -->
<!-- https://registry.npmmirror.com/page-agent/1.12.4/files/dist/iife/page-agent.demo.js -->
⚠️ For technical evaluation only. This demo CDN uses our free testing LLM API. By using it, you agree to its terms.
Add
?autoInit=falseto load the script without creating the demo agent automatically. You can then instantiate it withnew window.PageAgent(...)and your own LLMs.
NPM Installation
npm install page-agent
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',
})
await agent.execute('Click the login button')
For more programmatic usage, see 📖 Documentations.
🤝 Contributing
We welcome contributions from the community! See CONTRIBUTING.md for guidelines and docs/developer-guide.md for local development workflows.
Built something cool with PageAgent? Share it in Show and Tell. 🙌
Please read the maintainer's note on principles and current state.
Contributions generated entirely by bots or AI without substantial human involvement will not be accepted.
⚖️ License
👏 Acknowledgments
This project builds upon the excellent work of browser-use.
PageAgent is designed for client-side web enhancement, not server-side automation.
DOM processing components and prompt are derived from browser-use:
Browser Use <https://github.com/browser-use/browser-use>
Copyright (c) 2024 Gregor Zunic
Licensed under the MIT License
We gratefully acknowledge the browser-use project and its contributors for their
excellent work on web automation and DOM interaction patterns that helped make
this project possible.
⭐ Star this repo if you find PageAgent helpful!
