BrowserTrace

Tools & Infrastructure 💻 Python ⚖️ MIT 🟡 Quiet lately
4 stars

BrowserTrace is a local replay debugger for Browser Use agent failures. It records each step as a local timeline with screenshots, URLs, actions, and model I/O, letting you inspect the exact browser state where things went wrong. It is for developers debugging browser automation agents built with Browser Use, Stagehand, Skyvern, Playwright + LLM, or custom computer-use agents.

BrowserTrace demo
🎞️ Demo from the project README

✨ Key features

  • Local-first trace store with no cloud or signup
  • Records screenshots, URLs, actions, and model I/O per step
  • Local web UI to inspect failed steps
  • Compare failed and successful runs to find first divergence
  • Public-safe export omits prompts, screenshots, and URLs
  • Supports Browser Use, Stagehand, Skyvern, Playwright + LLM

🎯 Use cases

  • Debug why a Browser Use agent failed on a task
  • Compare a failed run with a known-good run to locate first divergence
  • Attach a public-safe trace export to a bug report
  • Inspect step-by-step browser state in a local UI
  • Troubleshoot agent failures in CI with JSON CLI output

📦 Installation

🧰 Requirements: Python 3.11+; no API keys or accounts required for local use.

SDK only
pip install browsertrace
SDK + local web UI
pip install "browsertrace[ui]"
browsertrace doctor
browsertrace demo
browsertrace

Or run via uvx without persistent install:

uvx --from "browsertrace[ui]" browsertrace doctor
uvx --from "browsertrace[ui]" browsertrace demo
uvx --from "browsertrace[ui]" browsertrace list
uvx --from "browsertrace[ui]" browsertrace

🚀 Usage

Run the demo to create a trace
browsertrace demo
List runs to get the run ID
browsertrace list
Show a run's timeline
browsertrace show <run_id>
Compare failed and success runs
browsertrace compare <failed_run_id> <success_run_id>
Export a public-safe HTML report
browsertrace export <run_id> --public -o public.html

Open the local UI at http://127.0.0.1:3000 after starting with browsertrace.

⚠️ Good to know

BrowserTrace is primarily designed for Browser Use; other integrations are secondary and may have limited coverage.

❓ FAQ

What Python version is required?

Python 3.11 or higher is required.

Do I need an API key or cloud account?

No, BrowserTrace is local-first and works without API keys or cloud services.

How do I inspect a failed run?

Use browsertrace show <run_id> to view the step timeline in the terminal, or start the UI with browsertrace and open http://127.0.0.1:3000.

How do I create a public-safe export for a bug report?

Use browsertrace export <run_id> --public -o public.html to generate an HTML report that omits prompts, model I/O, screenshots, and URLs.

📊 Repository

Stars★ 4
Forks🍴 25
Open issues🐛 18
Last commit🕒 May 14, 2026
Created📅 Apr 2026
Language💻 Python
License⚖️ MIT

🤖 Overview, features, install steps and FAQ were generated from the project's README on Sep 4, 2026. Always check the original source before running commands.