PageAgent: Browser AI Agent That Runs Inside Web Pages with Ollama Support

✍️ OpenClawRadar📅 Published: February 28, 2026🔗 Source
PageAgent: Browser AI Agent That Runs Inside Web Pages with Ollama Support
Ad

What PageAgent Does

PageAgent is a browser AI agent framework that runs as a JavaScript library inside web pages themselves, unlike most frameworks like Playwright or Selenium that control the browser from outside.

Key Technical Details

The agent reads live DOM as text, eliminating the need for screenshots or vision models, which makes it faster and more token-efficient.

It works with any OpenAI-compatible endpoint, including Ollama. When paired with a local model, everything stays on your machine with no backend or cloud required—LLM calls go directly from the browser to localhost.

Code Example

const agent = new PageAgent({ 
  model: 'qwen3.5:27b', 
  baseURL: 'http://localhost:11434/v1', 
})
await agent.execute('Fill the expense report for last Friday')

Additional Features

  • Human-in-the-loop panel that lets you see the agent thinking and stop/correct it anytime
  • Optional browser extension for multi-tab tasks
  • MIT licensed

The project is available on GitHub at alibaba/page-agent.

📖 Read the full source: r/LocalLLaMA

Ad

👀 See Also