Skip to main content
This guide is an end-to-end setup for running a browser-use agent with the Laminar Debugger so you can rerun from checkpoints.

1) Install prerequisites

Install uv if you do not already have it:
Create a virtual environment and install dependencies:
Install the Browser Use Chromium bundle:
If your Browser Use LLM provider needs extra packages or env vars, follow the provider setup in Browser Use docs.

2) Set environment variables

Create a .env file in your project root:
If you are using ChatBrowserUse (recommended), add:
If you prefer Claude, add:

3) Create the entrypoint

Notes:
  • The rollout_entrypoint=True flag marks this function for debugger sessions.
  • Keep the CLI running while you iterate; the debugger will rerun using the latest code on disk.

4) Start a debugger session

If the file exposes multiple debugger entrypoints, pass --function main.
[Screenshot: terminal output with debugger session link]

5) Open the debugger in Laminar

Open Debugger in your project, select the session, provide input arguments as JSON, and click Run. Debugger session view

6) Make a change and rerun (Debugger workflow)

Use the Debugger to iterate without restarting your local process.
  1. Open the trace in Transcript or Tree view.
  2. Click the checkpoint icon on a span and choose Run from here.
  3. Expand System Prompts and toggle Override System Prompt on for the Browser Automation Agent.
System prompt override toggle
  1. Edit the prompt in place, then click Run again to rerun with the updated instructions.
Notes:
  • Keep the CLI running while you iterate; the debugger reruns using the latest code on disk.
  • If you changed dependencies, restart the CLI.