Python SDK
pip install rayobrowserayobrowse provides official SDKs for Python and Node.js/TypeScript. Both work with local self-hosted instances and the cloud service.
Python SDK
pip install rayobrowseNode.js SDK
npm install rayobrowseThe /connect endpoint works without any SDK — just pass a WebSocket URL to your CDP client. The SDKs are useful when you want:
| Feature | /connect URL | SDK |
|---|---|---|
| Create browser | Automatic on WebSocket connect | Explicit connect_url() call |
| Close browser | Automatic on disconnect | Explicit close() call |
| Reconnect | Not supported | reconnect_url(session_id) |
| VNC URL | Not returned | Available via last_vnc_url / vncUrl |
| Error handling | HTTP status codes | Typed exceptions |
| Works with | Any CDP client directly | Any CDP client (returns URL) |