Skip to content
CrawlfolioSourced research on web data for AI
Menu

Explainer

How do you debug a browser agent after it fails?

Browser agent failed? I read the docs of eleven tools to see who keeps replays, logs and traces, for how long, and what they hide.

A lightbox showing a strip of blank film frames, one frame outlined in vermilion, a navy loupe beside it
AI-generated image · Made for this page

After a browser agent fails inside a cloud browser, what you can see depends on what the vendor recorded, for how long, and whether anyone masked it. I read the docs of eleven tools on November 23, 2026 to see who documents a replay, logs and an agent trace. It is one piece of my agent browsers guide.

Nothing here comes from a recording or trace I made myself. Every capability below is “as documented on 2026-11-23”, and I don’t rank any recorder on how useful it is.

Short on time?

Short on time? Here's my pick for each case

Runs that touch logins or personal data
Cloudflare Browser Run's opt-in recorder, which masks inputs, or Browserbase with recordSession and logSession both set to false. With the second, you debug from your own logs
Medium confidence. Docs only. Cloudflare says input fields are masked, says nothing about other on-screen text, and does not capture canvas or cross-origin iframes.
Everything else: your first look at a failure
Keep replay on, and read the status, signals and network log before you watch the video. Steel documents the most failure signals on the pages I read
Medium confidence. I compared documentation, not how useful each record is.
Self-hosted Playwright agents
Playwright traces with retain-on-failure
High confidence in what the docs say. The viewer opens locally.

Prices verified . Sponsors cannot buy a verdict or a position.

What do you want to see after a failure? #

Three things: what the page looked like, why a request failed, and what the agent did and decided. Each comes from a different record, and no tool I read documents all three the same way.

  • Replay shows what the page looked like at each moment. It answers “what did the agent see?”
  • Logs and network show console errors and failed requests. They answer “why did this call fail?”
  • A trace of agent actions lists the clicks, inputs and navigations, and sometimes the model’s choices. It answers “what did the agent do, and in what order?”

Anchor’s guide uses the same three layers (structured logs, execution tracing, session replay) and is mostly generic. Anchor guide. Notte’s glossary lists six artifacts: screenshots, DOM snapshots, LLM actions, action results, prompts and responses, and recordings. Notte. Both are vendor pages, so I use neither for numbers.

Two things are yours to add. Browserbase lists screenshots only as a Playwright tracing option, and Stagehand v4’s docs say the instance has no history accessor, so keep the model’s input and output yourself. Browserbase, Stagehand v4.

Which tools document replays, logs and traces? #

No tool documents every column below. A cell that says “not on the page I read” means the docs I opened were silent, which is not the same as the feature being missing.

Tool Replay form Logs and network Agent-action trace Live view
Browserbase Video; MP4 download and HLS stream CDP session logs API; console and network tabs in the Session Inspector Not on the page I read (the Inspector has a Stagehand tab) Yes, debuggerUrl (live view docs)
Cloudflare Browser Run rrweb JSON events, not video Network through a HAR API Not on the page I read Not on the recording page
AWS AgentCore Event batches in your own S3 bucket, replayed in the console Console, CDP and network events; CloudWatch metrics Table of user actions in the console replay Yes, with take or release control
Steel Video, format not named sessions.logs: requests, responses, console Yes, Agent Traces Yes, debugUrl
Browser Use Cloud MP4 Not on the pages I read Run events: lifecycle, model calls, tool activity Yes, live_view_url
Anchor MP4 Not on the page I read Not on the page I read Docs index lists a live view page; I did not open it
Kernel MP4 Not on the page I read Not on the page I read Not on the page I read
Browserless WebM video, plus a DOM replay Not on the page I read Not on the page I read Not on the page I read
Playwright (self-run) Trace zip with DOM snapshots and a screencast Console and network tabs Actions tab Not applicable
Four vertical bands of grey, blush, rust and teal light running down a dark wall and bending along the floor
A recording is only as useful as its retention and masking rules. Photo: Martin Martz / Unsplash · Unsplash License

One conflict is worth knowing. Browserbase’s marketing page says every session is recorded automatically with no setup, while its docs show how to opt out and that retention differs on BYOS projects. I use the docs. Marketing page.

Video or events: does the replay form matter? #

