Skip to main content

Prerequisites

  • A Browser Cash account - Sign up here
  • Your API key from the Dashboard

Install the SDK

npm install @browsercash/sdk
The SDK is available for TypeScript/JavaScript. Python and other languages can use the REST API directly with any HTTP client.

Quick Start

Get started with our SDK or REST API:
import BrowsercashSDK from "@browsercash/sdk";

const client = new BrowsercashSDK({
  apiKey: process.env.BROWSER_API_KEY,
});

// Create a session
const session = await client.browser.session.create();
console.log("CDP URL:", session.cdpUrl);

// Use the CDP URL with Playwright, Puppeteer, etc.
// ...

// Stop the session when done
await client.browser.session.stop({ sessionId: session.sessionId });

Choose Your Integration

Next Steps