Note
本文档由 WeHub 基于上游 README 翻译整理,属于社区翻译,非官方中文文档。
English · 原始项目 · 上游 README
原作者、版权与许可证归属以原始项目及本仓库 LICENSE 文件为准。
驻留在网页中的 GUI Agent。只需一段脚本,即可为任意网页赋予专属 AI Agent。
🌐 English | 中文
🚀 Demo | 📖 Docs | 📢 HN Discussion | 𝕏 Follow on X
browser extension / python / headless browser。使用免费 Demo LLM 体验 PageAgent 的最快方式:
<script
src="https://cdn.jsdelivr.net/npm/page-agent@1.12.1/dist/iife/page-agent.demo.js"
crossorigin="anonymous"
></script>
⚠️ 仅供技术评估。 此演示 CDN 使用我们免费的测试 LLM API.。使用即表示你同意其条款. 添加
?autoInit=false可在加载脚本时不自动创建演示 Agent。随后可用new window.PageAgent(...)自行实例化。
| 镜像 | URL |
|---|---|
| 全球 | https://cdn.jsdelivr.net/npm/page-agent@1.12.1/dist/iife/page-agent.demo.js |
| 中国 | https://registry.npmmirror.com/page-agent/1.12.1/files/dist/iife/page-agent.demo.js |
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')
更多编程式用法请参阅📖 文档.
欢迎社区贡献!指南请参阅 CONTRIBUTING.md,本地开发流程请参阅 docs/developer-guide.md。
用 PageAgent 做出了酷东西?欢迎在 Show and Tell. 分享 🙌
请阅读维护者说明,了解原则与当前状态。
完全由机器人或 AI 生成、缺乏实质性人工参与的贡献不会被接受。
本项目建立在 browser-use. 的优秀工作之上。
PageAgent 面向客户端 Web 增强,而非服务端自动化。
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.
⭐ 如果觉得 PageAgent 有用,欢迎给本仓库点 Star!