> ## Documentation Index
> Fetch the complete documentation index at: https://laminar.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Browser Use observability

> Trace Browser Use agents and watch the browser session recording synced to the agent's steps, LLM calls, and screenshots.

## Overview

[Browser Use](https://browser-use.com/) 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.

<Note>
  Laminar excels at tracing browser agents by providing unified visibility into both browser session recordings and agent execution steps.
</Note>

## Usage

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.

```python {5-8} theme={null}
from langchain_anthropic import ChatAnthropic
from browser_use import Agent
import asyncio

from lmnr import Laminar
# this line instruments Browser Use and playwright browser
Laminar.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())
```

## View a Browser Use trace

You can view Browser Use 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.

<video src="https://mintcdn.com/laminarai/j_dZjJSfNsS1YZ8U/images/browser.mp4?fit=max&auto=format&n=j_dZjJSfNsS1YZ8U&q=85&s=ad1862d8402de6e2b276d1788616e7ee" controls loop muted playsInline className="block w-full" data-path="images/browser.mp4" />

## Related integrations

<CardGroup cols={2}>
  <Card title="Stagehand" href="/docs/integrations/stagehand">
    Trace Stagehand runs with synced session recordings.
  </Card>

  <Card title="Skyvern" href="/docs/integrations/skyvern">
    Trace Skyvern workflows with synced session recordings.
  </Card>

  <Card title="Playwright" href="/docs/integrations/playwright">
    Record Playwright browser sessions alongside your traces.
  </Card>

  <Card title="Kernel" href="/docs/integrations/kernel">
    Trace computer-using agents running on Kernel browsers.
  </Card>

  <Card title="OpenHands SDK" href="/docs/integrations/openhands-sdk">
    Trace OpenHands software agents end to end.
  </Card>

  <Card title="All integrations" href="/docs/integrations">
    Browse every provider, framework, coding agent, and browser integration Laminar supports.
  </Card>
</CardGroup>
