PagePane
A local, self-hosted browser workspace for AI agents.
Control isolated Playwright sessions through a REST API and inspect them in a live dashboard.
Documentation ·
Quick start ·
API ·
Contributing
---
## See PagePane in use

*The dashboard is connected to a real, isolated Playwright session. Its browser is displaying a local demo page used to make this screenshot repeatable.*

*Screen history is an optional, local integration. This screenshot shows its setup state; it contains no screen observations or OCR text.*
## What PagePane does
PagePane runs Playwright in one self-hosted Node.js process and gives agents a browser they can inspect and control. The REST API is the integration surface for agents and scripts. The dashboard lets a person watch a session, try actions, inspect results, and review optional screen-history context.
- Create isolated Chromium, Firefox, or WebKit browser contexts.
- Navigate, click, type, scroll, and take screenshots through JSON requests.
- Inspect a screenshot, simplified DOM, accessibility tree, page metadata, and interactive elements.
- Persist cookies and local storage in local SQLite storage, then explicitly restore a closed session.
- Review action history in the dashboard and through the API.
- Optionally retrieve local ScreenContextAgent observations for a time range, review them, and approve selected excerpts for one browser session.
PagePane does not call an AI model. It provides browser controls and structured page data for an agent to use.
## How the system fits together
```mermaid
flowchart LR
Agent[Agent or script] -->|REST requests| API[PagePane API]
Person[User] --> Dashboard[PagePane dashboard]
API --> Manager[Session manager]
Dashboard --> Manager
Manager <--> Browser[Playwright browser contexts]
Manager <--> SQLite[(SQLite session records and saved state)]
Dashboard -->|User starts a time-bounded lookup| MCP[Local ScreenContextAgent MCP]
MCP -->|Candidate observations with provenance| Review[Dashboard review]
Review -->|User selects excerpts to approve| Memory[Session-scoped memory, 30 min]
Agent -->|GET approved context| API
API --> Memory
```
The screen-history path is optional and user-driven. PagePane sends only the selected timestamps to ScreenContextAgent. It shows source app, window title, and observation time; nothing is shared with the agent until the user explicitly selects and approves excerpts. OCR remains untrusted evidence and is never treated as an instruction.
## Quick start
### Requirements
- Node.js 20.9 or newer.
- npm, or Bun 1.3 or newer.
- Chromium is installed by the package post-install step. Install Firefox or WebKit separately if you need those engines.
### Install and run
```sh
git clone https://github.com/smouj/agent-browser.git
cd agent-browser
npm ci
cp .env.example .env
npm run db:push
npm run dev
```
Open