> ## Documentation Index
> Fetch the complete documentation index at: https://tracevell.com/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.

Tracevell 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]
>
> Tracevell excels at tracing browser agents by providing unified visibility into both browser session recordings and agent execution steps.

## Usage

Simply initialize Tracevell 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 Tracevell
# 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 Tracevell 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 />

## Related integrations

> [card] [Stagehand](https://tracevell.com/docs/integrations/stagehand.md)
>
> Trace Stagehand runs with synced session recordings.

> [card] [Skyvern](https://tracevell.com/docs/integrations/skyvern.md)
>
> Trace Skyvern workflows with synced session recordings.

> [card] [Playwright](https://tracevell.com/docs/integrations/playwright.md)
>
> Record Playwright browser sessions alongside your traces.

> [card] [Kernel](https://tracevell.com/docs/integrations/kernel.md)
>
> Trace computer-using agents running on Kernel browsers.

> [card] [OpenHands SDK](https://tracevell.com/docs/integrations/openhands-sdk.md)
>
> Trace OpenHands software agents end to end.

> [card] [All integrations](https://tracevell.com/docs/integrations.md)
>
> Browse every provider, framework, coding agent, and browser integration Tracevell supports.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.