Getting Started

How to record

Everything in Replay starts with a recording. A recording captures your application's runtime so you can inspect it after the fact — add console logs, inspect variables, step through code — without having to reproduce the bug again.

There are three ways to make a recording, each suited to different workflows.

MethodBest forFidelityHow it works
Replay Browser + CLIMaximum fidelity, manual repro100% — records actual executionRecords at the runtime level
Chrome ExtensionQuick capture, no browser switchHigh — re-executes against captured sessionRecords from within the page
Playwright / E2ECI, automated test suites100% — records test executionConfigures test runner to use Replay Browser

Replay Browser + CLI

The Replay Browser is a custom browser that records at the runtime level — every instruction your code executes is captured exactly as it happened. This gives you 100% faithful recordings with perfect time-travel debugging.

The Replay CLI manages installing the latest Replay Browser version, lets you start Replay Browser to record specific pages, and uploads recordings to your Replay account.

1

Install the Replay CLI

Terminal
npm i -g replayio
2

Record and upload

Terminal
replayio record https://your-app.com

This opens the Replay Browser. Interact with your app to reproduce the issue, then close the browser. You'll be prompted to upload, and you'll get a URL to inspect the recording.

Agent-driven recording: If you're working with an AI coding agent, it can trigger recordings for you using the replay-cli skill. Install skills with npx @replayio/replay skills add and ask your agent to record your app.

Chrome Extension

The Chrome Extension lets you record without leaving your normal browser. It captures your session from within the page — network responses, user interactions, DOM updates — and re-executes your code against that captured data. You get full time-travel debugging with access to all the same tools.

The tradeoff: since network requests are served from captured responses rather than hitting real servers, exact timing of async operations may differ slightly from your original session. The recording itself is a 100% accurate capture of the re-execution — but the re-execution is a simulation that may not be perfectly identical to what ran in your browser. For the vast majority of debugging scenarios, this is more than sufficient.

1

Install the extension

Install the Replay Chrome Extension from the Chrome Web Store.

2

Record your session

Click the Replay extension icon, hit Start Recording, reproduce the issue in your app, then click Stop and Save. The extension uploads your session and gives you a link to inspect it.

The extension also includes a built-in agent that can answer initial questions about your recording right away, before you even open the full DevTools.

Playwright / E2E Tests

For automated test suites, you can configure Playwright (or Cypress) to record every test run using the Replay Browser. This is ideal for CI — tests run automatically, and when something fails, you get a full time-travel recording of what happened on that CI machine without having to reproduce it locally.

Recordings from E2E tests have the same 100% fidelity as manual Replay Browser recordings.

1

Configure your test runner

Add the Replay plugin to your Playwright or Cypress configuration. See the detailed setup guides:

2

View recordings in CI

Once configured, every test run produces recordings that are uploaded automatically. Failed tests show up in the Test Suite Dashboard with links to inspect each recording.

Agent-driven setup: AI coding agents can help configure test recording using the replay-playwright and replay-cypress skills. Install skills with npx @replayio/replay skills add.

Once you have a recording

A recording is a snapshot of your app's runtime. Once it's uploaded, you can investigate it in several ways:

What's next?

Investigate with an AI agent

Connect Replay's MCP server to your coding agent and let it inspect the recording — read source code, evaluate expressions, analyze React renders, and more.

Investigate with DevTools

Open the recording in Replay DevTools for manual time-travel debugging — step through code, inspect the DOM, view network requests.

Automate with the Protocol API

Use the Replay Protocol directly for custom integrations, scripts, and automated analysis.

FAQ