Yes, because the form decides what can be masked, where the file lives and how you open it later. Browserbase, Browser Use, Kernel and Anchor document video: Browser Use, Kernel and Anchor name MP4, and Browserbase offers an MP4 download. Steel does not name a format, and Browserless documents WebM.

Cloudflare takes a different route. Its recording is rrweb events (DOM changes, mouse and keyboard events, navigation) stored as JSON, and you replay it with the self-hosted rrweb-player. It does not capture <canvas>, cross-origin iframes, video, audio or WebGL. Cloudflare. If your agent fails inside an embedded frame from another domain, I would expect that part to be missing from the replay.

AWS AgentCore stores DOM changes, clicks, scrolls, form interactions, console logs, CDP events and network events as batch_N.ndjson.gz files in your S3 bucket. The console replay page lists a Video Player among its tools, although the stored data are event batches. AgentCore recording. Setup needs a bucket, an IAM role and a custom browser created with recording enabled.

Browserless has two modes. Video uses CDP Browserless.startRecording and stopRecording, needs headless=false, stealth and record=true, and is not available on the standard /chrome route. A DOM-based replay with replay=true uploads to its dashboard. Browserless.

My read: video is the easiest to scan, and the only recorder where I found masking described is Cloudflare’s event format. None of the video pages I read describe masking.

How long is it kept, and is it on by default? #

It varies a lot, and several vendors don’t say. The table lists what each page states.

Tool Recording default Retention Masking or privacy note
Browserbase On; opt out with recordSession and logSession set to false 30 days after the session ends; 24 hours on BYOS No masking stated
Cloudflare Off; turn on at launch with recording: true 30 days; 2-hour maximum per recording Input content masked by default
AgentCore Off; enable when you create the custom browser Not stated; your bucket Not on the page I read
Steel Not stated on the pages I read 7 days on Launch, 14 on Scale, custom on Enterprise; agent traces not stated Agent trace exports replace password and card values
Browser Use Cloud Off for API runs; Zero Data Retention projects never record Not stated Treat the live URL as a credential
Anchor On when you create a session Not stated Not on the page I read
Kernel You start and stop each replay Not stated Replay URLs are sensitive
Browserless Off; needs record=true Not stated Not on the page I read

Browserbase and Cloudflare are the two with clear defaults and clear retention. Cloudflare’s recording cannot be switched on when you reconnect to an existing session, so decide before launch. For the rest of Cloudflare’s costs see my Browser Run pricing post. If recording is only part of your choice, see how Browserbase and Browser Run compare overall.

Steel’s limits page says it deletes data after the plan’s retention period, so download what you need first. I would do the same anywhere the number is short, since a 24-hour window on a BYOS project is gone before most weekly reviews.

What do cloud browser logs and traces add? #

They explain why, and some of them survive when a video is missing. A replay shows a page that never loaded, but only a status, a signal or a network log tells you whether the proxy, the site or the browser was at fault.

Steel documents the most failure detail of the pages I read. A session has a status and a releaseReason (values include timeout, inactivity_timeout, browser_crashed and startup_failed). It also fills in signals such as captcha_encountered, bot_detection_triggered and proxy_connection_failed a few seconds after the session ends. A session that never started has no recording or logs. Steel debug guide.

Steel’s Agent Traces timeline covers clicks, inputs, scrolls, drags, page loads and errors from every client connected, including your agent, your scripts and a person in the live view. The MCP tool shows the length of typed text, not the text, though exports can still contain typed values other than password and card fields. Steel agent traces. The API route needs steel-sdk 0.21.0 or later.

Others document less, in different places:

  • Browserbase: a Session Logs API returns CDP events, and the Inspector shows console and network logs. HAR from routeFromHAR stays on the remote instance. Browserbase.
  • Browser Use Cloud: run events cover lifecycle, model calls, browser readiness, tool activity, artifacts and completion, polled with a cursor. The page I read has no screenshots or step-history endpoint. Browser Use events.
  • AgentCore: CloudWatch metrics for session counts, duration, error rates and CPU, memory and network use. AgentCore metrics.
  • Cloudflare: a network endpoint that can return HAR 1.2. The recording endpoint may return a 404 while a recording is finalizing.

Can you record and trace a run yourself? #

Yes, and for a self-run agent it is the route I would pick. Playwright’s trace is the closest thing it has to a session replay, and it holds actions with locators and durations, before, action and after DOM snapshots, a screencast film strip, console, network and errors. Playwright.

