Drive a cloud browser with dench browser: run interactive open, click, type, and screenshot steps, or open durable Playwright sessions over CDP.
dench browser controls a cloud browser without opening dench.com or installing
Chrome locally. The browser provider stays server-side: the CLI only sends
bearer-authenticated JSON, and your per-workspace browser profile (cookies,
logins) is resolved automatically. You never see or pass provider credentials.
Both auth modes work: an approved dench signin session and a workspace
DENCH_API_KEY. Sandboxes authenticate with DENCH_API_KEY automatically.
The CLI remembers the latest browser thread per host/session, so follow-up
actions reuse it. Pass --thread <threadId> to target a specific one, or
dench browser reset to forget it.
Create a session, connect with Playwright over CDP, then stop it. The live view
and replay appear in the Dench chat panel the same way as interactive runs.
The optional --context-id flag overrides the resolved profile for manual
testing; normally you should omit it and let the workspace profile apply.See the full agent playbook at
references/BROWSER.md and the HTTP
equivalents under the API reference.