In short.
E2B’s Computer use guide is a tutorial for developers building AI agents that operate graphical desktops, but its sample loop requires additional model integration before it can perform tasks. It describes an Ubuntu 22.04 desktop with XFCE, screenshot capture, mouse and keyboard controls, and VNC streaming for browser viewing. Python and TypeScript examples show sandbox creation, action dispatch and shutdown. The guide explains the main components clearly, while leaving authentication, model request formatting, error recovery, pricing and security details unspecified. Nothing was executed; runtime compatibility, reliability and task completion are unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected documentation page at [https://docs.e2b.dev/use-cases/computer-use.md], including its documentation-index notice, explanatory text, code examples and related links. The documentation index, linked guides, repositories, live demo and model-provider pages are excluded. The page was captured at 2026-11-15T05:32:11.989Z. Nothing was executed. Runtime behavior, task success, costs, security properties and linked-resource behavior remain unverified.
The overview
Identity
Computer use is an E2B documentation guide at [https://docs.e2b.dev/use-cases/computer-use.md]. Its subject is connecting an AI model to an E2B Desktop sandbox so an agent can inspect and operate a graphical Linux environment.
The guide describes a desktop based on Ubuntu 22.04 and XFCE, with preinstalled applications and VNC streaming. It links to E2B Surf as a fuller implementation and live demonstration; those linked resources are outside the supplied evidence.
Assessment
This guide is useful for understanding how desktop infrastructure and an AI decision loop fit together. Its paired Python and TypeScript examples make the SDK’s responsibilities concrete: create the desktop, capture its screen and execute actions.
A working agent requires additional development. The function that asks the model what to do is a placeholder, and the examples do not establish end-to-end task success, production reliability or security guarantees.
Users
The guide suits Python and JavaScript/TypeScript developers who want agents to interact with applications through their visible interfaces. Its example request, opening Firefox and searching for AI news, illustrates the intended style of task.
Beginners can use the explanation to understand the screenshot-and-action cycle. Implementing it requires familiarity with package installation, API integration, loops and structured action data. Experienced developers can use the snippets as an integration outline, with additional engineering needed for dependable operation.
Capabilities
The documented SDK operations include left, right, double and middle clicks; mouse movement; dragging; text entry; keypresses; scrolling; screenshots; and terminal commands. Screenshots return a Buffer in the TypeScript example and bytes in Python.
The setup example configures screen resolution and DPI, starts VNC streaming and retrieves a URL for browser viewing. These are documented interfaces; their runtime behavior and supported application range were not assessed.
Using it
Requirements
Following the examples requires a Python or JavaScript/TypeScript project, the corresponding E2B Desktop SDK, access to an E2B desktop sandbox and a model integration that can interpret screenshots and return usable actions.
The page does not specify runtime versions, SDK versions, E2B authentication steps, provider credentials, account requirements or deployment configuration. It names OpenAI Computer Use and Anthropic Claude as possible integrations without supplying their model connection code.
Mechanism
The agent begins with a user instruction and creates a desktop sandbox. It captures a screenshot, passes that image to a model, executes the returned action and captures the updated screen. This cycle repeats until the model adapter returns no action.
The sample dispatcher handles clicks, typing, keypresses, scrolling and dragging. Coordinate-based actions target positions on the screen. The missing model adapter must format image requests and translate model responses into the action fields expected by the dispatcher; neither its implementation nor a complete action schema is provided.
Setup
The installation commands shown are npm i @e2b/desktop for JavaScript/TypeScript and pip install e2b-desktop for Python. The setup imports Sandbox and creates a desktop at 1024 by 720 pixels with DPI set to 96.
The example timeout is five minutes: timeoutMs: 300_000 in TypeScript and timeout=300 in Python. It then starts streaming and retrieves the viewing URL. To complete the agent example, developers must implement the model adapter, connect its returned actions to the dispatcher and manage sandbox shutdown. Dependency versions are not pinned.
Example
For the guide’s Firefox search scenario, the intended sequence is to capture the desktop, let the model identify where to click, enter a search query, press the relevant key and inspect the resulting screen. Those actions illustrate how a natural-language request could become desktop interactions.
The page supplies the general loop and individual SDK calls, including typing Hello, world! and pressing Enter. It does not provide a recorded Firefox session, completed search result or executable model adapter. This is an illustrated workflow, with task completion unverified.
Assessment & evidence
Limitations
The simplified loop omits retries, explicit iteration limits, action validation, unsupported-action handling and recovery from model or desktop errors. The final kill call appears after the loop; from that control flow, an exception could bypass the shutdown call.
The page describes sandboxed operation but gives no isolation evaluation, VNC access-control details, network restrictions or data-handling terms. It also provides no accuracy, latency or task-success measurements. The safety and reliability of a complete deployment remain unverified.
Fit and tradeoffs
The approach fits tasks that require interaction with a visible desktop: screenshots provide observations, and mouse or keyboard calls provide actions. The code makes the division of responsibility clear—the SDK controls the environment, while the external model integration chooses each step.
As an architectural inference, completion time and reliability will depend on model decisions, application response times and the number of screenshot-action cycles. The guide supplies no measurements to quantify those tradeoffs.
Related options
The guide points to E2B Surf as a complete working implementation and offers a live demo at [https://surf.e2b.dev]. These are documented starting points for readers seeking a fuller example, but their contents, requirements and operation were not assessed.
OpenAI Computer Use and Anthropic Claude are named as possible model integrations. The page does not compare their behavior, costs or compatibility, and provides no comparison with other desktop automation platforms.
Evidence
The evidence consists of the complete E2B Computer use documentation page at [https://docs.e2b.dev/use-cases/computer-use.md]. It includes explanatory text, installation commands, sandbox setup, desktop-action examples and simplified agent loops in Python and TypeScript.
The page attributes its snippets to adaptations from Surf. It contains no execution transcript, independent benchmark or security evaluation. Linked repositories, demonstrations, provider documentation and related guides are outside the available evidence.
Access & freshness
Costs
Costs are unknown. The page provides no sandbox prices, model prices, free allowance, billing increments or usage quotas. The five-minute timeout is example configuration and does not establish a price or billing rule.
The architecture repeatedly sends screenshots to a model and operates a sandbox between actions. Estimating a task’s cost would require the applicable sandbox and provider prices, execution duration and number of model requests; none is established here.
Rights
The page describes E2B Surf as open source and links to its repository at [https://github.com/e2b-dev/surf]. It also links to the Desktop SDK repository at [https://github.com/e2b-dev/desktop].
No license text or specific license identifier is supplied for the documentation, SDK or Surf. Redistribution rights, attribution requirements and commercial-use terms cannot be established from this page alone.
Freshness
The supplied page was captured on 15 November 2026 at 05:32:11.989 UTC. No publication date, last-updated date or SDK release number appears in the supplied text.
Ubuntu 22.04 is the environment version described by the guide. Current SDK method names and parameters, default desktop images and provider compatibility beyond this captured page are unknown.
Next steps
Choose Python or TypeScript, confirm the current SDK and authentication requirements, and implement the screenshot-to-action adapter for the chosen model. Define the accepted action format and how completion is signaled, then add bounded execution, error recovery and cleanup that also runs after failures.
Before depending on the agent, verify a small desktop task from start to finish and measure its model requests, duration and cost. Establish stream access controls, data-handling terms and applicable licenses before using sensitive information or redistributing material. These are recommended next steps; no execution or validation results are available.