Open a trace with npx playwright show-trace or at trace.playwright.dev, which the docs say loads the trace in your browser without sending data out. Of the trace values, on is called performance-heavy, and Anchor’s guide recommends on-first-retry. Playwright’s docs describe retain-on-failure as recording every test and removing the trace from successful runs, so only failed runs are left to open. That is the one I would choose for debugging.

For many LLM steps, OpenTelemetry is the shared route. Stagehand v4 emits spans for every operation and every log record to an OTLP HTTP endpoint that must end in /v1/traces, samples at 100% and turns export off if you omit the telemetry option. Its v3 page describes a separate History Tracking page and a verbose option, so check which version you run. Stagehand v4, v3.

Browser Use 1.0 logs one INFO line per step, exposes result.usage, result.cost_usd and result.messages, and sends spans per run, model request and tool call to any OTLP backend through Pydantic AI. It dropped Laminar and OpenLIT. agent.workspace keeps cell output and screenshots in .browser-use/cells/. Browser Use open source.

Its privacy note matters: typed sensitive_data values are redacted from cell output, but screenshots and page text are not. That is the warning to read before you send anything to a backend.

LangSmith accepts OpenTelemetry from any compatible agent at <LangSmith API URL>/otel with an x-api-key header and an agent ID header, which the page says must be sent with an agent environment header. Its docs don’t mention screenshots or browser sessions. Base traces are kept 14 days and extended traces 180, and the pricing page I read showed Developer up to 5,000 base traces a month and Plus at $39 per seat per month, though I could not tell which region’s prices it showed. LangSmith OTel, observability, pricing.

Is a replay safe to keep and share? #

Treat it like a login. A recording holds whatever was on screen, and three vendors warn about the links to it: anyone with the URL can watch, or the URL is a credential, or it is sensitive.

Vendor What its docs say
Steel Anyone with the debugUrl can watch the session, and can control it while the view is interactive. Set debugConfig.interactive: false for view-only.
Browser Use Treat the live view URL as a credential. readOnly=true makes it view-only, though the page calls view-only embeds a UI restriction, not a server-enforced permission.
Kernel Treat replay URLs as sensitive.
Browserbase Its live view page has no security section and does not say who can open a URL. Recording can be switched off.
Cloudflare Input content is masked by default; nothing about other on-screen text on the page I read.

Sources: Steel, Browser Use, Kernel, Browserbase live view.

Steel adds a warning for builders: its replay route uses your API key and can return the recording of any session in your organization to anyone who changes the session ID, unless you check the user first.

For agents that log in, this is the same problem my browser agent logins post covers from the credential side. My rule: if a run touches a login, decide before launch whether it is recorded, and keep the replay URL out of logs, tickets and chat.

In what order should you read a failed run? #

Start with the cheap, text-based records and watch the video last. This order is my synthesis from the vendor docs; it is untested.

  1. Status and release reason, then signals, if the vendor has them. Steel documents these. For a session that never started they are all you will have.
  2. Network and console logs. A blocked request or a console error often explains a page that looks wrong.
  3. The replay, from the first failing step forward. Jump to the moment the page stopped matching what the agent expected. Steel’s viewer jumps the video when you click a row in the Agent Traces tab.
  4. The model’s step output. Compare what the agent said it saw with what the replay shows.
Dozens of evenly spaced copper-colored vertical rods against a dark background, curving slightly at the edges
Read from the first failing step forward. Photo: Sebastian Frederik Jacobsen / Unsplash · Unsplash License

BrowserTrace, which appears to be a local debugger vendor (its page promotes its own tool), lists failure patterns drawn from public issues in Browser Use, Stagehand and Skyvern, and I could not open those issues. Two examples are useful. For a new-tab desync, record page ids, tab indexes and the URL before and after. For screenshot blobs in model context, store a reference, not the bytes. BrowserTrace.

What I would do #

I would turn recording on for development, off or masked for anything with logins, and write down the retention days before the first production run. When a run fails I would check the release reason and network log first, then watch the replay from the failing step, then read the model’s step output.

For a self-run agent I would keep Playwright traces on failure and add OpenTelemetry only once a single run has too many LLM steps to read by hand. I would not trust a recorder when I could not find a retention or masking statement for it, which is most of the “not on the page I read” cells above.

