Skip to content
docs/guides
Get started

The managed browser

Coding agents often need a browser: to open the app they just changed, click through a sign-in, read the console, fill a form or take a screenshot to check a layout. Puppet Master runs one for each session, and the agent drives it with tools the daemon serves.

The browser is optional, and nothing is installed until you ask for it. Install it once on each host that runs sessions, as the same user that runs the daemon or the worker:

Terminal window
pm browser install

It needs Node.js 22 or newer and npm. The command installs a pinned Playwright runtime and Chromium under ~/.local/share/puppet-master/, or under $XDG_DATA_HOME when that is set.

Until a host has it, an agent that tries to browse is told that browsing is optional and how to install it. It asks you before it runs the install.

Ask the agent to show you the browser:

show me the browser while you test the sign-up flow

It opens a read-only pane beside its terminal that follows the tab the agent is on, so you see the same page it is testing. The header shows the address and the live state. Hiding the pane stops the stream, and the agent keeps browsing. A pane you show again reconnects by itself.

Pages render at 1280 by 800 pixels unless the agent resizes the browser to check another layout.

  • One browser per session. Every tool call reuses it.
  • Separate login contexts when needed. The agent can create up to three more contexts, each with its own cookies and storage, for a second user or a clean session. It has to say why.
  • Nothing for long. The browser closes after fifteen minutes without browser activity, and when the session ends. Logins do not survive a restart.

→ Panes beside the agent → The MCP tools the daemon serves