Browser Use is a Python library that enables AI to control your browser.Laminar has a native tracing integration with Browser Use agent and underlying Playwright browser. It allows you to trace both agent execution steps and browser session recordings.
Laminar excels at tracing browser agents by providing unified visibility into both browser session recordings and agent execution steps.
Simply initialize Laminar at the top of your project and both Browser Use agent’s steps and session recordings will be automatically traced and synced.
Copy
from langchain_anthropic import ChatAnthropicfrom browser_use import Agentimport asynciofrom lmnr import Laminar# this line instruments Browser Use and playwright browserLaminar.initialize(project_api_key="...")async def main(): agent = Agent( task="go to ycombinator.com, describe 5 companies from the latest batch of startups.", llm=ChatAnthropic(model="claude-3-7-sonnet-20250219") ) result = await agent.run() print(result)asyncio.run(main())
You can view traces in the Laminar UI by going to the traces tab in your project.
When you select a trace, you can see both the browser session recording and the agent execution steps.Timeline of the browser session is synced with the agent execution steps, timeline highlights indicate the agent’s current step synced with the browser session.