Learning resourcesReviewed · E2B

E2B Cloud browser guide with Kernel

E2B’s Cloud browser guide teaches developers to connect agents and apps to hosted browsers, but it requires two cloud services with unspecified costs. It provides Python and JavaScript/TypeScript examples for screenshots, AI-driven data extraction and live browser previews.

Researched 15 Nov 2026

In short.

E2B’s Cloud browser guide is a tutorial for developers building browser agents and app previews, but it depends on E2B and Kernel services whose costs are not given. E2B hosts the application or agent code, while Kernel hosts a Chromium browser controlled over a network connection. Examples cover screenshotting application routes, extracting website data with Browser Use and displaying a live browser session. The extraction example also requires an Anthropic API key. No code was executed, so compatibility, performance, extraction accuracy and cleanup behavior remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete selected page at [https://docs.e2b.dev/use-cases/remote-browser.md], including prerequisites, both language variants, expanded examples, the cloud-browser versus virtual-desktop notice and related-guide links. The documentation index and all linked pages are excluded. No code was executed; runtime compatibility, performance, extraction accuracy, persistence and cleanup behavior remain unassessed.

The overview

Identity

This is E2B’s Cloud browser documentation at [https://docs.e2b.dev/use-cases/remote-browser.md]. It explains an integration between E2B sandboxes and Kernel’s managed Chromium browsers, with Browser Use added for an autonomous agent example.

The page distinguishes these remotely hosted browsers from browser automation through a virtual desktop inside a sandbox.

Assessment

The guide offers concrete starting points for developers who need an agent to browse websites or inspect an app running in a sandbox. It connects application hosting, browser control and visual observation through complete examples.

Its usefulness as a tutorial is supported by the code shown. Production reliability, operating costs and the effectiveness of the advertised browser services are not established.

Users

The intended readers are developers building browsing agents, screenshot automation, app previews or web data extraction. Beginners receive sequential examples, but need to understand API keys, environment variables, package installation and running code.

Experienced developers can use the examples to understand the service boundary and remote browser connection. JavaScript/TypeScript users should note that those examples launch Python scripts inside the sandbox.

Capabilities

The demonstrated patterns are capturing screenshots of specified app routes, asking an LLM-driven agent to extract website information, and obtaining a live browser URL that can be opened or embedded. The live view supports a readOnly=true option.

The page also advertises sub-second browser startup, reusable browser state, sessions that can pause and resume across hours or days, CAPTCHA solving, residential proxies, authentication and observability. These are documentation claims; configuration details and measured effectiveness are not supplied.

Using it

Requirements

The stated prerequisites are an E2B API key, a Kernel API key, and Python 3.10+ or Node.js 18+. The guide uses the kernel-browser sandbox template, described as including the Kernel SDK, Playwright and Browser Use.

The autonomous extraction example additionally requires an Anthropic API key and names claude-sonnet-4 as its model. Current model availability and compatibility with particular SDK releases are unknown.

Mechanism

E2B runs the app or agent script, and Kernel runs the browser on separate infrastructure. The examples create a Kernel browser and use its CDP WebSocket address to connect Playwright or Browser Use. CDP is the Chrome DevTools Protocol, which allows code to control a browser remotely.

For app screenshots, E2B exposes port 8000 through a public HTTPS endpoint that the Kernel browser visits. The page also names BiDi and a CUA API as connection options, without demonstrating them.

Setup

The listed JavaScript dependencies are e2b, @onkernel/sdk and playwright-core; the Python installation lists e2b, kernel and playwright. Set E2B_API_KEY and KERNEL_API_KEY in the environment, then create a sandbox using kernel-browser and pass the Kernel key into it. The extraction example also passes ANTHROPIC_API_KEY.

The app example installs FastAPI and Uvicorn inside the sandbox and starts the server in the background. The sandbox timeout is set to 300 seconds. Package versions and the template revision are not pinned.

Example

The screenshot example serves three FastAPI routes: /, /about and /dashboard. Playwright connects to Kernel, sets a 1280 by 720 viewport, waits for network idle on each route and writes PNG files into /home/user in the sandbox.

The agent example asks Browser Use to retrieve the top five Hacker News stories and return titles and point counts as JSON. It uses ChatAnthropic with claude-sonnet-4 and prints the agent result. No explicit output-schema validation or actual extraction result is shown.

Assessment & evidence

Limitations

The examples do not show retries, recovery from navigation failures, extraction validation or configuration of persistent sessions. No execution results or benchmarks establish successful operation.

The screenshot example saves images inside the sandbox and then terminates it without showing image retrieval. The screenshot and agent examples do not explicitly call a Kernel browser deletion operation; the effect of disconnecting or terminating the sandbox on the remote browser is not established. The live view is described as remaining active until browser deletion or timeout.

Reasoning

The architecture separates the lifetime of browser state from the machine running app or agent code. That can be useful when browsing sessions need to survive changes to the compute environment, although the guide only describes persistence and does not demonstrate it.

A practical consequence of this design is that developers must manage a network connection and separate sandbox and browser lifecycles. This is an inference from the documented architecture, not a measured operational result.

Alternatives

The page points to E2B’s Computer use guide for local browser automation using a virtual desktop [https://docs.e2b.dev/use-cases/computer-use.md]. That linked guide is outside the supplied evidence, so its setup, costs and tradeoffs are not assessed.

Within this guide, direct Playwright scripting provides a fixed route-by-route workflow, while Browser Use delegates browsing decisions to an LLM. Their comparative speed, reliability and cost are unknown.

Evidence

The evidence is the complete Cloud browser page from E2B [https://docs.e2b.dev/use-cases/remote-browser.md]. It contains prerequisites, installation instructions, Python and JavaScript/TypeScript examples, service descriptions and links to related documentation.

It establishes what the tutorial describes and what its code shows. It supplies no run outputs, independent measurements, pricing table or license notice.

Access & freshness

Costs

The page provides no prices, free allowances, quotas or billing rules. Actual costs are unknown.

A budget would need to account for E2B sandbox usage, Kernel browser usage and, for the illustrated agent, Anthropic model usage. Charges for paused sessions, idle browsers, proxies or other advertised capabilities are not established.

Rights

The supplied page contains no explicit license or redistribution grant for its text, code examples or sandbox template. Applicable SDK licenses and hosted-service terms are not included.

Rights to reuse material obtained from target websites are also not established by this guide.

Freshness

The supplied page was captured on 15 November 2026 at 05:49:23.759 UTC. Its source revision is sha256:d7b69e09774c0fdc8f42d953bda8f8804d453038d8266057e3bcce0cfff8019f.

No publication date, last-updated date or compatibility matrix appears in the page. The capture date does not establish when the examples last worked, and current dependency compatibility is unknown.

Actions

For a first implementation, use the screenshot example to check app reachability and browser control, and retrieve the PNG files before terminating the sandbox. Establish explicit Kernel browser cleanup and confirm both services’ pricing before longer sessions.

For autonomous extraction, confirm model availability, validate the returned structure and check extracted values against the target page. Consult the relevant service documentation for persistence, authentication and live-view access controls before relying on those features.

Evidence for this report

selected-page.txtselected · checked 2026-11-15