Live Session Viewer
Browser Cash provides a live viewer where you can watch and interact with your browser session in real-time. To view a session, construct the viewer URL using your session’scdpUrl:
1
Create a session
Start a browser session and retrieve the
cdpUrl from the response.2
URL-encode the cdpUrl
Encode the WebSocket URL so it can be passed as a query parameter.
3
Open the viewer
Navigate to the constructed URL in your browser to view the session live.
The live viewer allows you to see exactly what your automation is doing and
manually interact with the browser — click elements, type text, or navigate to
different pages.
Viewer Parameters
| Parameter | Values | Description |
|---|---|---|
ws | URL-encoded WSS | The CDP WebSocket URL from your session |
theme | light, dark | Viewer color theme |
Get Session Details
Response
Session Status Values
| Status | Description |
|---|---|
active | Session is running and accepting connections |
stopped | Session has been terminated |
failed | Session failed to start |
List All Sessions
Retrieve paginated list of all your sessions:Pagination Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page | number | 1 | Page number |
pageSize | number | 20 | Results per page |
Monitoring Sessions
Poll session status to monitor long-running tasks:Next Steps
- Managing Sessions — Stop sessions and clean up resources
- Browser Profiles — Persist browser state across sessions