This guide covers cloud browsers powered by Kernel — cloud Chromium instances your code controls via CDP or the Kernel SDK. For local browser automation using a virtual desktop, see Computer use.
Prerequisites
- An E2B API key
- A Kernel API key
- Python 3.10+ / Node.js 18+
.env
| Template | What’s included | Best for |
|---|---|---|
kernel-browser | Kernel SDK, Playwright, Browser Use | Screenshots, scraping, app previews, autonomous agents |
Examples
Here are three common patterns for using cloud browsers with E2B sandboxes.Screenshot app endpoints
Deploy a web app in a sandbox, screenshot every route
Agent data extraction
Let an LLM autonomously browse and extract data
Live browser preview
Watch the browser in real time via Kernel’s live view
Screenshot app endpoints
Deploy a web app inside an E2B sandbox, get a public URL, then use a Kernel cloud browser to screenshot every route.
Full example:
Agent data extraction
Use Browser Use to let an LLM autonomously browse a website and extract data. The agent sees the page via screenshots and decides what to click, type, and navigate. This requires an additional LLM API key:.env
Full example:
Live browser preview
Kernel provides a live view URL for every browser session — you can watch the browser in real time or embed it in your app. This is useful for debugging, demos, or letting users see what the agent is doing.Related guides
Computer use
Local browser automation with virtual desktops
Sandbox lifecycle
Create, manage, and control sandbox lifecycle
Running commands
Run terminal commands inside the sandbox