To choose a cloud browser in the first place, see my best cloud browsers for AI agents post. If you are down to two, my Browserbase vs Steel comparison covers that choice. For scoring a run rather than reading one, see my guide to evaluating browser agents. The agent browsers hub covers the neighbouring questions.

FAQ

Do Browserbase sessions record by default?

Yes. Browserbase's docs say every session is captured as a video replay, and that recordSession and logSession both default to true. Set both to false in browserSettings to opt out, and replays are kept 30 days after the session ends, or 24 hours on BYOS projects, as documented on 2026-11-23.

Does Cloudflare Browser Run record video?

No. Its recording is rrweb events (DOM changes, mouse and keyboard events, navigation) stored as JSON, not a video. It is opt-in, masks input content by default and keeps recordings 30 days, with a 2-hour maximum per recording.

Does Browser Use Cloud record by default?

For API runs the docs say recording is off by default; you turn it on with browserSettings.record or enableRecording. Zero Data Retention projects never record, even if recording was requested. The page does not state a retention period.

What is Playwright's trace viewer?

A zip file of a test run with the actions, before and after DOM snapshots, a screencast film strip, console messages and network calls. You open it with npx playwright show-trace or at trace.playwright.dev, which the docs say loads the trace in your browser without sending data out.

Is a live-view link a secret?

Three vendors warn about these links. Steel says anyone with the debugUrl can watch and, while the view is interactive, control the session. Browser Use says to treat its live view URL as a credential, and Kernel says replay URLs are sensitive.

Can I send agent traces to LangSmith?

Yes, through OpenTelemetry. LangSmith's docs say it accepts traces from any OpenTelemetry-compatible agent, and Stagehand v4 and Browser Use 1.0 can emit OpenTelemetry spans. Its docs say nothing about screenshots or browser sessions, so check what your spans carry.

Which vendors did you not cover?

Hyperbrowser and Skyvern. Their docs would not load from here, so I claim nothing about what they record. I also did not open Browser Use's network capture page, only its title.

Sources

27 sources, accessed .

Official pricing, docs, changelogs and status pages 23

  1. Browserbase docs: session observability, replay and logs docs.browserbase.com · accessed
  2. Browserbase docs: Session Live View docs.browserbase.com · accessed
  3. Cloudflare Browser Run docs: session recording developers.cloudflare.com · accessed
  4. AWS AgentCore Browser: observability docs.aws.amazon.com · accessed
  5. AWS AgentCore Browser: session recording and replay docs.aws.amazon.com · accessed
  6. AWS AgentCore Browser: CloudWatch metrics docs.aws.amazon.com · accessed
  7. Steel docs: debug a failed session steel.dev · accessed
  8. Steel docs: agent traces steel.dev · accessed
  9. Steel docs: embed a live browser steel.dev · accessed
  10. Steel docs: platform limits and data retention steel.dev · accessed
  11. Browser Use Cloud docs: live preview and recording docs.browser-use.com · accessed
  12. Browser Use Cloud docs: agent run events docs.browser-use.com · accessed
  13. Browser Use open source docs: observability docs.browser-use.com · accessed
  14. Stagehand v4 docs: observability docs.stagehand.dev · accessed
  15. Stagehand v3 docs: observability docs.stagehand.dev · accessed
  16. Anchor Browser docs: recording docs.anchorbrowser.io · accessed
  17. Anchor Browser docs index (titles only) docs.anchorbrowser.io · accessed
  18. Kernel docs: browser replays kernel.sh · accessed
  19. Browserless docs: screen recording docs.browserless.io · accessed
  20. Playwright docs: trace viewer playwright.dev · accessed
  21. LangSmith docs: observability docs.langchain.com · accessed
  22. LangSmith docs: trace with OpenTelemetry docs.langchain.com · accessed
  23. LangChain pricing page (LangSmith plans) langchain.com · accessed

Other sources 1

  1. Browserbase observability page (vendor marketing) browserbase.com · accessed

Last updated November 24, 2026. Researched and drafted with AI tools; editorial review by the site owner is pending.

What readers say

Used one of the tools in this guide? Tell other readers how it went. I read every review before it goes up, and I never turn one down for being negative. How reviews work.

No reader reviews yet. Yours could be the first.

Write a review
Your rating

What did you use it for, what worked, and what didn't? 30 to 1500 characters. Please don't include links.

Your connection to the company

Your review appears with the name you enter, after I approve it. I don't ask for your email. Privacy.