
Write HTML. Render video. Built for agents.
Page Agent adds an agent to a webpage so it can read and act on the page without screenshots or a headless browser. It works through in-page JavaScript, with optional Chrome extension support for multi-page tasks and an MCP server for outside control.

Builders who want to add natural-language control to web interfaces, admin tools, or browser-based workflows.
You can turn click-heavy web flows into agent-driven actions inside the page.
Runs as JavaScript inside the page, so you do not need a separate browser automation stack.
Uses the page DOM instead of screenshots for agent actions.
Works with mainstream hosted and local LLMs through configurable model settings.
Adds multi-page task handling across browser tabs.
Lets external agent clients control the browser through Page Agent.
npm install 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
browser extension / python / headless browser.Fastest way to try PageAgent with our free Demo LLM:
<script
src="https://cdn.jsdelivr.net/npm/page-agent@1.12.4/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 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.
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.
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!
Sign in to join the discussion.
No comments yet. Be the first to say what this is good for.

Write HTML. Render video. Built for agents.
Ultra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat apps
SkillOpt is a text-space optimizer that trains reusable natural-language skills for frozen LLM agents through trajectory-driven edits, validation-gated updates, and deployable best_skill.md artifacts.

Omnigent is an open-source AI agent framework and meta-harness: orchestrate Claude Code, Codex, Cursor, Pi, and custom agents β swap harnesses without rewriting, enforce policies and sandboxing, and collaborate in real time from any device.
A theoretical reconstruction of the Claude Mythos architecture, built from first principles using the available research literature.
π·οΈ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!