Page Agent is a client-side JavaScript library that gives a web page its own AI agent. Instead of screenshots and multi-modal models, it reads and manipulates the DOM directly using text, and translates natural-language commands into clicks, form fills, and navigation inside the page. It's aimed at frontend and product engineers who want to add an AI copilot or voice-driven UI to an existing web app without rewriting the backend or shipping a browser extension.
browser-use for that kind of work).The fastest way to try it is a one-line script tag using the free demo LLM (for technical evaluation only, subject to the project's terms):
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/iife/page-agent.demo.js"
crossorigin="anonymous"
></script>
Add ?autoInit=false to the script URL to load it without auto-creating the demo agent, then instantiate manually with new window.PageAgent(...).
For production use, install via npm and supply your own model credentials:
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')
Check the project documentation for the full list of supported models, the Chrome extension setup, and MCP server configuration.